Function at 0x40c600
Capabilities:
Get file size
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46c3e2
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x4854a0]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push esi
push edi
mov eax, dword [0x4854a0]
xor eax, esp
push eax
lea eax, [esp + 0x358]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0x4775eb
lea ecx, [edi + 0x40c]
mov dword [esp + 0x1c], edi
mov byte [edi + 0x1bc], 0
call fcn.00403a90
lea eax, [edi + 0x1bd]
lea ebx, [edi + 0x74]
push eax
mov ecx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x4c], ebx
call fcn.00409350
test al, al
jne 0x40c6b0
push 0x11
push str.Patch_file_error.
lea ecx, [edi + 0x540]
call fcn.00403750
push 0xb
call fcn.0041c647
test eax, eax
je 0x40dbfd
push 0xb
push eax
lea ecx, [edi + 0x544]
call fcn.00402cc0
jmp 0x40dbfd
lea esi, [edi + 0x43c]
mov ecx, ebx
mov dword [esp + 0x40], esi
call fcn.00409e60
mov edx, dword [edi + 0xa4]
test edx, edx
lea eax, [edi + 0xa0]
mov dword [esp + 0x20], 0
mov dword [esp + 0x44], eax
jne 0x40c6e5
xor ebx, ebx
mov dword [esp + 0x30], ebx
jmp 0x40c703
mov ecx, dword [eax + 8]
sub ecx, edx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x30], eax
xor ebx, ebx
lea eax, [edi + 0x548]
push str.config.patch
push eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x24]
push eax
call fcn.0040de50
add esp, 0xc
mov dword [esp + 0x360], ebx
mov ecx, dword [eax]
mov eax, ecx
mov dword [esp + 0x130], 0xf
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], 0
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40c748
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x120]
call fcn.00403a90
mov byte [esp + 0x360], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c789
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, 0x10
cmp dword [esp + 0x130], esi
jb 0x40c7a4
mov ecx, dword [esp + 0x11c]
mov dword [esp + 0x10], ecx
jmp 0x40c7af
lea edx, [esp + 0x11c]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.00412d40
push ebx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x36c], 3
call fcn.00453310
mov eax, dword [eax]
add esp, 0xc
cmp eax, ebx
je 0x40c7eb
cmp eax, 1
je 0x40c7eb
mov eax, 1
jmp 0x40c7ed
xor eax, eax
test al, al
sete bl
mov byte [esp + 0x360], 2
cmp dword [esp + 0x68], 8
jb 0x40c80e
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0041bf87
add esp, 4
test bl, bl
je 0x40c857
push 0x27
push str.Can_not_find_version_file_config.patch.
lea ecx, [edi + 0x540]
call fcn.00403750
push 0x11
call fcn.0041c647
test eax, eax
je 0x40c83d
push 0x11
push eax
lea ecx, [edi + 0x544]
call fcn.00402cc0
cmp dword [esp + 0x130], esi
jb 0x40dbfd
mov edx, dword [esp + 0x11c]
push edx
jmp 0x40dbf5
cmp dword [esp + 0x130], esi
mov eax, dword [esp + 0x11c]
jae 0x40c86e
lea eax, [esp + 0x11c]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push eax
mov byte [esp + 0xfc], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0xe4], eax
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebx
cmp eax, 0xffffffff
mov byte [esp + 0x360], 4
je 0x40dbad
lea ecx, [esp + 0x34]
push ecx
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [esp + 0x34], 0x64
jne 0x40dbad
cmp dword [esp + 0x38], ebx
jne 0x40dbad
push ebx
push 0x32
lea esi, [esp + 0xe8]
call fcn.0040f320
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x320]
push eax
mov ebx, 0x32
call fcn.00413330
lea ecx, [esp + 0x31c]
push ecx
lea ecx, [esp + 0x138]
call fcn.00402480
mov byte [esp + 0x360], 5
cmp dword [edi + 0x9c], 0x10
jb 0x40c937
mov eax, dword [edi + 0x88]
jmp 0x40c93d
lea eax, [edi + 0x88]
call fcn.00409f40
cmp dword [esp + 0x14c], 0x10
mov esi, eax
mov eax, dword [esp + 0x138]
jae 0x40c95c
lea eax, [esp + 0x138]
call fcn.00409f40
cmp esi, eax
mov dword [esp + 0x2c], eax
jbe 0x40c9af
push str.Version_not_match.
lea ecx, [edi + 0x540]
call fcn.004023c0
push 0x12
lea ecx, [edi + 0x544]
call fcn.00402400
lea ecx, [esp + 0x134]
call fcn.004024c0
lea eax, [esp + 0xe0]
call fcn.0040f2e0
lea ecx, [esp + 0x118]
call fcn.004024c0
jmp 0x40dbfd
jae 0x40ca10
xor ebx, ebx
cmp dword [esp + 0x30], ebx
jbe 0x40c9f1
lea esp, [esp]
mov esi, dword [esp + 0x44]
mov edi, ebx
call fcn.00402a20
cmp dword [eax + 0x18], 0x10
jb 0x40c9d6
mov eax, dword [eax + 4]
jmp 0x40c9d9
add eax, 4
call fcn.00409f40
cmp eax, dword [esp + 0x2c]
ja 0x40ca08
add ebx, 1
cmp ebx, dword [esp + 0x30]
jb 0x40c9c0
mov edi, dword [esp + 0x14]
push str.Do_not_need_upgrade.
lea ecx, [edi + 0x540]
call fcn.004023c0
push 0x13
jmp 0x40c97b
mov edi, dword [esp + 0x14]
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x134]
call fcn.004024c0
lea eax, [esp + 0xe0]
mov byte [esp + 0x360], 2
call fcn.0040f2e0
mov edx, dword [esp + 0x4c]
push str._res.pak
push edx
lea eax, [esp + 0x74]
push eax
call fcn.0040de50
add esp, 0xc
mov byte [esp + 0x360], 6
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x100]
call fcn.00402480
mov byte [esp + 0x360], 8
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x114], 0x10
jb 0x40ca9d
mov ecx, dword [esp + 0x100]
mov dword [esp + 0x10], ecx
jmp 0x40caa8
lea edx, [esp + 0x100]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.00412d40
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x364], 9
call fcn.00402050
add esp, 4
test al, al
lea ecx, [esp + 0x50]
sete bl
mov byte [esp + 0x360], 8
call fcn.00402880
test bl, bl
mov eax, dword [esp + 0x100]
je 0x40cb80
cmp dword [esp + 0x114], 0x10
jae 0x40cb02
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x1c]
call fcn.004022c0
lea ecx, [esp + 0x1c]
push str.Can_not_find_file:
push ecx
mov ecx, eax
mov byte [esp + 0x368], 0xa
call fcn.0040df30
add esp, 8
lea ecx, [edi + 0x540]
push eax
mov byte [esp + 0x364], 0xb
call fcn.00402e20
lea ecx, [esp + 0x1c]
call fcn.00402380
lea ecx, [esp + 0x18]
mov byte [esp + 0x360], 8
call fcn.00402380
push 0x11
lea ecx, [edi + 0x544]
call fcn.00402400
lea ecx, [esp + 0xfc]
call fcn.004024c0
lea ecx, [esp + 0x118]
call fcn.004024c0
jmp 0x40dbfd
mov esi, 0x10
cmp dword [esp + 0x114], esi
jae 0x40cb95
lea eax, [esp + 0x100]
lea ecx, [edi + 0x428]
push eax
mov dword [esp + 0x38], ecx
call fcn.004080a0
test al, al
jne 0x40cbff
cmp dword [esp + 0x114], esi
mov eax, dword [esp + 0x100]
jae 0x40cbc0
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x1c]
call fcn.004022c0
lea edx, [esp + 0x1c]
push str.Load_file_error:
push edx
mov ecx, eax
mov byte [esp + 0x368], 0xc
call fcn.0040df30
add esp, 8
push eax
lea ecx, [edi + 0x540]
mov byte [esp + 0x364], 0xd
call fcn.004023a0
jmp 0x40cb3c
lea eax, [esp + 0x16c]
push eax
call fcn.00408410
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x30]
mov byte [esp + 0x360], 0xe
mov dword [esp + 0x10], eax
jae 0x40cebf
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x44]
call fcn.00402a20
push eax
lea esi, [esp + 0x154]
call fcn.00412bf0
add esp, 4
mov ebx, 0xf
push eax
mov edi, str..lst
lea esi, [esp + 0xe4]
mov byte [esp + 0x364], bl
call fcn.00405440
add esp, 4
mov esi, 0x10
mov byte [esp + 0x360], 0x11
cmp dword [esp + 0x168], esi
jb 0x40cc8a
mov ecx, dword [esp + 0x154]
push ecx
call fcn.0041bf87
add esp, 4
cmp dword [esp + 0xf8], esi
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x168], ebx
mov dword [esp + 0x164], 0
mov byte [esp + 0x154], 0
jae 0x40ccbb
lea eax, [esp + 0xe4]
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + 0xb0]
push eax
call fcn.0040e450
test eax, eax
je 0x40ccd4
cmp dword [eax], 0xffffffff
jne 0x40cd3c
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x44]
call fcn.00402a20
push eax
lea esi, [esp + 0x54]
call fcn.00412bf0
add esp, 4
push eax
mov edi, str..inf
lea esi, [esp + 0x320]
mov byte [esp + 0x364], 0x12
call fcn.00405440
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xec]
mov byte [esp + 0x36c], 0x13
call fcn.00402f60
mov ecx, esi
call fcn.004024c0
lea ecx, [esp + 0x50]
mov byte [esp + 0x360], 0x11
call fcn.004024c0
cmp dword [esp + 0xf8], 0x10
mov eax, dword [esp + 0xe4]
jae 0x40cd54
lea eax, [esp + 0xe4]
mov edi, dword [esp + 0x48]
call fcn.00409d10
mov esi, eax
cmp esi, 0xffffffff
je 0x40cf0f
push esi
call fcn.0041bf8c
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
test ebx, ebx
mov byte [esp + 0x360], 0x14
je 0x40cf56
cmp dword [esp + 0xf8], 0x10
mov eax, dword [esp + 0xe4]
jae 0x40cd9f
lea eax, [esp + 0xe4]
push ebx
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.00409d50
test al, al
je 0x40cfa7
mov edi, dword [esp + 0x10]
cmp edi, dword [esp + 0x20]
mov ecx, dword [esp + 0xe4]
jne 0x40ce64
cmp dword [esp + 0xf8], 0x10
jae 0x40cdd9
lea ecx, [esp + 0xe4]
push esi
push ebx
lea edx, [esp + 0x174]
call fcn.00408b70
test al, al
jne 0x40ce8d
cmp dword [esp + 0xf8], 0x10
mov eax, dword [esp + 0xe4]
jae 0x40ce07
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x1c]
call fcn.004022c0
lea ecx, [esp + 0x1c]
push str.Can_not_open_file:
push ecx
mov ecx, eax
mov byte [esp + 0x368], 0x15
call fcn.0040df30
add esp, 8
mov byte [esp + 0x360], 0x16
mov esi, dword [esp + 0x14]
push eax
lea ecx, [esi + 0x540]
call fcn.004023a0
lea ecx, [esp + 0x1c]
call fcn.00402380
lea ecx, [esp + 0x18]
mov byte [esp + 0x360], 0x14
call fcn.00402380
jmp 0x40cfbb
cmp dword [esp + 0xf8], 0x10
jae 0x40ce75
lea ecx, [esp + 0xe4]
push ebx
lea edx, [esp + 0x170]
push edx
mov edx, esi
call fcn.004086c0
test al, al
je 0x40cff7
push ebx
call fcn.0041bf87
add esp, 4
lea ecx, [esp + 0xe0]
mov byte [esp + 0x360], 0xe
call fcn.004024c0
add edi, 1
cmp edi, dword [esp + 0x30]
mov dword [esp + 0x10], edi
jb 0x40cc26
mov edi, dword [esp + 0x14]
cmp byte [edi + 0x438], 0
lea esi, [edi + 0x438]
je 0x40d079
cmp byte [esp + 0x1a8], 0
je 0x40d079
lea ecx, [esp + 0x1a8]
xor ebx, ebx
xor eax, eax
sub esi, ecx
lea ecx, [ecx]
lea ecx, [esp + eax + 0x1a8]
mov dl, byte [esi + ecx]
cmp dl, byte [ecx]
jne 0x40d042
add eax, 1
cmp eax, 4
jl 0x40cef0
jmp 0x40d07b
mov esi, dword [esp + 0x14]
push str.Patch_file_error.
lea ecx, [esi + 0x540]
call fcn.004023c0
push 0xb
lea ecx, [esi + 0x544]
call fcn.00402400
lea ecx, [esp + 0xe0]
call fcn.004024c0
lea eax, [esp + 0x16c]
push eax
mov byte [esp + 0x364], 8
call fcn.00408470
jmp 0x40cb63
mov esi, dword [esp + 0x14]
push 0x477848
lea ecx, [esi + 0x540]
call fcn.004023c0
push 0xb
lea ecx, [esi + 0x544]
call fcn.00402400
push 0
call fcn.0041bf87
add esp, 4
lea ecx, [esp + 0xe0]
call fcn.004024c0
lea ecx, [esp + 0x16c]
push ecx
mov byte [esp + 0x364], 8
call fcn.00408470
jmp 0x40cb63
mov esi, dword [esp + 0x14]
push str.Patch_file_error.
lea ecx, [esi + 0x540]
call fcn.004023c0
push 0xb
lea ecx, [esi + 0x544]
call fcn.00402400
push ebx
call fcn.0041bf87
add esp, 4
lea ecx, [esp + 0xe0]
call fcn.004024c0
lea edx, [esp + 0x16c]
push edx
mov byte [esp + 0x364], 8
call fcn.00408470
jmp 0x40cb63
cmp dword [esp + 0xf8], 0x10
mov eax, dword [esp + 0xe4]
jae 0x40d00f
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x1c]
call fcn.004022c0
lea ecx, [esp + 0x1c]
push str.Can_not_open_file:
push ecx
mov ecx, eax
mov byte [esp + 0x368], 0x17
call fcn.0040df30
add esp, 8
mov byte [esp + 0x360], 0x18
jmp 0x40ce35
push str.Program_do_not_match.
lea ecx, [edi + 0x540]
call fcn.004023c0
push 0x11
lea ecx, [edi + 0x544]
call fcn.00402400
lea eax, [esp + 0x16c]
push eax
mov byte [esp + 0x364], 8
call fcn.00408470
jmp 0x40cb63
xor ebx, ebx
mov eax, dword [esp + 0x178]
cmp eax, ebx
jne 0x40d08a
xor ecx, ecx
jmp 0x40d0a6
mov ecx, dword [esp + 0x17c]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, dword [esp + 0x188]
cmp eax, ebx
mov dword [esp + 0x2c], ecx
jne 0x40d0bb
mov dword [esp + 0x20], ebx
jmp 0x40d0d9
mov edx, dword [esp + 0x18c]
sub edx, eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x20]
lea eax, [edx + ecx]
cmp eax, ebx
jbe 0x40da30
test eax, eax
fldz
fstp dword [edi + 0x2c4]
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
jge 0x40d102
fadd dword [0x477db0]
cmp ecx, ebx
fld1
fdivrp st(1)
mov dword [esp + 0x10], ebx
fstp dword [esp + 0x1c]
jbe 0x40d460
jmp 0x40d120
mov edi, dword [esp + 0x10]
lea esi, [esp + 0x16c]
call fcn.00402130
mov ebx, eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x90]
call fcn.00402480
lea ecx, [ebx + 0x1c]
push ecx
push eax
lea esi, [esp + 0xcc]
mov byte [esp + 0x368], 0x19
call fcn.004053a0
push eax
mov edi, 0x477658
lea esi, [esp + 0xb4]
mov byte [esp + 0x36c], 0x1a
call fcn.00405440
add esp, 0xc
push ebx
push eax
lea esi, [esp + 0x158]
mov byte [esp + 0x368], 0x1b
call fcn.004053a0
add esp, 8
cmp dword [esp + 0xc0], 0x10
jb 0x40d1ae
mov ecx, dword [esp + 0xac]
push ecx
call fcn.0041bf87
add esp, 4
mov edi, 0xf
xor esi, esi
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], esi
mov byte [esp + 0xac], 0
cmp dword [esp + 0xdc], 0x10
jb 0x40d1e5
mov edx, dword [esp + 0xc8]
push edx
call fcn.0041bf87
add esp, 4
mov dword [esp + 0xdc], edi
mov dword [esp + 0xd8], esi
mov byte [esp + 0xc8], 0
mov byte [esp + 0x360], 0x1f
cmp dword [esp + 0xa4], 0x10
jb 0x40d21d
mov eax, dword [esp + 0x90]
push eax
call fcn.0041bf87
add esp, 4
xor ecx, ecx
cmp byte [ebx + 0x38], cl
lea edx, [esp + 0x50]
setne cl
push edx
lea edi, [esp + 0x154]
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], esi
mov byte [esp + 0x94], 0
mov dword [esp + 0x28], ecx
call fcn.00412db0
mov ecx, eax
mov byte [esp + 0x360], 0x20
call fcn.00453e30
push 0xffffffffffffffff
push esi
mov edi, 7
push eax
lea ecx, [esp + 0x140]
mov dword [esp + 0x158], edi
mov dword [esp + 0x154], esi
mov word [esp + 0x144], si
call fcn.00403170
mov byte [esp + 0x360], 0x22
cmp dword [esp + 0x68], 8
jb 0x40d2aa
mov eax, dword [esp + 0x54]
push eax
call fcn.0041bf87
add esp, 4
lea ecx, [esp + 0x134]
push esi
push ecx
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], esi
mov word [esp + 0x5c], si
call fcn.004535f0
add esp, 8
mov dword [esp + 0x1dc], esi
mov dword [esp + 0x1e0], esi
mov dword [esp + 0x1e4], esi
mov dword [esp + 0x200], 0xf
mov dword [esp + 0x1fc], esi
mov byte [esp + 0x1ec], 0
mov dword [esp + 0x1d4], esi
mov dword [esp + 0x204], 0xffffffff
mov dword [esp + 0x20c], esi
mov dword [esp + 0x314], esi
mov byte [esp + 0x210], 0
mov dword [esp + 0x310], esi
mov byte [esp + 0x360], 0x23
cmp dword [esp + 0x168], 0x10
mov ecx, dword [esp + 0x154]
jae 0x40d346
lea ecx, [esp + 0x154]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
push edx
push eax
lea edx, [esp + 0x1dc]
push edx
call fcn.00406430
lea eax, [esp + 0x1d4]
call fcn.00412a10
mov eax, dword [esp + 0x14]
fld dword [eax + 0x2c4]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fst dword [eax + 0x2c4]
fmul qword [0x477da0]
call fcn.0043bf00
mov dword [esp + 0x24], eax
lea eax, [ebx + 0x1c]
push eax
mov edi, 0x477658
lea esi, [esp + 0x54]
call fcn.00405440
add esp, 4
push ebx
push eax
lea esi, [esp + 0x324]
mov byte [esp + 0x368], 0x24
call fcn.004053a0
add esp, 8
mov byte [esp + 0x360], 0x26
cmp dword [esp + 0x68], 0x10
jb 0x40d3de
mov eax, dword [esp + 0x54]
push eax
call fcn.0041bf87
add esp, 4
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, esi
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
call fcn.0040dc30
cmp byte [esi + 0x1bc], 0
jne 0x40d521
lea ecx, [esp + 0x31c]
call fcn.004024c0
lea esi, [esp + 0x1d4]
call fcn.00406060
lea ecx, [esp + 0x134]
call fcn.00402880
lea ecx, [esp + 0x150]
mov byte [esp + 0x360], 0xe
call fcn.004024c0
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
jb 0x40d120
mov edi, dword [esp + 0x14]
push str._res.pak.enz
lea ecx, [esp + 0xe4]
call fcn.00402480
mov byte [esp + 0x360], 0x27
cmp dword [esp + 0xf8], 0x10
mov eax, dword [esp + 0xe4]
jae 0x40d491
lea eax, [esp + 0xe4]
mov ebx, dword [edi + 0xb0]
push eax
call fcn.0040e450
test eax, eax
je 0x40d82d
cmp dword [eax], 0xffffffff
je 0x40d82d
cmp dword [esp + 0xf8], 0x10
mov eax, dword [esp + 0xe4]
jae 0x40d4c6
lea eax, [esp + 0xe4]
mov edi, dword [esp + 0x48]
call fcn.00409d10
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d56e
mov esi, dword [esp + 0x14]
push str.Patch_file_error.
lea ecx, [esi + 0x540]
call fcn.004023c0
push 0xb
lea ecx, [esi + 0x544]
call fcn.00402400
lea ecx, [esp + 0xe0]
call fcn.004024c0
lea edx, [esp + 0x16c]
push edx
mov byte [esp + 0x364], 8
call fcn.00408470
jmp 0x40cb63
push str.User_aborted.
lea ecx, [esi + 0x540]
call fcn.004023c0
push 0xd
lea ecx, [esi + 0x544]
call fcn.00402400
lea ecx, [esp + 0x31c]
call fcn.004024c0
lea esi, [esp + 0x1d4]
call fcn.00406060
lea ecx, [esp + 0x134]
call fcn.00402880
lea ecx, [esp + 0x150]
jmp 0x40cf88
push esi
call fcn.0041bf8c
mov ebx, eax
add esp, 4
mov dword [esp + 0x4c], ebx
test ebx, ebx
mov byte [esp + 0x360], 0x28
jne 0x40d5b8
mov esi, dword [esp + 0x14]
push 0x477848
lea ecx, [esi + 0x540]
call fcn.004023c0
push 0xb
lea ecx, [esi + 0x544]
call fcn.00402400
push ebx
call fcn.0041bf87
add esp, 4
jmp 0x40cf30
cmp dword [esp + 0xf8], 0x10
mov eax, dword [esp + 0xe4]
jae 0x40d5d0
lea eax, [esp + 0xe4]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x48]
push ebx
push eax
push ecx
call fcn.00409d50
test al, al
jne 0x40d634
mov esi, dword [esp + 0x14]
push str.Patch_file_error.
lea ecx, [esi + 0x540]
call fcn.004023c0
push 0xb
lea ecx, [esi + 0x544]
call fcn.00402400
push ebx
call fcn.0041bf87
add esp, 4
lea ecx, [esp + 0xe0]
call fcn.004024c0
lea edx, [esp + 0x16c]
push edx
mov byte [esp + 0x364], 8
call fcn.00408470
jmp 0x40cb63
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
mov al, byte [ebx + esi - 1]
sub al, 0x5c
xor byte [ebx + 4], al
mov cl, al
add cl, cl
xor byte [esp + 0x10], cl
mov dl, al
shr dl, 1
xor byte [esp + 0x11], dl
mov cl, al
mov dl, al
add esi, 0xfffffffc
add cl, cl
add cl, cl
xor byte [esp + 0x12], cl
shr dl, 2
xor byte [esp + 0x13], dl
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], esi
lea esi, [ebx + 4]
push eax
mov dword [esp + 0x30], eax
call fcn.0041bf8c
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
mov byte [esp + 0x360], 0x29
jne 0x40d6cb
mov esi, dword [esp + 0x14]
push 0x477848
lea ecx, [esi + 0x540]
call fcn.004023c0
push 0xb
lea ecx, [esi + 0x544]
call fcn.00402400
push edi
call fcn.0041bf87
add esp, 4
push ebx
call fcn.0041bf87
add esp, 4
jmp 0x40cf30
mov ecx, dword [esp + 0x24]
push ecx
push esi
lea edx, [esp + 0x34]
push edx
push edi
call fcn.00417950
mov eax, dword [esp + 0x110]
add esp, 0x10
cmp dword [esp + 0x114], 0x10
jae 0x40d6f7
lea eax, [esp + 0x100]
push eax
mov eax, 2
xor ecx, ecx
mov edx, 0x40000000
lea esi, [esp + 0x138]
call fcn.0040f2a0
push 1
lea edx, [esp + 0x28]
push edx
xor ecx, ecx
xor eax, eax
push ecx
mov byte [esp + 0x36c], 0x2a
mov esi, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edx, dword [esp + 0x138]
push 0
lea ecx, [esp + 0x140]
push ecx
push esi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d770
sub esi, dword [esp + 0x13c]
mov dword [esp + 0x13c], esi
je 0x40d803
mov eax, 4
jmp 0x40d775
mov eax, 6
add al, 0x30
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x15], 0
call fcn.004022c0
lea ecx, [esp + 0x24]
push str.Writing_file_to_disk_error:__res.pak
push ecx
mov ecx, eax
mov byte [esp + 0x368], 0x2b
call fcn.0040df30
add esp, 8
mov esi, dword [esp + 0x14]
push eax
lea ecx, [esi + 0x540]
mov byte [esp + 0x364], 0x2c
call fcn.004023a0
lea ecx, [esp + 0x24]
call fcn.00402380
lea ecx, [esp + 0x40]
mov byte [esp + 0x360], 0x2a
call fcn.00402380
push 0x10
lea ecx, [esi + 0x544]
call fcn.00402400
lea eax, [esp + 0x134]
call fcn.0040f2e0
push edi
call fcn.0041bf87
add esp, 4
jmp 0x40d605
lea eax, [esp + 0x134]
call fcn.0040f2e0
push edi
call fcn.0041bf87
add esp, 4
push ebx
mov byte [esp + 0x364], 0x27
call fcn.0041bf87
mov edi, dword [esp + 0x18]
add esp, 4
mov esi, 0x10
cmp dword [esp + 0x114], esi
jb 0x40d848
mov eax, dword [esp + 0x100]
mov dword [esp + 0x18], eax
jmp 0x40d853
lea ecx, [esp + 0x100]
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x320]
push eax
call fcn.00412d40
lea ecx, [esp + 0x31c]
push ecx
mov byte [esp + 0x364], 0x2d
call fcn.00402050
add esp, 4
test al, al
lea ecx, [esp + 0x31c]
sete bl
mov byte [esp + 0x360], 0x27
call fcn.00402880
test bl, bl
mov eax, dword [esp + 0x100]
je 0x40d912
cmp dword [esp + 0x114], esi
jae 0x40d8b1
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x44]
call fcn.004022c0
lea edx, [esp + 0x24]
push str.Can_not_find_file:
push edx
mov ecx, eax
mov byte [esp + 0x368], 0x2e
call fcn.0040df30
add esp, 8
lea ecx, [edi + 0x540]
push eax
mov byte [esp + 0x364], 0x2f
call fcn.00402e20
lea ecx, [esp + 0x24]
call fcn.00402380
lea ecx, [esp + 0x40]
mov byte [esp + 0x360], 0x27
call fcn.00402380
push 0x11
lea ecx, [edi + 0x544]
jmp 0x40cf2b
cmp dword [esp + 0x114], esi
jae 0x40d922
lea eax, [esp + 0x100]
mov ecx, dword [esp + 0x34]
push eax
call fcn.004080a0
test al, al
jne 0x40d9ad
cmp dword [esp + 0x114], esi
mov eax, dword [esp + 0x100]
jae 0x40d947
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x28]
call fcn.004022c0
lea ecx, [esp + 0x34]
push str.Load_file_error:
push ecx
mov ecx, eax
mov byte [esp + 0x368], 0x30
call fcn.0040df30
add esp, 8
push eax
lea ecx, [edi + 0x540]
mov byte [esp + 0x364], 0x31
call fcn.004023a0
lea ecx, [esp + 0x34]
call fcn.00402380
lea ecx, [esp + 0x24]
mov byte [esp + 0x360], 0x27
call fcn.00402380
push 0x11
lea ecx, [edi + 0x544]
call fcn.00402400
jmp 0x40d60e
xor ebx, ebx
cmp dword [esp + 0x20], ebx
jbe 0x40da1a
jmp 0x40d9c0
mov edi, ebx
lea esi, [esp + 0x16c]
call fcn.004020d0
fld dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push ecx
fstp dword [esp]
push esi
mov ecx, eax
call fcn.0040b670
test eax, eax
je 0x40db4d
fld dword [esi + 0x2c4]
fmul qword [0x477da0]
call fcn.0043bf00
mov ecx, esi
call fcn.0040dc30
cmp byte [esi + 0x1bc], 0
jne 0x40db5e
add ebx, 1
cmp ebx, dword [esp + 0x20]
jb 0x40d9c0
mov edi, esi
lea ecx, [esp + 0xe0]
mov byte [esp + 0x360], 0xe
call fcn.004024c0
xor ebx, ebx
add edi, 0x2c8
push edi
call fcn.00412e10
cmp dword [esp + 0x130], 0x10
mov eax, dword [esp + 0x11c]
jae 0x40da54
lea eax, [esp + 0x11c]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x40000000
push eax
mov byte [esp + 0x8c], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x74], eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
push ebx
push 0x32
lea esi, [esp + 0x78]
mov byte [esp + 0x368], 0x32
call fcn.0040f320
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x44]
lea edx, [esp + 0x34]
push edx
add edi, 0xffffffff
call fcn.00402a20
lea ecx, [esp + 0x74]
call fcn.00412ff0
mov ecx, dword [esp + 0x18]
add esp, 4
push str.Successful.
add ecx, 0x540
call fcn.004023c0
lea eax, [esp + 0x70]
call fcn.0040f2e0
lea eax, [esp + 0x16c]
push eax
mov byte [esp + 0x364], 8
call fcn.00408470
mov esi, 0x10
cmp dword [esp + 0x114], esi
jb 0x40db10
mov ecx, dword [esp + 0x100]
push ecx
call fcn.0041bf87
add esp, 4
cmp dword [esp + 0x130], esi
mov dword [esp + 0x114], 0xf
mov dword [esp + 0x110], ebx
mov byte [esp + 0x100], 0
jb 0x40db43
mov edx, dword [esp + 0x11c]
push edx
call fcn.0041bf87
add esp, 4
mov eax, 1
jmp 0x40dbff
add esi, 0x2c8
push esi
call fcn.00412e10
jmp 0x40cf30
push str.User_aborted.
lea ecx, [esi + 0x540]
call fcn.004023c0
push 0xd
lea ecx, [esi + 0x544]
call fcn.00402400
add esi, 0x2c8
push esi
call fcn.00412e10
lea ecx, [esp + 0xe0]
call fcn.004024c0
lea ecx, [esp + 0x16c]
push ecx
mov byte [esp + 0x364], 8
call fcn.00408470
jmp 0x40cb63
push 0x13
push str.config.patch_error.
lea ecx, [edi + 0x540]
call fcn.00403750
push 0x12
call fcn.0041c647
cmp eax, ebx
je 0x40dbd8
push 0x12
push eax
lea ecx, [edi + 0x544]
call fcn.00402cc0
lea eax, [esp + 0xe0]
call fcn.0040f2e0
cmp dword [esp + 0x130], esi
jb 0x40dbfd
mov eax, dword [esp + 0x11c]
push eax
call fcn.0041bf87
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x358]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.00436f5b
mov esp, ebp
pop ebp
ret