Function at 0x418070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
mov eax, dword [0x474534]
xor eax, esp
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x84]
push ebx
push ebp
push esi
push edi
mov edi, edx
xor ebp, ebp
mov ebx, ecx
lea esi, [esp + 0x50]
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x3c], ebp
call fcn.00416ca0
cmp eax, ebp
jne 0x418600
mov eax, dword [esp + 0x54]
cmp eax, ebp
ja 0x4180d3
mov esi, dword [esp + 0x50]
cmp esi, 0x80000000
jae 0x4180d3
cmp eax, ebp
ja 0x4180d3
cmp esi, 0x4000000
jb 0x4180dd
mov eax, 4
jmp 0x418600
cmp esi, 0x20
ja 0x4180d3
cmp esi, ebp
mov dword [edi + 0x10], esi
jne 0x418266
mov dword [edi], ebp
cmp esi, ebp
jbe 0x41810a
xor ecx, ecx
mov edx, esi
mov eax, dword [edi]
lea eax, [ecx + eax + 0x10]
add ecx, 0x18
sub edx, 1
mov dword [eax], ebp
mov dword [eax + 4], ebp
jne 0x4180f7
cmp esi, ebp
mov dword [esp + 0x24], ebp
jbe 0x4180d3
mov dword [esp + 0x1c], ebp
mov eax, dword [edi]
add eax, dword [esp + 0x1c]
mov esi, dword [ebx + 4]
cmp esi, ebp
mov dword [esp + 0x18], eax
je 0x41847f
mov eax, dword [ebx]
add esi, 0xffffffff
mov dword [ebx + 4], esi
mov cl, byte [eax]
movzx edx, cl
add eax, 1
and edx, 0xf
mov byte [esp + 0x17], cl
mov dword [ebx], eax
mov ebp, edx
mov edi, 0
jbe 0x41816d
test esi, esi
je 0x41847f
sub esi, 1
mov dword [ebx + 4], esi
mov dl, byte [eax]
mov byte [esp + edi + 0x7c], dl
add eax, 1
add edi, 1
cmp edi, ebp
mov dword [ebx], eax
jb 0x41814d
cmp ebp, 8
ja 0x4180d3
mov eax, dword [esp + 0x18]
xor edx, edx
cmp ebp, edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
jbe 0x4181b4
mov dword [esp + 0x38], edx
lea edi, [esp + ebp + 0x7b]
mov esi, eax
movzx eax, byte [edi]
mov ecx, dword [esp + 0x38]
cdq
call fcn.00459e70
or dword [esi + 8], eax
or dword [esi + 0xc], edx
add dword [esp + 0x38], 8
sub edi, 1
sub ebp, 1
jne 0x418190
mov cl, byte [esp + 0x17]
test cl, 0x10
je 0x418290
lea esi, [esp + 0x60]
call fcn.00416ca0
xor ebp, ebp
cmp eax, ebp
jne 0x418600
mov ecx, dword [esp + 0x64]
cmp ecx, ebp
ja 0x4180d3
mov eax, dword [esp + 0x60]
jb 0x4181ed
cmp eax, 0x80000000
jae 0x4180d3
cmp ecx, ebp
ja 0x4180d3
jb 0x418202
cmp eax, 0x4000000
jae 0x4180d3
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x68]
mov dword [edi], eax
call fcn.00416ca0
cmp eax, ebp
jne 0x418600
mov ecx, dword [esp + 0x6c]
cmp ecx, ebp
ja 0x4180d3
mov eax, dword [esp + 0x68]
jb 0x418236
cmp eax, 0x80000000
jae 0x4180d3
cmp ecx, ebp
ja 0x4180d3
jb 0x41824b
cmp eax, 0x4000000
jae 0x4180d3
cmp dword [edi], 0x20
mov dword [edi + 4], eax
ja 0x4180d3
cmp eax, 0x20
ja 0x4180d3
mov cl, byte [esp + 0x17]
jmp 0x4182a5
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
lea ecx, [esi + esi*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push eax
call edx
add esp, 8
cmp eax, ebp
mov dword [edi], eax
jne 0x4180ef
mov eax, 2
jmp 0x418600
mov eax, dword [esp + 0x18]
mov dword [eax], 1
mov dword [eax + 4], 1
xor ebp, ebp
mov edi, eax
test cl, 0x20
je 0x418314
lea esi, [esp + 0x58]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
call fcn.00416ca0
cmp eax, ebp
jne 0x418600
mov dword [edi + 0x14], ebp
mov edi, dword [esp + 0x58]
cmp edi, ebp
jne 0x4182d7
mov eax, dword [esp + 0x18]
mov dword [eax + 0x10], ebp
jmp 0x4182f2
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push edi
push eax
call ecx
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, ebp
mov dword [ecx + 0x10], eax
je 0x418286
mov dword [ecx + 0x14], edi
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x10]
push eax
mov eax, ebx
call fcn.00416da0
add esp, 4
cmp eax, ebp
jne 0x418600
mov cl, byte [esp + 0x17]
mov edi, dword [esp + 0x18]
test cl, cl
jns 0x41844d
lea esp, [esp]
mov esi, dword [ebx + 4]
test esi, esi
je 0x41847f
mov eax, dword [ebx]
add esi, 0xffffffff
mov dword [ebx + 4], esi
mov cl, byte [eax]
mov dl, cl
and dl, 0xf
lea edi, [eax + 1]
movzx eax, dl
cdq
mov dword [esp + 0x78], edx
xor edx, edx
cmp dword [esp + 0x78], edx
mov byte [esp + 0x17], cl
mov dword [ebx], edi
ja 0x41847f
jb 0x418361
cmp eax, esi
ja 0x41847f
sub esi, eax
add edi, eax
test cl, 0x10
mov dword [ebx + 4], esi
mov dword [ebx], edi
je 0x4183fd
lea esi, [esp + 0x40]
call fcn.00416ca0
test eax, eax
jne 0x418600
mov ecx, dword [esp + 0x44]
test ecx, ecx
ja 0x4180d3
mov eax, dword [esp + 0x40]
jb 0x4183a1
cmp eax, 0x80000000
jae 0x4180d3
test ecx, ecx
ja 0x4180d3
jb 0x4183b6
cmp eax, 0x4000000
jae 0x4180d3
lea esi, [esp + 0x30]
call fcn.00416ca0
test eax, eax
jne 0x418600
mov ecx, dword [esp + 0x34]
test ecx, ecx
ja 0x4180d3
mov eax, dword [esp + 0x30]
jb 0x4183e4
cmp eax, 0x80000000
jae 0x4180d3
test ecx, ecx
ja 0x4180d3
jb 0x4183f9
cmp eax, 0x4000000
jae 0x4180d3
mov cl, byte [esp + 0x17]
test cl, 0x20
je 0x41843f
xor edi, edi
lea esi, [esp + 0x48]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.00416ca0
cmp eax, edi
jne 0x418600
mov edx, dword [esp + 0x4c]
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp edx, ecx
ja 0x41847f
mov ecx, dword [esp + 0x48]
jb 0x418434
cmp ecx, eax
ja 0x41847f
sub eax, ecx
add dword [ebx], ecx
mov cl, byte [esp + 0x17]
mov dword [ebx + 4], eax
test cl, cl
js 0x418320
mov edi, dword [esp + 0x18]
xor ebp, ebp
mov eax, dword [edi]
add dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
add eax, dword [edi + 4]
add dword [esp + 0x1c], 0x18
add ecx, 1
cmp ecx, dword [esp + 0x50]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], ecx
jae 0x418489
mov edi, dword [esp + 0x20]
xor ebp, ebp
jmp 0x418116
mov eax, 0x10
jmp 0x418600
cmp eax, ebp
je 0x4180d3
mov edi, dword [esp + 0x20]
lea esi, [eax - 1]
cmp esi, ebp
mov dword [esp + 0x1c], esi
mov dword [edi + 0x14], esi
jne 0x4184a8
mov dword [edi + 4], ebp
jmp 0x4184c7
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
lea ecx, [esi*8]
push ecx
push eax
call edx
add esp, 8
cmp eax, ebp
mov dword [edi + 4], eax
je 0x418286
xor edi, edi
cmp esi, ebp
jbe 0x418574
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
lea esi, [esp + 0x30]
lea ebp, [ecx + edi*8]
call fcn.00416ca0
test eax, eax
jne 0x418600
mov ecx, dword [esp + 0x34]
test ecx, ecx
ja 0x4180d3
mov eax, dword [esp + 0x30]
jb 0x418509
cmp eax, 0x80000000
jae 0x4180d3
test ecx, ecx
ja 0x4180d3
jb 0x41851e
cmp eax, 0x4000000
jae 0x4180d3
lea esi, [esp + 0x40]
mov dword [ebp], eax
call fcn.00416ca0
test eax, eax
jne 0x418600
mov ecx, dword [esp + 0x44]
test ecx, ecx
ja 0x4180d3
mov eax, dword [esp + 0x40]
jb 0x41854f
cmp eax, 0x80000000
jae 0x4180d3
test ecx, ecx
ja 0x4180d3
jb 0x418564
cmp eax, 0x4000000
jae 0x4180d3
add edi, 1
cmp edi, dword [esp + 0x1c]
mov dword [ebp + 4], eax
jb 0x4184d1
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x2c], edx
jb 0x4180d3
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov ebp, edi
sub ebp, edx
mov dword [esi + 0x18], ebp
jne 0x418619
mov dword [esi + 8], 0
xor edi, edi
test ebp, ebp
jbe 0x4185fe
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 8]
lea ecx, [eax + edi*4]
lea esi, [esp + 0x30]
mov dword [esp + 0x24], ecx
call fcn.00416ca0
test eax, eax
jne 0x418600
mov ecx, dword [esp + 0x34]
test ecx, ecx
ja 0x4180d3
mov eax, dword [esp + 0x30]
jb 0x4185dc
cmp eax, 0x80000000
jae 0x4180d3
test ecx, ecx
ja 0x4180d3
jb 0x4185f1
cmp eax, 0x4000000
jae 0x4180d3
mov edx, dword [esp + 0x24]
add edi, 1
cmp edi, ebp
mov dword [edx], eax
jb 0x4185a4
xor eax, eax
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040470b
add esp, 0x80
ret
lea eax, [ebp*4]
push eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
push eax
call ecx
add esp, 8
test eax, eax
mov dword [esi + 8], eax
je 0x418286
cmp ebp, 1
jne 0x41859e
xor ebx, ebx
test edi, edi
jbe 0x41866e
mov ebp, dword [esi + 0x14]
xor ecx, ecx
test ebp, ebp
jbe 0x41866e
mov edx, dword [esi + 4]
cmp dword [edx], ebx
je 0x418663
add ecx, 1
add edx, 8
cmp ecx, ebp
jb 0x418653
jmp 0x41866e
test ecx, ecx
jl 0x41866e
add ebx, 1
cmp ebx, edi
jb 0x41864a
cmp ebx, edi
je 0x4180d3
mov dword [eax], ebx
jmp 0x4185fe