Function at 0x405c10
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.00401950
mov ecx, dword [esp + 0x6c]
add eax, 0x10
mov dword [ecx], eax
lea ecx, [ebx + 0x108]
add esp, 4
mov dword [esp + 0x3c], ecx
call fcn.00411410
cmp eax, edi
jne 0x405ce3
mov eax, dword [esp + 0x54]
cmp eax, edi
je 0x405c90
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x54]
push ecx
push edx
push eax
call fcn.00403710
mov eax, dword [esp + 0x64]
push eax
call fcn.00411fd4
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 0x405cbb
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 0x406c0d
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 0x423acc
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
call fcn.00410de0
mov edx, dword [0x42bbe0]
mov eax, dword [edx + 0xc]
mov ecx, 0x42bbe0
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call eax
mov edx, dword [0x42bbe0]
add eax, 0x10
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x42bbe0
call eax
mov edx, dword [0x42bbe0]
add eax, 0x10
mov dword [esp + 0x60], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x42bbe0
call eax
mov edx, dword [0x42bbe0]
add eax, 0x10
mov dword [esp + 0x68], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x42bbe0
call eax
mov edx, dword [0x42bbe0]
add eax, 0x10
mov dword [esp + 0x78], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x42bbe0
call eax
mov edx, dword [0x42bbe0]
add eax, 0x10
mov dword [esp + 0x70], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x42bbe0
call eax
mov edx, dword [0x42bbe0]
add eax, 0x10
mov dword [esp + 0x74], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x42bbe0
call eax
mov edx, dword [0x42bbe0]
add eax, 0x10
mov dword [esp + 0x6c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x42bbe0
call eax
mov esi, eax
add esi, 0x10
lea ecx, [esp + 0x80]
mov dword [esp + 0x8c], esi
call fcn.00410d80
push edi
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x88]
call fcn.00410f40
test eax, eax
je 0x406007
lea ecx, [ecx]
push 0x423ac0
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x4c]
call fcn.00411250
push 0x423ab8
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x4c]
call fcn.00411250
push 0x423ab0
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00411250
push 0x423aa8
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x4c]
call fcn.00411250
push 0x423aa0
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x4c]
call fcn.00411250
push 0x423a98
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00411250
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x48]
call fcn.00411350
push 0x423a94
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.00403450
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
push eax
lea ecx, [esp + 0x94]
call fcn.00402fb0
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 0x405eca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x42bbe0]
mov eax, dword [edx + 0xc]
mov ecx, 0x42bbe0
call eax
mov edx, dword [0x42bbe0]
add eax, 0x10
mov dword [esp + 0xf0], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x42bbe0
call eax
lea ecx, [esp + 0x60]
add eax, 0x10
push ecx
lea ecx, [esp + 0xf4]
mov dword [esp + 0xf8], eax
call fcn.00403590
mov edx, dword [esp + 0x78]
push edx
call fcn.004134b1
fstp qword [esp + 0xd4]
mov eax, dword [esp + 0x74]
push eax
call fcn.004134b1
fstp qword [esp + 0xe8]
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.004134b1
fstp qword [esp + 0xe4]
mov edx, dword [esp + 0x78]
push edx
call fcn.004134b1
fstp qword [esp + 0xf8]
add esp, 0x10
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0xf8]
call fcn.00403590
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00413422
add esp, 4
lea edx, [esp + 0xd0]
push edx
lea ecx, [esp + 0x54]
mov dword [esp + 0xfc], eax
call fcn.00405b70
mov eax, dword [esp + 0x44]
cmp eax, edi
je 0x405fa0
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 0x405fc3
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 0x405fe6
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.00410f40
test eax, eax
jne 0x405e00
mov esi, dword [esp + 0x8c]
mov eax, dword [esp + 0x80]
cmp eax, edi
je 0x406021
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.00401950
mov ecx, dword [esp + 0x40]
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.00411410
cmp eax, 1
jne 0x406288
push 0x423acc
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x40]
call fcn.00410de0
lea ecx, [esp + 0x80]
call fcn.00410d80
push edi
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x88]
call fcn.00410f40
test eax, eax
je 0x40626e
lea ebx, [ebx]
push 0x423ac0
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x4c]
call fcn.00411250
push 0x423ab8
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00411250
push 0x423ab0
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x4c]
call fcn.00411250
push 0x423aa8
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x4c]
call fcn.00411250
push 0x423aa0
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00411250
push 0x423a98
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x4c]
call fcn.00411250
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x48]
call fcn.00411350
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x406138
cmp dword [esi - 0xc], edi
jl 0x406138
push eax
push esi
call fcn.004128cc
add esp, 8
cmp eax, edi
je 0x406138
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x406240
mov edx, dword [0x42bbe0]
mov eax, dword [edx + 0xc]
mov ecx, 0x42bbe0
call eax
mov edx, dword [0x42bbe0]
add eax, 0x10
mov dword [esp + 0xf0], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x42bbe0
call eax
lea ecx, [esp + 0x60]
add eax, 0x10
push ecx
lea ecx, [esp + 0xf4]
mov dword [esp + 0xf8], eax
call fcn.00403590
mov edx, dword [esp + 0x78]
push edx
call fcn.004134b1
fstp qword [esp + 0xd4]
mov eax, dword [esp + 0x74]
push eax
call fcn.004134b1
fstp qword [esp + 0xe8]
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.004134b1
fstp qword [esp + 0xe4]
mov edx, dword [esp + 0x78]
push edx
call fcn.004134b1
fstp qword [esp + 0xf8]
add esp, 0x10
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0xf8]
call fcn.00403590
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00413422
add esp, 4
lea edx, [esp + 0xd0]
push edx
lea ecx, [esp + 0x54]
mov dword [esp + 0xfc], eax
call fcn.00405b70
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 0x40621d
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 0x406240
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 0x406254
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.00410f40
test eax, eax
jne 0x406090
mov eax, dword [esp + 0x80]
cmp eax, edi
je 0x406288
mov dword [esp + 0x80], edi
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x42bbe0]
mov edx, dword [eax + 0xc]
mov ecx, 0x42bbe0
call edx
push 0x41
add eax, 0x10
push 0x423a10
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
call fcn.00402e70
mov eax, dword [0x42bbe0]
mov edx, dword [eax + 0xc]
mov ecx, 0x42bbe0
call edx
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
add eax, 0x10
cmp ecx, edi
mov dword [esp + 0x3c], eax
jne 0x4062d4
xor eax, eax
jmp 0x4062e9
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 0x40679e
xor ebx, ebx
jmp 0x406308
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x406323
sub esi, ecx
mov eax, 0x2aaaaaab
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40632c
call fcn.004127ef
mov ecx, dword [esp + 0x54]
add edi, 1
push edi
lea eax, [esp + 0x40]
push 0x423a04
push eax
lea esi, [ecx + ebx]
call fcn.00403650
add esp, 0xc
push 0x4239fc
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0xb0]
push 0x4239d8
push edx
call fcn.004034e0
add esp, 0xc
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.00403450
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.00402fb0
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 0x4063a8
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 0x4063cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4239fc
lea ecx, [esi + 0x20]
push ecx
lea edx, [esp + 0xc0]
push 0x4239c8
push edx
call fcn.004034e0
add esp, 0xc
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.00403450
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.00402fb0
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 0x40642d
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 0x406450
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 0x4239c0
push ecx
call fcn.00403650
add esp, 0x10
push 0x4239fc
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0xd0]
push 0x4239b4
push eax
call fcn.004034e0
add esp, 0xc
push eax
lea ecx, [esp + 0xc8]
push ecx
call fcn.00403450
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.00402fb0
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 0x4064cd
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 0x4064f0
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 0x4239c0
push ecx
call fcn.00403650
add esp, 0x10
push 0x4239fc
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0xc4]
push 0x4239a8
push eax
call fcn.004034e0
add esp, 0xc
push eax
lea ecx, [esp + 0xac]
push ecx
call fcn.00403450
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.00402fb0
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 0x40656e
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 0x406591
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 0x4239c0
push ecx
call fcn.00403650
add esp, 0x10
push 0x4239fc
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0xd4]
push 0x42399c
push eax
call fcn.004034e0
add esp, 0xc
push eax
lea ecx, [esp + 0xb4]
push ecx
call fcn.00403450
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.00402fb0
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 0x40660f
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 0x406632
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 0x4239c0
push ecx
call fcn.00403650
add esp, 0x10
push 0x423994
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0xcc]
push 0x423988
push eax
call fcn.004034e0
add esp, 0xc
push eax
lea ecx, [esp + 0xbc]
push ecx
call fcn.00403450
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.00402fb0
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 0x4066b0
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 0x4066d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x42396c
push 0x423964
add esi, 0x24
push esi
lea ecx, [esp + 0x88]
push 0x423950
push ecx
call fcn.004034e0
add esp, 0xc
push eax
lea edx, [esp + 0x9c]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.00403450
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.00402fb0
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 0x40674b
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 0x40676e
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 0x40678e
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 0x406300
push 0xf
push 0x423930
lea ecx, [esp + 0x40]
call fcn.00402fb0
push 9
push 0x42391c
lea ecx, [esp + 0x40]
call fcn.00402fb0
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 0x406a34
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x7c], esi
mov esi, dword [ebx - 0xc]
lea esi, [esi + esi + 2]
push esi
call fcn.00411f0c
push esi
mov edi, eax
push 0
push edi
call fcn.00412ba0
mov edx, dword [ebx - 0xc]
add esp, 0x10
push 0
push 0x423918
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.00412358
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 0x40686f
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 0x40688b
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 0x4068ae
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 0x4068ce
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 0x4068ee
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 0x40690e
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 0x40692e
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 0x40694e
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 0x40696e
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 0x40698e
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 0x4069a0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x80]
cmp eax, esi
je 0x4069b3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x54]
cmp eax, esi
je 0x4069dd
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x54]
push edx
push ecx
push eax
call fcn.00403710
mov edx, dword [esp + 0x64]
push edx
call fcn.00411fd4
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 0x406a06
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 0x406a26
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 0x406a54
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 0x406a74
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 0x406a97
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 0x406ab7
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 0x406ad7
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 0x406af7
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 0x406b17
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 0x406b37
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 0x406b57
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 0x406b77
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 0x406b87
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x80]
cmp eax, esi
je 0x406b9a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x54]
cmp eax, esi
je 0x406bc4
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x54]
push edx
push ecx
push eax
call fcn.00403710
mov edx, dword [esp + 0x64]
push edx
call fcn.00411fd4
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 0x406bed
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 0x406c0d
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