Function at 0x1000410a
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1b0
cmp dword [ebp + 0xc], 1
jne 0x10004539
mov esi, dword [ebp + 8]
call fcn.10003b81
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [0x400128], 0x455cad51
jne 0x10004546
lea esi, [esp + 0x30]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1000417c
mov cl, byte [esp + 0x30]
cmp cl, 0x5c
cmove eax, esi
mov cl, byte [esi + 1]
inc esi
test cl, cl
jne 0x1000415c
test eax, eax
je 0x1000417c
mov byte [eax], 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
mov dword [esp + 0x2c], 0
mov eax, 0
test ecx, ecx
je 0x100041b3
push str.wine_get_version
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov eax, 0
test ecx, ecx
je 0x100041b3
call ecx
mov dword [0x10007560], eax
mov eax, 0x8dc60364
mov ecx, 0x8fc34437
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
lea esi, [esp + 0x140]
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, 0x977bdb07
mov ecx, 0x96166e79
mov dword [esi + 0xc], eax
mov dword [esi + 8], ecx
mov edx, 0xaae9ebcd
mov ebx, 0xfe13cfca
mov ecx, 0xf381452a
mov eax, 0x989337e7
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov eax, 0xeaa86223
mov ecx, 0xdfa23044
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov eax, 0xfe751a18
mov ecx, 0xf014b729
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x30]
xor ecx, ecx
mov dword [esp + 8], ebx
mov dword [esi + 0x14], ebx
mov dword [esp + 0x28], edx
mov dword [esi + 0x10], edx
mov edi, dword [esp + 4]
mov dword [esi + 0x1c], edi
mov ebx, dword [esp + 0xc]
mov dword [esi + 0x18], ebx
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x30]
mov dword [ecx + 4], edi
mov edi, dword [esp + 0x1c]
mov dword [ecx], edi
mov edi, dword [esp + 0x10]
mov dword [ecx + 0xc], edi
mov edi, dword [esp + 0x14]
mov dword [ecx + 8], edi
mov edi, ecx
mov ecx, dword [esp + 8]
mov dword [edi + 0x14], ecx
mov dword [edi + 0x10], edx
mov edx, dword [esp + 4]
mov dword [edi + 0x1c], edx
mov dword [edi + 0x18], ebx
movaps xmm0, xmmword [esi]
xorps xmm0, xmmword [eax]
movaps xmmword [esi], xmm0
movaps xmm0, xmmword [esi + 0x10]
xorps xmm0, xmmword [eax + 0x10]
movaps xmmword [esi + 0x10], xmm0
mov ebx, 0x96166e79
mov ecx, section..data
push esi
call fcn.1000102c
call fcn.10004560
mov dword [0x10007570], eax
call fcn.1000173b
mov eax, 0xe8
push 0x100040f5
push 0x702bac
push eax
call fcn.10001802
add esp, 0xc
call fcn.100045db
call fcn.10003be3
call fcn.10003ee6
call fcn.10003fec
push 0x1000100b
push 0x401167
mov eax, 0xe8
push eax
call fcn.10001802
add esp, 0xc
call fcn.100033f5
mov ecx, section..data
push str.INFO
call fcn.100010c4
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esi], eax
mov eax, 0x8375df09
mov dword [esi + 0xc], eax
mov dword [esi + 8], ebx
mov eax, 0xcf8c89ed
mov ecx, 0x8b60efa4
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
mov eax, 0x80e42649
mov ecx, 0xf4e65194
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], eax
mov eax, 0x768c789b
mov ecx, 0x5dba3a96
mov dword [esi + 0x24], ecx
mov dword [esi + 0x20], eax
mov eax, 0xebc655ed
mov ecx, 0xb6eb11a8
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x28], eax
mov eax, 0xf91790e9
mov ecx, 0xdee2b452
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], eax
mov eax, 0x37c30abf
mov ecx, 0xfa81e50b
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x38], eax
mov eax, 0xb522b04b
mov ecx, 0x805e00ac
mov dword [esi + 0x44], ecx
mov dword [esi + 0x40], eax
mov eax, 0x24168271
mov ecx, 0xeb8ee1c6
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x48], eax
mov eax, 0x563ac555
mov ecx, 0xd8c08466
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 8], eax
mov eax, dword [esp + 8]
mov dword [edi + 0x14], eax
mov eax, 0xc9fe7fd2
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x10], ecx
mov ecx, 0x946a214f
mov edx, dword [esp + 4]
mov dword [edi + 0x1c], edx
mov edx, dword [esp + 0xc]
mov dword [edi + 0x18], edx
mov edx, 0x1fac01f7
mov ebx, 0x34ce53f8
mov dword [edi + 0x24], ebx
mov dword [edi + 0x20], edx
mov edx, 0x91af398c
mov ebx, 0x96c575cd
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x28], edx
mov edx, 0x9062d2c1
mov ebx, 0x9ac2d03e
mov dword [edi + 0x34], ebx
mov dword [edi + 0x30], edx
mov edx, 0xda67ede
mov ebx, 0x9ee4b22b
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x38], edx
mov edx, 0xd257f16b
mov ebx, 0xa06a318c
mov dword [edi + 0x44], ebx
mov dword [edi + 0x40], edx
mov edx, 0x112cb140
mov ebx, 0xd2bddbf1
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x48], edx
mov edx, 0x640af775
mov ebx, 0xd8caad52
mov dword [edi + 0x54], ebx
mov dword [edi + 0x50], edx
mov edx, esi
mov dword [esi + 0x5c], ecx
mov dword [edi + 0x5c], ecx
mov dword [esi + 0x58], eax
mov dword [edi + 0x58], eax
mov esi, edi
mov ecx, dword [esp + 0x2c]
movaps xmm0, xmmword [edx]
xorps xmm0, xmmword [edi]
movaps xmmword [edx], xmm0
movaps xmm0, xmmword [edx + 0x10]
xorps xmm0, xmmword [edi + 0x10]
movaps xmmword [edx + 0x10], xmm0
movaps xmm0, xmmword [edx + 0x20]
xorps xmm0, xmmword [edi + 0x20]
movaps xmmword [edx + 0x20], xmm0
movaps xmm0, xmmword [edx + 0x30]
xorps xmm0, xmmword [edi + 0x30]
movaps xmmword [edx + 0x30], xmm0
movaps xmm0, xmmword [edx + 0x40]
xorps xmm0, xmmword [edi + 0x40]
movaps xmmword [edx + 0x40], xmm0
movaps xmm0, xmmword [edx + 0x50]
xorps xmm0, xmmword [edi + 0x50]
movaps xmmword [edx + 0x50], xmm0
xor eax, eax
dec eax
cmp byte [esp + eax + 0x141], 0
lea eax, [eax + 1]
jne 0x100044be
mov ecx, section..data
push 1
push eax
push edx
call fcn.1000106e
cmp dword [0x10007560], 0
je 0x10004539
mov ecx, section..data
push str.INFO
call fcn.100010c4
mov ecx, section..data
push 0
push 0x27
push str.Running_under_Linux_with_Wine_version:
call fcn.1000106e
xor edx, edx
dec edx
mov eax, dword [0x10007560]
cmp byte [eax + edx + 1], 0
lea edx, [edx + 1]
jne 0x1000450c
mov ecx, section..data
push 0
push edx
push eax
call fcn.1000106e
mov byte [esp + 0x30], 0xa
xor eax, eax
inc eax
mov ecx, section..data
push eax
push eax
push esi
call fcn.1000106e
xor eax, eax
inc eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
push 0x10
push str.GangstaPatch
push str.Youre_using_wrong_game_version__only_v1.00.2_is_usable__nVisit_abandonware_site_for_download_or_find_alternative_way_to_obtain_this_version.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
inc ecx
int 0x29
int3