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

Disassembly:
sub esp, 0x80
mov eax, dword [0x482534]
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.00416c90
cmp eax, ebp
jne 0x4185f0
mov eax, dword [esp + 0x54]
cmp eax, ebp
ja 0x4180c3
mov esi, dword [esp + 0x50]
cmp esi, 0x80000000
jae 0x4180c3
cmp eax, ebp
ja 0x4180c3
cmp esi, 0x4000000
jb 0x4180cd
mov eax, 4
jmp 0x4185f0
cmp esi, 0x20
ja 0x4180c3
cmp esi, ebp
mov dword [edi + 0x10], esi
jne 0x418256
mov dword [edi], ebp
cmp esi, ebp
jbe 0x4180fa
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 0x4180e7
cmp esi, ebp
mov dword [esp + 0x24], ebp
jbe 0x4180c3
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 0x41846f
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 0x41815d
test esi, esi
je 0x41846f
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 0x41813d
cmp ebp, 8
ja 0x4180c3
mov eax, dword [esp + 0x18]
xor edx, edx
cmp ebp, edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
jbe 0x4181a4
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.00472ac0
or dword [esi + 8], eax
or dword [esi + 0xc], edx
add dword [esp + 0x38], 8
sub edi, 1
sub ebp, 1
jne 0x418180
mov cl, byte [esp + 0x17]
test cl, 0x10
je 0x418280
lea esi, [esp + 0x60]
call fcn.00416c90
xor ebp, ebp
cmp eax, ebp
jne 0x4185f0
mov ecx, dword [esp + 0x64]
cmp ecx, ebp
ja 0x4180c3
mov eax, dword [esp + 0x60]
jb 0x4181dd
cmp eax, 0x80000000
jae 0x4180c3
cmp ecx, ebp
ja 0x4180c3
jb 0x4181f2
cmp eax, 0x4000000
jae 0x4180c3
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x68]
mov dword [edi], eax
call fcn.00416c90
cmp eax, ebp
jne 0x4185f0
mov ecx, dword [esp + 0x6c]
cmp ecx, ebp
ja 0x4180c3
mov eax, dword [esp + 0x68]
jb 0x418226
cmp eax, 0x80000000
jae 0x4180c3
cmp ecx, ebp
ja 0x4180c3
jb 0x41823b
cmp eax, 0x4000000
jae 0x4180c3
cmp dword [edi], 0x20
mov dword [edi + 4], eax
ja 0x4180c3
cmp eax, 0x20
ja 0x4180c3
mov cl, byte [esp + 0x17]
jmp 0x418295
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 0x4180df
mov eax, 2
jmp 0x4185f0
mov eax, dword [esp + 0x18]
mov dword [eax], 1
mov dword [eax + 4], 1
xor ebp, ebp
mov edi, eax
test cl, 0x20
je 0x418304
lea esi, [esp + 0x58]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
call fcn.00416c90
cmp eax, ebp
jne 0x4185f0
mov dword [edi + 0x14], ebp
mov edi, dword [esp + 0x58]
cmp edi, ebp
jne 0x4182c7
mov eax, dword [esp + 0x18]
mov dword [eax + 0x10], ebp
jmp 0x4182e2
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 0x418276
mov dword [ecx + 0x14], edi
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x10]
push eax
mov eax, ebx
call fcn.00416d90
add esp, 4
cmp eax, ebp
jne 0x4185f0
mov cl, byte [esp + 0x17]
mov edi, dword [esp + 0x18]
test cl, cl
jns 0x41843d
lea esp, [esp]
mov esi, dword [ebx + 4]
test esi, esi
je 0x41846f
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 0x41846f
jb 0x418351
cmp eax, esi
ja 0x41846f
sub esi, eax
add edi, eax
test cl, 0x10
mov dword [ebx + 4], esi
mov dword [ebx], edi
je 0x4183ed
lea esi, [esp + 0x40]
call fcn.00416c90
test eax, eax
jne 0x4185f0
mov ecx, dword [esp + 0x44]
test ecx, ecx
ja 0x4180c3
mov eax, dword [esp + 0x40]
jb 0x418391
cmp eax, 0x80000000
jae 0x4180c3
test ecx, ecx
ja 0x4180c3
jb 0x4183a6
cmp eax, 0x4000000
jae 0x4180c3
lea esi, [esp + 0x30]
call fcn.00416c90
test eax, eax
jne 0x4185f0
mov ecx, dword [esp + 0x34]
test ecx, ecx
ja 0x4180c3
mov eax, dword [esp + 0x30]
jb 0x4183d4
cmp eax, 0x80000000
jae 0x4180c3
test ecx, ecx
ja 0x4180c3
jb 0x4183e9
cmp eax, 0x4000000
jae 0x4180c3
mov cl, byte [esp + 0x17]
test cl, 0x20
je 0x41842f
xor edi, edi
lea esi, [esp + 0x48]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.00416c90
cmp eax, edi
jne 0x4185f0
mov edx, dword [esp + 0x4c]
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp edx, ecx
ja 0x41846f
mov ecx, dword [esp + 0x48]
jb 0x418424
cmp ecx, eax
ja 0x41846f
sub eax, ecx
add dword [ebx], ecx
mov cl, byte [esp + 0x17]
mov dword [ebx + 4], eax
test cl, cl
js 0x418310
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 0x418479
mov edi, dword [esp + 0x20]
xor ebp, ebp
jmp 0x418106
mov eax, 0x10
jmp 0x4185f0
cmp eax, ebp
je 0x4180c3
mov edi, dword [esp + 0x20]
lea esi, [eax - 1]
cmp esi, ebp
mov dword [esp + 0x1c], esi
mov dword [edi + 0x14], esi
jne 0x418498
mov dword [edi + 4], ebp
jmp 0x4184b7
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 0x418276
xor edi, edi
cmp esi, ebp
jbe 0x418564
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
lea esi, [esp + 0x30]
lea ebp, [ecx + edi*8]
call fcn.00416c90
test eax, eax
jne 0x4185f0
mov ecx, dword [esp + 0x34]
test ecx, ecx
ja 0x4180c3
mov eax, dword [esp + 0x30]
jb 0x4184f9
cmp eax, 0x80000000
jae 0x4180c3
test ecx, ecx
ja 0x4180c3
jb 0x41850e
cmp eax, 0x4000000
jae 0x4180c3
lea esi, [esp + 0x40]
mov dword [ebp], eax
call fcn.00416c90
test eax, eax
jne 0x4185f0
mov ecx, dword [esp + 0x44]
test ecx, ecx
ja 0x4180c3
mov eax, dword [esp + 0x40]
jb 0x41853f
cmp eax, 0x80000000
jae 0x4180c3
test ecx, ecx
ja 0x4180c3
jb 0x418554
cmp eax, 0x4000000
jae 0x4180c3
add edi, 1
cmp edi, dword [esp + 0x1c]
mov dword [ebp + 4], eax
jb 0x4184c1
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x2c], edx
jb 0x4180c3
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov ebp, edi
sub ebp, edx
mov dword [esi + 0x18], ebp
jne 0x418609
mov dword [esi + 8], 0
xor edi, edi
test ebp, ebp
jbe 0x4185ee
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.00416c90
test eax, eax
jne 0x4185f0
mov ecx, dword [esp + 0x34]
test ecx, ecx
ja 0x4180c3
mov eax, dword [esp + 0x30]
jb 0x4185cc
cmp eax, 0x80000000
jae 0x4180c3
test ecx, ecx
ja 0x4180c3
jb 0x4185e1
cmp eax, 0x4000000
jae 0x4180c3
mov edx, dword [esp + 0x24]
add edi, 1
cmp edi, ebp
mov dword [edx], eax
jb 0x418594
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 0x418276
cmp ebp, 1
jne 0x41858e
xor ebx, ebx
test edi, edi
jbe 0x41865e
mov ebp, dword [esi + 0x14]
xor ecx, ecx
test ebp, ebp
jbe 0x41865e
mov edx, dword [esi + 4]
cmp dword [edx], ebx
je 0x418653
add ecx, 1
add edx, 8
cmp ecx, ebp
jb 0x418643
jmp 0x41865e
test ecx, ecx
jl 0x41865e
add ebx, 1
cmp ebx, edi
jb 0x41863a
cmp ebx, edi
je 0x4180c3
mov dword [eax], ebx
jmp 0x4185ee