Function at 0x4247f0
Capabilities:
Check if file exists
Check mutex on windows
Copy file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54cbcf
mov eax, dword fs:[0]
push eax
sub esp, 0x68c
mov eax, dword [0x60c9c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
push 0x114
lea esi, [ebx + 0x10]
push 0
push esi
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x63c], ecx
call fcn.00531fb0
add esp, 0xc
push esi
mov dword [esi], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
sub esp, 0x114
mov edi, esp
mov ecx, 0x45
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.00415b60
test eax, eax
jne 0x424929
cmp dword [0x60dfe0], eax
jne 0x42491f
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.00531fb0
add esp, 0xc
call fcn.00433e4b
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x44]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x7d0
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [ebp - 0x64c]
push ecx
push 0
lea edx, [ebp - 0x62c]
push edx
push 0x400
push 0xbe
push 0
lea eax, [ebp - 0x218]
push 0x3100
mov dword [ebp - 0x64c], eax
mov dword [ebp - 0x62c], 0
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov ecx, dword [ebp - 0x62c]
push 0
lea eax, [ebp - 0x218]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x661
jmp 0x42545f
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x626]
push ecx
mov word [ebp - 0x628], ax
call fcn.00531fb0
mov edx, dword [ebp - 0x63c]
mov eax, dword [ebp - 0x62c]
push edx
push eax
push 0x55d250
lea ecx, [ebp - 0x628]
push 0x104
push ecx
call fcn.00533b0b
add esp, 0x20
lea esi, [ebx + 0x158]
lea edx, [ebp - 0x628]
push edx
mov ecx, esi
mov dword [ebp - 0x648], esi
call fcn.00408880
test eax, eax
je 0x42545a
mov ecx, esi
call fcn.0040b700
mov ecx, ebx
test eax, eax
je 0x4249a1
call fcn.004232b0
jmp 0x4249a6
call fcn.00423170
mov eax, dword [ebx + 0xe4bc]
mov dword [ebx + 0xd9ac], eax
mov dword [ebp - 0x67c], 0
cmp eax, 2
je 0x4249ca
cmp eax, 3
jne 0x424a50
push 0x55c8ac
lea ecx, [ebp - 0x64c]
call fcn.00405b90
lea eax, [ebp - 0x67c]
push eax
lea ecx, [ebp - 0x64c]
push ecx
push 0
push 0x80000001
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00411770
lea edi, [ebx + 0xe4ba]
push edi
lea edx, [ebx + 0xe4c4]
push edx
push 1
push 0x80000002
mov ecx, esi
call fcn.00411770
mov eax, dword [ebp - 0x67c]
test ax, ax
je 0x424a27
mov word [edi], ax
mov eax, dword [ebp - 0x64c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424a50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
movzx eax, word [ebx + 0xda14]
test ax, ax
je 0x424a65
mov word [ebx + 0xe4b8], ax
jmp 0x424a85
movzx eax, word [ebx + 0xe4b4]
test ax, ax
je 0x424a7a
mov word [ebx + 0xe4b8], ax
jmp 0x424a85
mov cx, word [ebp + 0x14]
mov word [ebx + 0xe4b8], cx
movzx edx, word [ebx + 0xe4b8]
push edx
call fcn.00408600
add esp, 4
push eax
mov ecx, esi
call fcn.00409a70
test eax, eax
jne 0x424abf
mov eax, dword [ebx + 0xe4bc]
cmp eax, 2
je 0x424ab1
cmp eax, 3
jne 0x424abf
mov ax, word [ebx + 0xe4ba]
mov word [ebx + 0xe4b8], ax
movzx ecx, word [ebx + 0xe4b8]
push ecx
call fcn.00408600
add esp, 4
push eax
mov ecx, esi
call fcn.00409a70
test eax, eax
jne 0x424b2e
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.00531fb0
mov ecx, dword [ebp - 0x62c]
push str.MUI.dll
push ecx
push 0x55d250
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.00533b0b
lea eax, [ebp - 0x218]
push eax
call fcn.00401870
add esp, 0x24
mov word [ebx + 0xe4b8], ax
push 0x55c8ac
lea ecx, [ebp - 0x634]
call fcn.00405b90
push 0x55c8ac
lea ecx, [ebp - 0x638]
mov dword [ebp - 4], 1
call fcn.00405b90
push 0x55c8ac
lea ecx, [ebp - 0x650]
mov byte [ebp - 4], 2
call fcn.00405b90
push 0x55c8ac
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 3
call fcn.00405b90
lea ecx, [ebp - 0x638]
push ecx
lea edx, [ebp - 0x634]
push edx
push 1
push 0x80000001
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004119c0
mov eax, dword [ebp - 0x634]
cmp dword [eax - 0xc], 0
je 0x424bb5
mov ecx, dword [ebp - 0x638]
cmp dword [ecx - 0xc], 0
jne 0x424c0d
lea edx, [ebp - 0x658]
push edx
lea eax, [ebp - 0x650]
push eax
push 1
push 0x80000002
mov ecx, esi
call fcn.004119c0
mov ecx, dword [ebp - 0x634]
cmp dword [ecx - 0xc], 0
jne 0x424bef
lea edx, [ebp - 0x650]
push edx
lea ecx, [ebp - 0x634]
call fcn.004034d0
mov eax, dword [ebp - 0x638]
cmp dword [eax - 0xc], 0
jne 0x424c0d
lea ecx, [ebp - 0x658]
push ecx
lea ecx, [ebp - 0x638]
call fcn.004034d0
push 0x55c8ac
lea ecx, [ebp - 0x630]
call fcn.00405b90
push 0x55c8ac
lea ecx, [ebp - 0x640]
mov byte [ebp - 4], 5
call fcn.00405b90
cmp word [ebx + 0xda16], 0
lea eax, [ebx + 0xda16]
mov byte [ebp - 4], 6
je 0x424c77
push eax
lea ecx, [ebp - 0x630]
call fcn.00403770
push str.japan
lea ecx, [ebp - 0x630]
call fcn.0040b990
test eax, eax
jne 0x424cb7
push str.asia
lea ecx, [ebp - 0x630]
call fcn.00403770
jmp 0x424cb7
cmp word [ebx + 0xe44c], 0
lea eax, [ebx + 0xe44c]
je 0x424c95
push eax
lea ecx, [ebp - 0x630]
call fcn.00403770
jmp 0x424cb7
mov eax, dword [ebx + 0xe4bc]
cmp eax, 2
je 0x424ca5
cmp eax, 3
jne 0x424cb7
lea edx, [ebp - 0x634]
push edx
lea ecx, [ebp - 0x630]
call fcn.004034d0
cmp word [ebx + 0xdc16], 0
lea eax, [ebx + 0xdc16]
je 0x424cd5
push eax
lea ecx, [ebp - 0x640]
call fcn.00403770
jmp 0x424d15
cmp word [ebx + 0xe474], 0
lea eax, [ebx + 0xe474]
je 0x424cf3
push eax
lea ecx, [ebp - 0x640]
call fcn.00403770
jmp 0x424d15
mov eax, dword [ebx + 0xe4bc]
cmp eax, 2
je 0x424d03
cmp eax, 3
jne 0x424d15
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x640]
call fcn.004034d0
call fcn.0043e2f8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x424d2f
push 0x80004005
call fcn.00402a80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x65c], eax
cmp word [ebx + 0xde16], 0
lea eax, [ebx + 0xde16]
mov byte [ebp - 4], 7
je 0x424d61
push eax
lea ecx, [ebp - 0x65c]
call fcn.00403770
mov ecx, dword [ebp - 0x65c]
mov edx, dword [ebp - 0x640]
lea eax, [ebx + 0x124]
push eax
mov eax, dword [ebp - 0x630]
push ecx
movzx ecx, word [ebx + 0xe4b8]
push edx
mov edx, dword [ebp - 0x62c]
push eax
push ecx
sub esp, 0x114
mov edi, esp
mov ecx, 0x45
lea esi, [ebx + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x648]
push edx
call fcn.00412130
test eax, eax
je 0x424ec7
mov eax, dword [ebp - 0x65c]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424dd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x640]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424dfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424e23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x658]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424e49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x650]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424e6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x638]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424e95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x634]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42545a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42545a
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x41e]
push edx
mov word [ebp - 0x420], cx
call fcn.00531fb0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.0043e2f8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x424f11
push 0x80004005
call fcn.00402a80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x654], eax
push str.SetupApi.DLL
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x654]
push 0x55d250
push edx
mov byte [ebp - 4], 8
call fcn.004047a0
add esp, 0x10
lea ecx, [ebp - 0x698]
call fcn.0043f9a5
mov eax, dword [ebp - 0x654]
push 0
push eax
lea ecx, [ebp - 0x698]
mov byte [ebp - 4], 9
call fcn.0043fa4c
lea ecx, [ebp - 0x698]
mov esi, eax
call fcn.0043f52f
lea ecx, [ebp - 0x654]
call fcn.00402e90
test esi, esi
jne 0x425196
cmp dword [0x60dfe0], esi
jne 0x42504a
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.00531fb0
add esp, 0xc
call fcn.00433e4b
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x44]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x7d0
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [ebp - 0x63c]
push ecx
push esi
lea edx, [ebp - 0x62c]
push edx
push 0x400
push 0xbe
push esi
lea eax, [ebp - 0x218]
push 0x3100
mov dword [ebp - 0x63c], eax
mov dword [ebp - 0x62c], esi
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov ecx, dword [ebp - 0x648]
lea eax, [ebp - 0x64c]
push eax
call fcn.0040deb0
mov eax, dword [eax]
mov ecx, dword [ebp - 0x62c]
push esi
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x64c]
call fcn.00402e70
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x698]
mov byte [ebp - 4], 8
call fcn.0043f9d7
mov eax, dword [ebp - 0x654]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42507f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x65c]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4250a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x640]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4250cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4250f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x658]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425117
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x650]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42513d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x638]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425163
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x634]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42518c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x661
jmp 0x42545f
mov esi, dword [ebp - 0x648]
lea ecx, [ebp - 0x648]
push ecx
mov ecx, esi
call fcn.00416300
mov edi, dword [ebp - 0x648]
push 0
push edi
mov ecx, ebx
mov byte [ebp - 4], 0xa
call fcn.004197a0
lea ecx, [ebp - 0x668]
call fcn.00403010
lea ecx, [ebp - 0x644]
call fcn.00403010
mov edx, dword [ebp - 0x62c]
push str.Data1.cab
push edx
lea eax, [ebp - 0x668]
push 0x55d250
push eax
mov byte [ebp - 4], 0xc
call fcn.004047a0
push str.Data1.cab
push edi
lea ecx, [ebp - 0x644]
push 0x55d250
push ecx
call fcn.004047a0
mov edx, dword [ebp - 0x644]
mov eax, dword [ebp - 0x668]
add esp, 0x20
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x42523e
mov ecx, dword [ebp - 0x644]
push ebx
push 0x421020
push 0
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
mov edx, dword [ebp - 0x644]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x425265
test al, 1
je 0x425265
and eax, 0xfffffffe
push eax
mov eax, dword [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
movzx ecx, word [ebx + 0xe4b8]
push ecx
call fcn.00408650
add esp, 4
lea ecx, [ebp - 0x664]
mov dword [ebp - 0x63c], eax
call fcn.00403010
mov edx, dword [ebp - 0x63c]
push str.setuprsc.dll
push edx
push edi
lea eax, [ebp - 0x664]
push 0x55efb8
push eax
mov byte [ebp - 4], 0xd
call fcn.004047a0
mov ecx, dword [ebp - 0x664]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebx + 0xda0c], edi
test edi, edi
je 0x4253c7
call fcn.00433e4b
push 0
mov ecx, esi
mov dword [eax + 0xc], edi
call fcn.00408a10
mov edx, dword [ebp + 0xc]
mov edi, eax
mov eax, dword [ebp - 0x62c]
push edx
push eax
mov dword [ebp - 0x64c], edi
call fcn.005330ca
add esp, 8
cmp edi, eax
jge 0x42547d
lea ecx, [ebp - 0x62c]
push ecx
mov ecx, esi
call fcn.0040deb0
mov eax, dword [ebp - 0x62c]
cmp dword [eax - 0xc], 0
mov bl, 0xe
mov byte [ebp - 4], bl
jl 0x425371
push 0x5606a0
push eax
call fcn.00533a71
add esp, 8
test eax, eax
je 0x425371
mov ecx, dword [ebp - 0x62c]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x425371
cmp dword [ecx - 0xc], 0
jl 0x425371
push 0x560698
push ecx
call fcn.00533a71
add esp, 8
test eax, eax
je 0x425371
sub eax, dword [ebp - 0x62c]
sar eax, 1
cmp eax, 0xffffffff
je 0x425371
push str.Error
lea ecx, [ebp - 0x62c]
call fcn.00403770
push 0
push 0
push 0xf
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x660], esp
push 0x55f1ce
call fcn.0040dc70
mov eax, dword [ebp - 0x62c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x63c], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0xf
call fcn.00402f60
add eax, 0x10
add esp, 4
mov dword [esi], eax
push 0
mov byte [ebp - 4], bl
call fcn.00417730
add esp, 0x1c
lea ecx, [ebp - 0x62c]
call fcn.00402e70
lea ecx, [ebp - 0x664]
call fcn.00402e70
lea ecx, [ebp - 0x644]
call fcn.00402e70
lea ecx, [ebp - 0x668]
call fcn.00402e70
lea ecx, [ebp - 0x648]
call fcn.00402e70
lea ecx, [ebp - 0x698]
mov byte [ebp - 4], 8
call fcn.0043f9d7
lea ecx, [ebp - 0x654]
call fcn.00402e70
lea ecx, [ebp - 0x65c]
call fcn.00402e70
lea ecx, [ebp - 0x640]
call fcn.00402e70
lea ecx, [ebp - 0x630]
call fcn.00402e70
lea ecx, [ebp - 0x658]
call fcn.00402e70
lea ecx, [ebp - 0x650]
call fcn.00402e70
lea ecx, [ebp - 0x638]
call fcn.00402e70
lea ecx, [ebp - 0x634]
call fcn.00402e70
mov eax, 0x643
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00531f97
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebx + 4], 0
je 0x425613
cmp word [ebx + 0xe016], 0
lea edi, [ebx + 0xe016]
je 0x425572
lea ecx, [ebp - 0x62c]
call fcn.00403010
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov byte [ebp - 4], 0x10
mov word [ebp - 0x218], dx
call fcn.00531fb0
push edi
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.00532f33
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.005330ca
lea eax, [ebp + eax*2 - 0x21a]
add esp, 0x20
cmp word [eax], 0x5c
jne 0x4254fd
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x63c]
push edx
mov ecx, esi
call fcn.0040e500
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x62c]
push 0x55d250
push edx
mov byte [ebp - 4], 0x11
call fcn.004047a0
add esp, 0x10
lea ecx, [ebp - 0x63c]
mov byte [ebp - 4], 0x10
call fcn.00402e70
mov eax, dword [ebp - 0x62c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x660], esp
mov edi, esp
push eax
call fcn.00402f60
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.004176c0
lea ecx, [ebp - 0x62c]
mov byte [ebp - 4], 0xd
call fcn.00402e70
mov edi, dword [ebp - 0x64c]
lea eax, [ebp - 0x660]
push eax
mov ecx, esi
call fcn.0040be40
mov ecx, dword [eax]
cmp edi, dword [ecx - 0xc]
lea ecx, [ebp - 0x660]
setl byte [ebp - 0x66d]
call fcn.00402e70
cmp byte [ebp - 0x66d], 0
mov ecx, esi
je 0x425702
lea edx, [ebp - 0x63c]
push edx
call fcn.0040deb0
push 0
push 0
push 0xf
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x660], esp
mov bl, 0x15
push 0x55f1ce
mov byte [ebp - 4], bl
call fcn.0040dc70
mov eax, dword [ebp - 0x63c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x64c], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0x16
call fcn.00402f60
add eax, 0x10
add esp, 4
mov dword [esi], eax
push 0
mov byte [ebp - 4], bl
call fcn.00417730
add esp, 0x1c
lea ecx, [ebp - 0x63c]
jmp 0x4253c2
push 0x55c8ac
lea ecx, [ebp - 0x62c]
call fcn.00405b90
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x62c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x63c], 0
call fcn.00411c50
test eax, eax
je 0x4256ee
lea ecx, [ebp - 0x678]
call fcn.00403010
cmp dword [ebp - 0x63c], 0
mov byte [ebp - 4], 0x13
jne 0x4256e3
mov edx, dword [ebp - 0x62c]
cmp dword [edx - 0xc], 0
je 0x4256e3
lea eax, [ebp - 0x660]
push eax
mov ecx, esi
call fcn.0040e500
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x62c]
mov byte [ebp - 4], 0x14
call fcn.00405390
push eax
lea edx, [ebp - 0x678]
push 0x55d250
push edx
call fcn.004047a0
add esp, 0x10
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 0x13
call fcn.00402e70
mov eax, dword [ebp - 0x678]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x660], esp
mov edi, esp
push eax
call fcn.00402f60
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.004176c0
mov edi, dword [ebp - 0x64c]
lea ecx, [ebp - 0x678]
call fcn.00402e70
lea ecx, [ebp - 0x62c]
mov byte [ebp - 4], 0xd
call fcn.00402e70
jmp 0x425578
lea eax, [ebp - 0x66c]
push eax
call fcn.0040deb0
cmp dword [ebx + 0x15c], 0
mov byte [ebp - 4], 0x17
je 0x425c2e
cmp dword [ebx + 0x160], 0
je 0x425c2e
mov eax, dword [ebx + 0x124]
cmp eax, 1
je 0x4257a3
cmp eax, 2
je 0x4257a3
cmp eax, 3
je 0x4257a3
mov ecx, dword [ebx + 0x184]
cmp ecx, dword [ebx + 0x128]
jbe 0x4257a3
push ecx
push eax
lea ecx, [ebp - 0x660]
push ecx
call fcn.00420f10
add esp, 8
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x66c]
push 0x1b
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x63c], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0x18
call fcn.00402f60
add esp, 4
add eax, 0x10
push 0
mov dword [esi], eax
call fcn.004196e0
add esp, 0x14
lea ecx, [ebp - 0x660]
call fcn.00402e70
jmp 0x425c5e
cmp dword [ebx + 0x20], 2
jne 0x425892
mov ecx, ebx
call fcn.00415180
test eax, eax
jne 0x425892
push eax
push eax
mov eax, dword [ebp - 0x66c]
push 3
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x660], esp
mov esi, esp
push eax
call fcn.00402f60
add esp, 4
add eax, 0x10
push 0
mov dword [esi], eax
call fcn.004196e0
add esp, 0x14
lea ecx, [ebp - 0x66c]
call fcn.00402e70
lea ecx, [ebp - 0x664]
call fcn.00402e70
lea ecx, [ebp - 0x644]
call fcn.00402e70
lea ecx, [ebp - 0x668]
call fcn.00402e70
lea ecx, [ebp - 0x648]
call fcn.00402e70
lea ecx, [ebp - 0x698]
mov byte [ebp - 4], 8
call fcn.0043f9d7
lea ecx, [ebp - 0x654]
call fcn.00402e70
lea ecx, [ebp - 0x65c]
call fcn.00402e70
lea ecx, [ebp - 0x640]
call fcn.00402e70
lea ecx, [ebp - 0x630]
call fcn.00402e70
lea ecx, [ebp - 0x658]
call fcn.00402e70
lea ecx, [ebp - 0x650]
call fcn.00402e70
lea ecx, [ebp - 0x638]
call fcn.00402e70
lea ecx, [ebp - 0x634]
call fcn.00402e70
mov eax, 5
jmp 0x42545f
cmp dword [ebx + 8], 0
jne 0x4258e6
lea edx, [ebp - 0x64c]
push edx
mov ecx, esi
call fcn.00410e40
mov eax, dword [ebp - 0x64c]
push eax
push 0
push 0
mov byte [ebp - 4], 0x19
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx + 0xda10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x425946
cmp dword [ebx + 0xda10], 0
je 0x425946
lea ecx, [ebp - 0x64c]
mov byte [ebp - 4], 0x17
call fcn.00402e70
lea ecx, [ebp - 0x674]
push ecx
mov ecx, esi
call fcn.00410e70
mov edx, dword [ebp - 0x674]
push edx
push 0
push 0x1f0001
mov byte [ebp - 4], 0x1a
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edi, eax
test edi, edi
je 0x425a29
push 0
push 0
push 2
push ecx
mov eax, esp
mov dword [ebp - 0x660], esp
push eax
mov ecx, esi
call fcn.0040deb0
push 0
call fcn.004196e0
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x674]
jmp 0x42597c
mov eax, dword [ebp - 0x66c]
push 0
push 0
push 2
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x660], esp
mov esi, esp
push eax
call fcn.00402f60
add esp, 4
add eax, 0x10
push 0
mov dword [esi], eax
call fcn.004196e0
add esp, 0x14
lea ecx, [ebp - 0x64c]
call fcn.00402e70
lea ecx, [ebp - 0x66c]
call fcn.00402e70
lea ecx, [ebp - 0x664]
call fcn.00402e70
lea ecx, [ebp - 0x644]
call fcn.00402e70
lea ecx, [ebp - 0x668]
call fcn.00402e70
lea ecx, [ebp - 0x648]
call fcn.00402e70
lea ecx, [ebp - 0x698]
mov byte [ebp - 4], 8
call fcn.0043f9d7
lea ecx, [ebp - 0x654]
call fcn.00402e70
lea ecx, [ebp - 0x65c]
call fcn.00402e70
lea ecx, [ebp - 0x640]
call fcn.00402e70
lea ecx, [ebp - 0x630]
call fcn.00402e70
lea ecx, [ebp - 0x658]
call fcn.00402e70
lea ecx, [ebp - 0x650]
call fcn.00402e70
lea ecx, [ebp - 0x638]
call fcn.00402e70
lea ecx, [ebp - 0x634]
call fcn.00402e70
mov eax, 0x652
jmp 0x42545f
cmp dword [ebx + 8], 0
jne 0x425b61
mov ecx, esi
call fcn.00413c70
test eax, eax
jne 0x425b61
lea ecx, [ebp - 0x63c]
push ecx
mov ecx, esi
call fcn.00411ee0
mov eax, dword [ebp - 0x63c]
push 0
push 0
push 0x13
push 0
push ecx
add eax, 0xfffffff0
mov bl, 0x1b
mov dword [ebp - 0x660], esp
mov edi, esp
push eax
mov byte [ebp - 4], bl
call fcn.00402f60
add eax, 0x10
mov dword [edi], eax
mov edx, esp
mov dword [ebp - 0x64c], esp
push edx
mov ecx, esi
mov byte [ebp - 4], 0x1c
call fcn.0040deb0
push 0
mov byte [ebp - 4], bl
call fcn.00417730
add esp, 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x63c]
call fcn.00402e70
lea ecx, [ebp - 0x674]
call fcn.00402e70
lea ecx, [ebp - 0x66c]
call fcn.00402e70
lea ecx, [ebp - 0x664]
call fcn.00402e70
lea ecx, [ebp - 0x644]
call fcn.00402e70
lea ecx, [ebp - 0x668]
call fcn.00402e70
lea ecx, [ebp - 0x648]
call fcn.00402e70
lea ecx, [ebp - 0x698]
mov byte [ebp - 4], 8
call fcn.0043f9d7
lea ecx, [ebp - 0x654]
call fcn.00402e70
lea ecx, [ebp - 0x65c]
call fcn.00402e70
lea ecx, [ebp - 0x640]
call fcn.00402e70
lea ecx, [ebp - 0x630]
call fcn.00402e70
lea ecx, [ebp - 0x658]
call fcn.00402e70
lea ecx, [ebp - 0x650]
call fcn.00402e70
lea ecx, [ebp - 0x638]
call fcn.00402e70
lea ecx, [ebp - 0x634]
call fcn.00402e70
mov eax, 0x82
jmp 0x42545f
mov ecx, ebx
call fcn.0041b090
test eax, eax
jne 0x425b7e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x674]
jmp 0x42597c
lea ecx, [ebp - 0x674]
call fcn.00402e70
lea ecx, [ebp - 0x66c]
call fcn.00402e70
lea ecx, [ebp - 0x664]
call fcn.00402e70
lea ecx, [ebp - 0x644]
call fcn.00402e70
lea ecx, [ebp - 0x668]
call fcn.00402e70
lea ecx, [ebp - 0x648]
call fcn.00402e70
lea ecx, [ebp - 0x698]
mov byte [ebp - 4], 8
call fcn.0043f9d7
lea ecx, [ebp - 0x654]
call fcn.00402e70
lea ecx, [ebp - 0x65c]
call fcn.00402e70
lea ecx, [ebp - 0x640]
call fcn.00402e70
lea ecx, [ebp - 0x630]
call fcn.00402e70
lea ecx, [ebp - 0x658]
call fcn.00402e70
lea ecx, [ebp - 0x650]
call fcn.00402e70
lea ecx, [ebp - 0x638]
call fcn.00402e70
lea ecx, [ebp - 0x634]
call fcn.00402e70
xor eax, eax
jmp 0x42545f
mov eax, dword [ebp - 0x66c]
push 0
push 0
push 1
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x660], esp
mov esi, esp
push eax
call fcn.00402f60
add esp, 4
add eax, 0x10
push 0
mov dword [esi], eax
call fcn.004196e0
add esp, 0x14
lea ecx, [ebp - 0x66c]
call fcn.00402e70
lea ecx, [ebp - 0x664]
call fcn.00402e70
lea ecx, [ebp - 0x644]
call fcn.00402e70
lea ecx, [ebp - 0x668]
call fcn.00402e70
lea ecx, [ebp - 0x648]
call fcn.00402e70
lea ecx, [ebp - 0x698]
mov byte [ebp - 4], 8
call fcn.0043f9d7
lea ecx, [ebp - 0x654]
call fcn.00402e70
lea ecx, [ebp - 0x65c]
call fcn.00402e70
lea ecx, [ebp - 0x640]
call fcn.00402e70
lea ecx, [ebp - 0x630]
call fcn.00402e70
lea ecx, [ebp - 0x658]
call fcn.00402e70
lea ecx, [ebp - 0x650]
call fcn.00402e70
lea ecx, [ebp - 0x638]
call fcn.00402e70
lea ecx, [ebp - 0x634]
call fcn.00402e70
mov eax, 0x661
jmp 0x42545f