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

Disassembly:
sub esp, 0x80
mov eax, dword [0x486534]
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.00416cc0
cmp eax, ebp
jne 0x418620
mov eax, dword [esp + 0x54]
cmp eax, ebp
ja 0x4180f3
mov esi, dword [esp + 0x50]
cmp esi, 0x80000000
jae 0x4180f3
cmp eax, ebp
ja 0x4180f3
cmp esi, 0x4000000
jb 0x4180fd
mov eax, 4
jmp 0x418620
cmp esi, 0x20
ja 0x4180f3
cmp esi, ebp
mov dword [edi + 0x10], esi
jne 0x418286
mov dword [edi], ebp
cmp esi, ebp
jbe 0x41812a
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 0x418117
cmp esi, ebp
mov dword [esp + 0x24], ebp
jbe 0x4180f3
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 0x41849f
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 0x41818d
test esi, esi
je 0x41849f
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 0x41816d
cmp ebp, 8
ja 0x4180f3
mov eax, dword [esp + 0x18]
xor edx, edx
cmp ebp, edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
jbe 0x4181d4
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.00479b50
or dword [esi + 8], eax
or dword [esi + 0xc], edx
add dword [esp + 0x38], 8
sub edi, 1
sub ebp, 1
jne 0x4181b0
mov cl, byte [esp + 0x17]
test cl, 0x10
je 0x4182b0
lea esi, [esp + 0x60]
call fcn.00416cc0
xor ebp, ebp
cmp eax, ebp
jne 0x418620
mov ecx, dword [esp + 0x64]
cmp ecx, ebp
ja 0x4180f3
mov eax, dword [esp + 0x60]
jb 0x41820d
cmp eax, 0x80000000
jae 0x4180f3
cmp ecx, ebp
ja 0x4180f3
jb 0x418222
cmp eax, 0x4000000
jae 0x4180f3
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x68]
mov dword [edi], eax
call fcn.00416cc0
cmp eax, ebp
jne 0x418620
mov ecx, dword [esp + 0x6c]
cmp ecx, ebp
ja 0x4180f3
mov eax, dword [esp + 0x68]
jb 0x418256
cmp eax, 0x80000000
jae 0x4180f3
cmp ecx, ebp
ja 0x4180f3
jb 0x41826b
cmp eax, 0x4000000
jae 0x4180f3
cmp dword [edi], 0x20
mov dword [edi + 4], eax
ja 0x4180f3
cmp eax, 0x20
ja 0x4180f3
mov cl, byte [esp + 0x17]
jmp 0x4182c5
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 0x41810f
mov eax, 2
jmp 0x418620
mov eax, dword [esp + 0x18]
mov dword [eax], 1
mov dword [eax + 4], 1
xor ebp, ebp
mov edi, eax
test cl, 0x20
je 0x418334
lea esi, [esp + 0x58]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
call fcn.00416cc0
cmp eax, ebp
jne 0x418620
mov dword [edi + 0x14], ebp
mov edi, dword [esp + 0x58]
cmp edi, ebp
jne 0x4182f7
mov eax, dword [esp + 0x18]
mov dword [eax + 0x10], ebp
jmp 0x418312
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 0x4182a6
mov dword [ecx + 0x14], edi
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x10]
push eax
mov eax, ebx
call fcn.00416dc0
add esp, 4
cmp eax, ebp
jne 0x418620
mov cl, byte [esp + 0x17]
mov edi, dword [esp + 0x18]
test cl, cl
jns 0x41846d
lea esp, [esp]
mov esi, dword [ebx + 4]
test esi, esi
je 0x41849f
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 0x41849f
jb 0x418381
cmp eax, esi
ja 0x41849f
sub esi, eax
add edi, eax
test cl, 0x10
mov dword [ebx + 4], esi
mov dword [ebx], edi
je 0x41841d
lea esi, [esp + 0x40]
call fcn.00416cc0
test eax, eax
jne 0x418620
mov ecx, dword [esp + 0x44]
test ecx, ecx
ja 0x4180f3
mov eax, dword [esp + 0x40]
jb 0x4183c1
cmp eax, 0x80000000
jae 0x4180f3
test ecx, ecx
ja 0x4180f3
jb 0x4183d6
cmp eax, 0x4000000
jae 0x4180f3
lea esi, [esp + 0x30]
call fcn.00416cc0
test eax, eax
jne 0x418620
mov ecx, dword [esp + 0x34]
test ecx, ecx
ja 0x4180f3
mov eax, dword [esp + 0x30]
jb 0x418404
cmp eax, 0x80000000
jae 0x4180f3
test ecx, ecx
ja 0x4180f3
jb 0x418419
cmp eax, 0x4000000
jae 0x4180f3
mov cl, byte [esp + 0x17]
test cl, 0x20
je 0x41845f
xor edi, edi
lea esi, [esp + 0x48]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.00416cc0
cmp eax, edi
jne 0x418620
mov edx, dword [esp + 0x4c]
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp edx, ecx
ja 0x41849f
mov ecx, dword [esp + 0x48]
jb 0x418454
cmp ecx, eax
ja 0x41849f
sub eax, ecx
add dword [ebx], ecx
mov cl, byte [esp + 0x17]
mov dword [ebx + 4], eax
test cl, cl
js 0x418340
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 0x4184a9
mov edi, dword [esp + 0x20]
xor ebp, ebp
jmp 0x418136
mov eax, 0x10
jmp 0x418620
cmp eax, ebp
je 0x4180f3
mov edi, dword [esp + 0x20]
lea esi, [eax - 1]
cmp esi, ebp
mov dword [esp + 0x1c], esi
mov dword [edi + 0x14], esi
jne 0x4184c8
mov dword [edi + 4], ebp
jmp 0x4184e7
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 0x4182a6
xor edi, edi
cmp esi, ebp
jbe 0x418594
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
lea esi, [esp + 0x30]
lea ebp, [ecx + edi*8]
call fcn.00416cc0
test eax, eax
jne 0x418620
mov ecx, dword [esp + 0x34]
test ecx, ecx
ja 0x4180f3
mov eax, dword [esp + 0x30]
jb 0x418529
cmp eax, 0x80000000
jae 0x4180f3
test ecx, ecx
ja 0x4180f3
jb 0x41853e
cmp eax, 0x4000000
jae 0x4180f3
lea esi, [esp + 0x40]
mov dword [ebp], eax
call fcn.00416cc0
test eax, eax
jne 0x418620
mov ecx, dword [esp + 0x44]
test ecx, ecx
ja 0x4180f3
mov eax, dword [esp + 0x40]
jb 0x41856f
cmp eax, 0x80000000
jae 0x4180f3
test ecx, ecx
ja 0x4180f3
jb 0x418584
cmp eax, 0x4000000
jae 0x4180f3
add edi, 1
cmp edi, dword [esp + 0x1c]
mov dword [ebp + 4], eax
jb 0x4184f1
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x2c], edx
jb 0x4180f3
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov ebp, edi
sub ebp, edx
mov dword [esi + 0x18], ebp
jne 0x418639
mov dword [esi + 8], 0
xor edi, edi
test ebp, ebp
jbe 0x41861e
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.00416cc0
test eax, eax
jne 0x418620
mov ecx, dword [esp + 0x34]
test ecx, ecx
ja 0x4180f3
mov eax, dword [esp + 0x30]
jb 0x4185fc
cmp eax, 0x80000000
jae 0x4180f3
test ecx, ecx
ja 0x4180f3
jb 0x418611
cmp eax, 0x4000000
jae 0x4180f3
mov edx, dword [esp + 0x24]
add edi, 1
cmp edi, ebp
mov dword [edx], eax
jb 0x4185c4
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 0x4182a6
cmp ebp, 1
jne 0x4185be
xor ebx, ebx
test edi, edi
jbe 0x41868e
mov ebp, dword [esi + 0x14]
xor ecx, ecx
test ebp, ebp
jbe 0x41868e
mov edx, dword [esi + 4]
cmp dword [edx], ebx
je 0x418683
add ecx, 1
add edx, 8
cmp ecx, ebp
jb 0x418673
jmp 0x41868e
test ecx, ecx
jl 0x41868e
add ebx, 1
cmp ebx, edi
jb 0x41866a
cmp ebx, edi
je 0x4180f3
mov dword [eax], ebx
jmp 0x41861e