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

Disassembly:
sub esp, 0x80
mov eax, dword [0x473534]
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.00416cb0
cmp eax, ebp
jne 0x418610
mov eax, dword [esp + 0x54]
cmp eax, ebp
ja 0x4180e3
mov esi, dword [esp + 0x50]
cmp esi, 0x80000000
jae 0x4180e3
cmp eax, ebp
ja 0x4180e3
cmp esi, 0x4000000
jb 0x4180ed
mov eax, 4
jmp 0x418610
cmp esi, 0x20
ja 0x4180e3
cmp esi, ebp
mov dword [edi + 0x10], esi
jne 0x418276
mov dword [edi], ebp
cmp esi, ebp
jbe 0x41811a
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 0x418107
cmp esi, ebp
mov dword [esp + 0x24], ebp
jbe 0x4180e3
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 0x41848f
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 0x41817d
test esi, esi
je 0x41848f
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 0x41815d
cmp ebp, 8
ja 0x4180e3
mov eax, dword [esp + 0x18]
xor edx, edx
cmp ebp, edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
jbe 0x4181c4
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.004687d0
or dword [esi + 8], eax
or dword [esi + 0xc], edx
add dword [esp + 0x38], 8
sub edi, 1
sub ebp, 1
jne 0x4181a0
mov cl, byte [esp + 0x17]
test cl, 0x10
je 0x4182a0
lea esi, [esp + 0x60]
call fcn.00416cb0
xor ebp, ebp
cmp eax, ebp
jne 0x418610
mov ecx, dword [esp + 0x64]
cmp ecx, ebp
ja 0x4180e3
mov eax, dword [esp + 0x60]
jb 0x4181fd
cmp eax, 0x80000000
jae 0x4180e3
cmp ecx, ebp
ja 0x4180e3
jb 0x418212
cmp eax, 0x4000000
jae 0x4180e3
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x68]
mov dword [edi], eax
call fcn.00416cb0
cmp eax, ebp
jne 0x418610
mov ecx, dword [esp + 0x6c]
cmp ecx, ebp
ja 0x4180e3
mov eax, dword [esp + 0x68]
jb 0x418246
cmp eax, 0x80000000
jae 0x4180e3
cmp ecx, ebp
ja 0x4180e3
jb 0x41825b
cmp eax, 0x4000000
jae 0x4180e3
cmp dword [edi], 0x20
mov dword [edi + 4], eax
ja 0x4180e3
cmp eax, 0x20
ja 0x4180e3
mov cl, byte [esp + 0x17]
jmp 0x4182b5
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 0x4180ff
mov eax, 2
jmp 0x418610
mov eax, dword [esp + 0x18]
mov dword [eax], 1
mov dword [eax + 4], 1
xor ebp, ebp
mov edi, eax
test cl, 0x20
je 0x418324
lea esi, [esp + 0x58]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
call fcn.00416cb0
cmp eax, ebp
jne 0x418610
mov dword [edi + 0x14], ebp
mov edi, dword [esp + 0x58]
cmp edi, ebp
jne 0x4182e7
mov eax, dword [esp + 0x18]
mov dword [eax + 0x10], ebp
jmp 0x418302
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 0x418296
mov dword [ecx + 0x14], edi
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x10]
push eax
mov eax, ebx
call fcn.00416db0
add esp, 4
cmp eax, ebp
jne 0x418610
mov cl, byte [esp + 0x17]
mov edi, dword [esp + 0x18]
test cl, cl
jns 0x41845d
lea esp, [esp]
mov esi, dword [ebx + 4]
test esi, esi
je 0x41848f
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 0x41848f
jb 0x418371
cmp eax, esi
ja 0x41848f
sub esi, eax
add edi, eax
test cl, 0x10
mov dword [ebx + 4], esi
mov dword [ebx], edi
je 0x41840d
lea esi, [esp + 0x40]
call fcn.00416cb0
test eax, eax
jne 0x418610
mov ecx, dword [esp + 0x44]
test ecx, ecx
ja 0x4180e3
mov eax, dword [esp + 0x40]
jb 0x4183b1
cmp eax, 0x80000000
jae 0x4180e3
test ecx, ecx
ja 0x4180e3
jb 0x4183c6
cmp eax, 0x4000000
jae 0x4180e3
lea esi, [esp + 0x30]
call fcn.00416cb0
test eax, eax
jne 0x418610
mov ecx, dword [esp + 0x34]
test ecx, ecx
ja 0x4180e3
mov eax, dword [esp + 0x30]
jb 0x4183f4
cmp eax, 0x80000000
jae 0x4180e3
test ecx, ecx
ja 0x4180e3
jb 0x418409
cmp eax, 0x4000000
jae 0x4180e3
mov cl, byte [esp + 0x17]
test cl, 0x20
je 0x41844f
xor edi, edi
lea esi, [esp + 0x48]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.00416cb0
cmp eax, edi
jne 0x418610
mov edx, dword [esp + 0x4c]
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp edx, ecx
ja 0x41848f
mov ecx, dword [esp + 0x48]
jb 0x418444
cmp ecx, eax
ja 0x41848f
sub eax, ecx
add dword [ebx], ecx
mov cl, byte [esp + 0x17]
mov dword [ebx + 4], eax
test cl, cl
js 0x418330
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 0x418499
mov edi, dword [esp + 0x20]
xor ebp, ebp
jmp 0x418126
mov eax, 0x10
jmp 0x418610
cmp eax, ebp
je 0x4180e3
mov edi, dword [esp + 0x20]
lea esi, [eax - 1]
cmp esi, ebp
mov dword [esp + 0x1c], esi
mov dword [edi + 0x14], esi
jne 0x4184b8
mov dword [edi + 4], ebp
jmp 0x4184d7
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 0x418296
xor edi, edi
cmp esi, ebp
jbe 0x418584
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
lea esi, [esp + 0x30]
lea ebp, [ecx + edi*8]
call fcn.00416cb0
test eax, eax
jne 0x418610
mov ecx, dword [esp + 0x34]
test ecx, ecx
ja 0x4180e3
mov eax, dword [esp + 0x30]
jb 0x418519
cmp eax, 0x80000000
jae 0x4180e3
test ecx, ecx
ja 0x4180e3
jb 0x41852e
cmp eax, 0x4000000
jae 0x4180e3
lea esi, [esp + 0x40]
mov dword [ebp], eax
call fcn.00416cb0
test eax, eax
jne 0x418610
mov ecx, dword [esp + 0x44]
test ecx, ecx
ja 0x4180e3
mov eax, dword [esp + 0x40]
jb 0x41855f
cmp eax, 0x80000000
jae 0x4180e3
test ecx, ecx
ja 0x4180e3
jb 0x418574
cmp eax, 0x4000000
jae 0x4180e3
add edi, 1
cmp edi, dword [esp + 0x1c]
mov dword [ebp + 4], eax
jb 0x4184e1
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x2c], edx
jb 0x4180e3
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov ebp, edi
sub ebp, edx
mov dword [esi + 0x18], ebp
jne 0x418629
mov dword [esi + 8], 0
xor edi, edi
test ebp, ebp
jbe 0x41860e
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.00416cb0
test eax, eax
jne 0x418610
mov ecx, dword [esp + 0x34]
test ecx, ecx
ja 0x4180e3
mov eax, dword [esp + 0x30]
jb 0x4185ec
cmp eax, 0x80000000
jae 0x4180e3
test ecx, ecx
ja 0x4180e3
jb 0x418601
cmp eax, 0x4000000
jae 0x4180e3
mov edx, dword [esp + 0x24]
add edi, 1
cmp edi, ebp
mov dword [edx], eax
jb 0x4185b4
xor eax, eax
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040473f
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 0x418296
cmp ebp, 1
jne 0x4185ae
xor ebx, ebx
test edi, edi
jbe 0x41867e
mov ebp, dword [esi + 0x14]
xor ecx, ecx
test ebp, ebp
jbe 0x41867e
mov edx, dword [esi + 4]
cmp dword [edx], ebx
je 0x418673
add ecx, 1
add edx, 8
cmp ecx, ebp
jb 0x418663
jmp 0x41867e
test ecx, ecx
jl 0x41867e
add ebx, 1
cmp ebx, edi
jb 0x41865a
cmp ebx, edi
je 0x4180e3
mov dword [eax], ebx
jmp 0x41860e