Function at 0x10003f89
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 0x100043b8
mov esi, dword [ebp + 8]
call fcn.10003a1d
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [0x400128], 0x455cad51
jne 0x100043c5
lea esi, [esp + 0x30]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10003ffb
mov cl, byte [esp + 0x30]
cmp cl, 0x5c
cmove eax, esi
mov cl, byte [esi + 1]
inc esi
test cl, cl
jne 0x10003fdb
test eax, eax
je 0x10003ffb
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 0x10004032
push str.wine_get_version
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov eax, 0
test ecx, ecx
je 0x10004032
call ecx
mov dword [0x100074a4], eax
mov eax, 0x2d15bc42
mov ecx, 0x888ff466
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, 0x715e5da6
mov ecx, 0x9690a313
mov dword [esi + 0xc], eax
mov dword [esi + 8], ecx
mov edx, 0xa0af62c7
mov ebx, 0x3f8fe807
mov ecx, 0x3cfc7c9c
mov eax, 0xbf9b9832
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov eax, 0x4a7bdd05
mov ecx, 0xd8ee8015
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov eax, 0xfef3d772
mov ecx, 0x16313188
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, 0x9690a313
mov ecx, section..data
push esi
call fcn.1000102c
call fcn.100043e0
mov dword [0x100074b4], eax
call fcn.1000173b
mov eax, 0xe8
push 0x10003f74
push 0x702bac
push eax
call fcn.10001802
add esp, 0xc
call fcn.1000445b
call fcn.10003a7f
call fcn.10003d82
call fcn.10003e88
push 0x1000100b
push 0x401167
mov eax, 0xe8
push eax
call fcn.10001802
add esp, 0xc
call fcn.100032ae
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, 0x655059a8
mov dword [esi + 0xc], eax
mov dword [esi + 8], ebx
mov eax, 0xc5ca00e7
mov ecx, 0x4afcc869
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
mov eax, 0x4f991fff
mov ecx, 0xd3eefe41
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], eax
mov eax, 0x6d511015
mov ecx, 0x2f14a55f
mov dword [esi + 0x24], ecx
mov dword [esi + 0x20], eax
mov eax, 0xacad5ee7
mov ecx, 0x723766f1
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x28], eax
mov eax, 0x92206993
mov ecx, 0x9971c24f
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], eax
mov eax, 0xfee8f881
mov ecx, 0x4f4e9de
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x38], eax
mov eax, 0xff25f12d
mov ecx, 0x6f58585d
mov dword [esi + 0x44], ecx
mov dword [esi + 0x40], eax
mov eax, 0xd5f2c02b
mov ecx, 0xd48c9fe9
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x48], eax
mov eax, 0x2894e5ef
mov ecx, 0xcfb7677b
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, 0x19743f04
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x10], ecx
mov ecx, 0x20ad601a
mov edx, dword [esp + 4]
mov dword [edi + 0x1c], edx
mov edx, dword [esp + 0xc]
mov dword [edi + 0x18], edx
mov edx, 0x4716979
mov ebx, 0x4660cc31
mov dword [edi + 0x24], ebx
mov dword [edi + 0x20], edx
mov edx, 0xd6c43286
mov ebx, 0x52190294
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x28], edx
mov edx, 0xfb552bbb
mov ebx, 0xdd51a623
mov dword [edi + 0x34], ebx
mov dword [edi + 0x30], edx
mov edx, 0xc48d8ce0
mov ebx, 0x719cbdfe
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x38], edx
mov edx, 0x9850b00d
mov ebx, 0x4f60787d
mov dword [edi + 0x44], ebx
mov dword [edi + 0x40], edx
mov edx, 0xe6c8f81a
mov ebx, 0xe5b8a5d0
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x48], edx
mov edx, 0x1aa4d7cf
mov ebx, 0xcfbd4e4f
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 0x1000433d
mov ecx, section..data
push 1
push eax
push edx
call fcn.1000106e
cmp dword [0x100074a4], 0
je 0x100043b8
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 [0x100074a4]
cmp byte [eax + edx + 1], 0
lea edx, [edx + 1]
jne 0x1000438b
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