Function at 0x404c50
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xf4
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push ecx
xor edi, edi
add esi, 0xfffffff0
mov dword [esp + 0x68], esp
push esi
mov ebx, ecx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x9c], esi
call fcn.004018b0
mov ecx, dword [esp + 0x6c]
add eax, 0x10
mov dword [ecx], eax
lea ecx, [ebx + 0xe8]
add esp, 4
mov dword [esp + 0x3c], ecx
call fcn.0040bcd0
cmp eax, edi
jne 0x404d23
mov eax, dword [esp + 0x54]
cmp eax, edi
je 0x404cd0
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x54]
push ecx
push edx
push eax
call fcn.00403200
mov eax, dword [esp + 0x64]
push eax
call fcn.0040c884
add esp, 0x14
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404cfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c4d
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x38]
push 0x41c90c
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
call fcn.0040b6a0
mov edx, dword [0x423928]
mov eax, dword [edx + 0xc]
mov ecx, 0x423928
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call eax
mov edx, dword [0x423928]
add eax, 0x10
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x423928
call eax
mov edx, dword [0x423928]
add eax, 0x10
mov dword [esp + 0x60], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x423928
call eax
mov edx, dword [0x423928]
add eax, 0x10
mov dword [esp + 0x68], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x423928
call eax
mov edx, dword [0x423928]
add eax, 0x10
mov dword [esp + 0x78], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x423928
call eax
mov edx, dword [0x423928]
add eax, 0x10
mov dword [esp + 0x70], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x423928
call eax
mov edx, dword [0x423928]
add eax, 0x10
mov dword [esp + 0x74], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x423928
call eax
mov edx, dword [0x423928]
add eax, 0x10
mov dword [esp + 0x6c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x423928
call eax
mov esi, eax
add esi, 0x10
lea ecx, [esp + 0x80]
mov dword [esp + 0x8c], esi
call fcn.0040b640
push edi
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x88]
call fcn.0040b800
test eax, eax
je 0x405047
lea ecx, [ecx]
push 0x41c900
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x4c]
call fcn.0040bb10
push 0x41c8f8
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040bb10
push 0x41c8f0
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040bb10
push 0x41c8e8
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x4c]
call fcn.0040bb10
push 0x41c8e0
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040bb10
push 0x41c8d8
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040bb10
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x48]
call fcn.0040bc10
push 0x41c8d4
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.00402f40
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
push eax
lea ecx, [esp + 0x94]
call fcn.00402b20
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404f0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x423928]
mov eax, dword [edx + 0xc]
mov ecx, 0x423928
call eax
mov edx, dword [0x423928]
add eax, 0x10
mov dword [esp + 0xf0], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x423928
call eax
lea ecx, [esp + 0x60]
add eax, 0x10
push ecx
lea ecx, [esp + 0xf4]
mov dword [esp + 0xf8], eax
call fcn.00403080
mov edx, dword [esp + 0x78]
push edx
call fcn.0040dcae
fstp qword [esp + 0xd4]
mov eax, dword [esp + 0x74]
push eax
call fcn.0040dcae
fstp qword [esp + 0xe8]
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0040dcae
fstp qword [esp + 0xe4]
mov edx, dword [esp + 0x78]
push edx
call fcn.0040dcae
fstp qword [esp + 0xf8]
add esp, 0x10
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0xf8]
call fcn.00403080
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0040db9d
add esp, 4
lea edx, [esp + 0xd0]
push edx
lea ecx, [esp + 0x54]
mov dword [esp + 0xfc], eax
call fcn.00404bb0
mov eax, dword [esp + 0x44]
cmp eax, edi
je 0x404fe0
mov dword [esp + 0x44], edi
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xf4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405003
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xf0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405026
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x88]
call fcn.0040b800
test eax, eax
jne 0x404e40
mov esi, dword [esp + 0x8c]
mov eax, dword [esp + 0x80]
cmp eax, edi
je 0x405061
mov dword [esp + 0x80], edi
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov ebx, esp
push eax
mov dword [esp + 0x6c], eax
call fcn.004018b0
mov ecx, dword [esp + 0x40]
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.0040bcd0
cmp eax, 1
jne 0x4052c8
push 0x41c90c
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x40]
call fcn.0040b6a0
lea ecx, [esp + 0x80]
call fcn.0040b640
push edi
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x88]
call fcn.0040b800
test eax, eax
je 0x4052ae
lea ebx, [ebx]
push 0x41c900
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040bb10
push 0x41c8f8
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040bb10
push 0x41c8f0
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x4c]
call fcn.0040bb10
push 0x41c8e8
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040bb10
push 0x41c8e0
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040bb10
push 0x41c8d8
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x4c]
call fcn.0040bb10
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x48]
call fcn.0040bc10
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x405178
cmp dword [esi - 0xc], edi
jl 0x405178
push eax
push esi
call fcn.0040d17c
add esp, 8
cmp eax, edi
je 0x405178
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x405280
mov edx, dword [0x423928]
mov eax, dword [edx + 0xc]
mov ecx, 0x423928
call eax
mov edx, dword [0x423928]
add eax, 0x10
mov dword [esp + 0xf0], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x423928
call eax
lea ecx, [esp + 0x60]
add eax, 0x10
push ecx
lea ecx, [esp + 0xf4]
mov dword [esp + 0xf8], eax
call fcn.00403080
mov edx, dword [esp + 0x78]
push edx
call fcn.0040dcae
fstp qword [esp + 0xd4]
mov eax, dword [esp + 0x74]
push eax
call fcn.0040dcae
fstp qword [esp + 0xe8]
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0040dcae
fstp qword [esp + 0xe4]
mov edx, dword [esp + 0x78]
push edx
call fcn.0040dcae
fstp qword [esp + 0xf8]
add esp, 0x10
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0xf8]
call fcn.00403080
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0040db9d
add esp, 4
lea edx, [esp + 0xd0]
push edx
lea ecx, [esp + 0x54]
mov dword [esp + 0xfc], eax
call fcn.00404bb0
mov eax, dword [esp + 0xf4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40525d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xf0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405280
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
cmp eax, edi
je 0x405294
mov dword [esp + 0x44], edi
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push edi
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x88]
call fcn.0040b800
test eax, eax
jne 0x4050d0
mov eax, dword [esp + 0x80]
cmp eax, edi
je 0x4052c8
mov dword [esp + 0x80], edi
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x423928]
mov edx, dword [eax + 0xc]
mov ecx, 0x423928
call edx
push 0x41
add eax, 0x10
push 0x41c850
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
call fcn.00402a80
mov eax, dword [0x423928]
mov edx, dword [eax + 0xc]
mov ecx, 0x423928
call edx
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
add eax, 0x10
cmp ecx, edi
mov dword [esp + 0x3c], eax
jne 0x405314
xor eax, eax
jmp 0x405329
mov edx, esi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
mov dword [esp + 0x98], eax
jle 0x4057de
xor ebx, ebx
jmp 0x405348
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x405363
sub esi, ecx
mov eax, 0x2aaaaaab
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40536c
call fcn.0040d09f
mov ecx, dword [esp + 0x54]
add edi, 1
push edi
lea eax, [esp + 0x40]
push 0x41c844
push eax
lea esi, [ecx + ebx]
call fcn.00403140
add esp, 0xc
push 0x41c83c
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0xb0]
push 0x41c818
push edx
call fcn.00402fd0
add esp, 0xc
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.00402f40
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.00402b20
mov eax, dword [esp + 0xb0]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4053e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xa8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40540b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x41c83c
lea ecx, [esi + 0x20]
push ecx
lea edx, [esp + 0xc0]
push 0x41c808
push edx
call fcn.00402fd0
add esp, 0xc
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.00402f40
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.00402b20
mov eax, dword [esp + 0x9c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40546d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xb8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405490
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
fld qword [esi]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x44]
push 0x41c800
push ecx
call fcn.00403140
add esp, 0x10
push 0x41c83c
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0xd0]
push 0x41c7f4
push eax
call fcn.00402fd0
add esp, 0xc
push eax
lea ecx, [esp + 0xc8]
push ecx
call fcn.00402f40
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.00402b20
mov eax, dword [esp + 0xc0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40550d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405530
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
fld qword [esi + 8]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x44]
push 0x41c800
push ecx
call fcn.00403140
add esp, 0x10
push 0x41c83c
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0xc4]
push 0x41c7e8
push eax
call fcn.00402fd0
add esp, 0xc
push eax
lea ecx, [esp + 0xac]
push ecx
call fcn.00402f40
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.00402b20
mov eax, dword [esp + 0xa4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4055ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xbc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4055d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
fld qword [esi + 0x10]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x44]
push 0x41c800
push ecx
call fcn.00403140
add esp, 0x10
push 0x41c83c
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0xd4]
push 0x41c7dc
push eax
call fcn.00402fd0
add esp, 0xc
push eax
lea ecx, [esp + 0xb4]
push ecx
call fcn.00402f40
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.00402b20
mov eax, dword [esp + 0xac]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40564f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xcc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405672
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
fld qword [esi + 0x18]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x44]
push 0x41c800
push ecx
call fcn.00403140
add esp, 0x10
push 0x41c7d4
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0xcc]
push 0x41c7c8
push eax
call fcn.00402fd0
add esp, 0xc
push eax
lea ecx, [esp + 0xbc]
push ecx
call fcn.00402f40
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.00402b20
mov eax, dword [esp + 0xb4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405713
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x41c7ac
push 0x41c7a4
add esi, 0x24
push esi
lea ecx, [esp + 0x88]
push 0x41c790
push ecx
call fcn.00402fd0
add esp, 0xc
push eax
lea edx, [esp + 0x9c]
push edx
call fcn.00402f40
add esp, 0xc
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.00402f40
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.00402b20
mov eax, dword [esp + 0xa0]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40578b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x90]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0x30
cmp edi, dword [esp + 0x98]
jl 0x405340
push 0xf
push 0x41c770
lea ecx, [esp + 0x40]
call fcn.00402b20
push 9
push 0x41c75c
lea ecx, [esp + 0x40]
call fcn.00402b20
mov ecx, dword [ebp + 0xc]
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x90], eax
je 0x405a74
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x7c], esi
mov esi, dword [ebx - 0xc]
lea esi, [esi + esi + 2]
push esi
call fcn.0040c7bc
push esi
mov edi, eax
push 0
push edi
call fcn.0040d450
mov edx, dword [ebx - 0xc]
add esp, 0x10
push 0
push 0x41c758
push esi
push edi
push edx
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea eax, [esp + 0x80]
push eax
push esi
mov esi, dword [esp + 0x9c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040db87
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4058af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4058cb
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4058ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x40590e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40592e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40594e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40596e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40598e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4059ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4059ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
xor esi, esi
cmp eax, esi
je 0x4059e0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x80]
cmp eax, esi
je 0x4059f3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x54]
cmp eax, esi
je 0x405a1d
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x54]
push edx
push ecx
push eax
call fcn.00403200
mov edx, dword [esp + 0x64]
push edx
call fcn.0040c884
add esp, 0x14
mov eax, dword [esp + 0x64]
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x94]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ab4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ad7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x405af7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405bb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
cmp eax, esi
je 0x405bc7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x80]
cmp eax, esi
je 0x405bda
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x54]
cmp eax, esi
je 0x405c04
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x54]
push edx
push ecx
push eax
call fcn.00403200
mov edx, dword [esp + 0x64]
push edx
call fcn.0040c884
add esp, 0x14
mov eax, dword [esp + 0x64]
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x94]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8