Function at 0x10008518
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1d0
cmp dword [ebp + 0xc], 1
jne 0x10008992
mov esi, dword [ebp + 8]
call fcn.10006439
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [0x400128], 0x455cad51
jne 0x1000899f
lea esi, [esp + 0x50]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1000858a
mov cl, byte [esp + 0x50]
cmp cl, 0x5c
cmove eax, esi
mov cl, byte [esi + 1]
inc esi
test cl, cl
jne 0x1000856a
test eax, eax
je 0x1000858a
mov byte [eax], 0
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
mov eax, 0
test ecx, ecx
je 0x100085b9
push str.wine_get_version
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov eax, 0
test ecx, ecx
je 0x100085b9
call ecx
mov dword [0x1000bec8], eax
mov eax, 0xb8929bf4
mov ecx, 0x7323a7ef
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
lea esi, [esp + 0x160]
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, 0xf34d1743
mov ecx, 0x8bd98845
mov dword [esi + 0xc], eax
mov dword [esi + 8], ecx
mov edx, 0x4f295005
mov ebx, 0xebcfdbe
mov ecx, 0xa2f2341e
mov eax, 0x5d4fe6e7
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov eax, 0xdffcfab3
mov ecx, 0x2342d39c
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov eax, 0xe3bafc24
mov ecx, 0x94227b6d
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x50]
xor ecx, ecx
mov dword [esp + 8], ebx
mov dword [esi + 0x14], ebx
mov dword [esp + 0x30], 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 + 0x50]
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 ecx, section..data
push esi
call fcn.10001fa0
call fcn.100089b8
mov dword [0x1000bed8], eax
call fcn.100026c1
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi], 0xaf5815ab
mov dword [esi + 4], eax
mov dword [esi], 0xaf283e07
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [edi]
mov dword [esp + 0x34], 0
mov ebx, dword [edi + 4]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], edx
movq mm0, qword [esp + 0x40]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
pxor mm0, qword [esp + 0x48]
movq qword [esp + 0x38], mm0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov ebx, 0xe8
push 0x10008503
push dword [esp + 0x24]
push ebx
call fcn.100027cf
add esp, 0xc
call fcn.10008a33
call fcn.10006694
call fcn.10007aa5
call fcn.1000801a
push 0x10001f7f
push 0x401167
push ebx
call fcn.100027cf
add esp, 0xc
call fcn.10004f4f
mov ecx, section..data
push str.INFO
call fcn.10002038
mov eax, dword [esp + 0x28]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esi], eax
mov eax, 0xe743134d
mov ecx, 0x8bd98845
mov dword [esi + 0xc], eax
mov dword [esi + 8], ecx
mov eax, 0x2a4c3225
mov ecx, 0x7bcfddd0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
mov eax, 0xd197577d
mov ecx, 0x313a8094
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], eax
mov eax, 0xa659fbeb
mov ecx, 0x4204efc6
mov dword [esi + 0x24], ecx
mov dword [esi + 0x20], eax
mov eax, 0x8dcd5a89
mov ecx, 0xd3b258ec
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x28], eax
mov eax, 0xef70ffa1
mov ecx, 0xbfe53ca6
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], eax
mov eax, 0x619055c3
mov ecx, 0xa4428c63
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x38], eax
mov eax, 0x9a08ca3b
mov ecx, 0xe6fbdbe4
mov dword [esi + 0x44], ecx
mov dword [esi + 0x40], eax
mov eax, 0x48a645dd
mov ecx, 0x2e703e02
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x48], eax
mov eax, 0xfa3b9ecd
mov ecx, 0xd4d52f72
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, 0xd8e3edc6
mov ecx, dword [esp + 0x30]
mov dword [edi + 0x10], ecx
mov ecx, 0xa1d1f84f
mov edx, dword [esp + 4]
mov dword [edi + 0x1c], edx
mov edx, dword [esp + 0xc]
mov dword [edi + 0x18], edx
mov edx, 0xcf798287
mov ebx, 0x2b7086a8
mov dword [edi + 0x24], ebx
mov dword [edi + 0x20], edx
mov edx, 0xf7a436e8
mov ebx, 0xf39c3c89
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x28], edx
mov edx, 0x8605bd89
mov ebx, 0xfbc558ca
mov dword [edi + 0x34], ebx
mov dword [edi + 0x30], edx
mov edx, 0x5bf521a2
mov ebx, 0xca37df43
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x38], edx
mov edx, 0xfd7d8b1b
mov ebx, 0xc6cee9c4
mov dword [edi + 0x44], ebx
mov dword [edi + 0x40], edx
mov edx, 0x7b9c70ec
mov ebx, 0x19440435
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x48], edx
mov edx, 0xc80baced
mov ebx, 0xd4df0646
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 + 0x34]
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 + 0x161], 0
lea eax, [eax + 1]
jne 0x10008917
mov ecx, section..data
push 1
push eax
push edx
call fcn.10001fe2
cmp dword [0x1000bec8], 0
je 0x10008992
mov ecx, section..data
push str.INFO
call fcn.10002038
mov ecx, section..data
push 0
push 0x27
push str.Running_under_Linux_with_Wine_version:
call fcn.10001fe2
xor edx, edx
dec edx
mov eax, dword [0x1000bec8]
cmp byte [eax + edx + 1], 0
lea edx, [edx + 1]
jne 0x10008965
mov ecx, section..data
push 0
push edx
push eax
call fcn.10001fe2
mov byte [esp + 0x50], 0xa
xor eax, eax
inc eax
mov ecx, section..data
push eax
push eax
push esi
call fcn.10001fe2
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