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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41851c
sub esp, 0x80
mov ebx, dword [0x4c3860]
mov dword [esp + 0x2c], ebx
mov ebx, dword [0x4c3864]
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x84]
xor ebx, ebx
mov ebx, dword [0x4c3860]
mov ebp, eax
sub ebp, ebx
mov ebx, dword [0x4c3860]
sub eax, ebx
shr eax, 2
xor ebx, ebx
mov ecx, dword [0x4c3858]
mov ebp, eax
shr ebp, 2
sub ecx, ebp
dec ecx
and eax, 3
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], eax
mov ebp, dword [esp + 0x84]
mov ebx, dword [0x4c3860]
sub ebp, ebx
mov ebx, ebp
shr ebx, 0xd
mov ebp, dword [0x4c1234]
cmp ebx, ebp
jae 0x418515
mov ebp, dword [0x4c1230]
shl ebx, 2
add ebp, ebx
mov ebx, dword [ebp]
mov ebp, dword [ebx + 0x40]
mov dword [esp + 0x20], ebp
mov ebx, dword [esp + 0x20]
cmp ebx, 0
jne 0x41832e
mov ebx, 0x485b8d
mov dword [esp], ebx
mov dword [esp + 4], 0x11
call fcn.004251e0
xor edi, edi
mov ebp, dword [esp + 0x20]
cmp edi, ebp
jae 0x4183b5
cmp edi, 0
je 0x418377
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
xor ebx, ebx
mov dword [esp + 0x5c], ecx
cmp ecx, 3
jae 0x4184fd
xor ebx, ebx
mov dword [esp + 0x58], edx
mov eax, ecx
inc eax
mov dword [esp + 0x78], edx
mov ecx, edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
cmp edi, 4
je 0x418400
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x70], eax
movzx esi, byte [eax]
mov ebx, esi
mov dword [esp + 0x74], ecx
and ecx, 0x1f
shr ebx, cl
and ebx, 0x10
cmp ebx, 0
jne 0x4184f3
xor eax, eax
cmp al, 0
jne 0x418400
mov ebx, dword [esp + 0x88]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov ebx, dword [esp + 0x20]
xor ecx, ecx
add eax, ebx
adc edx, ecx
mov ebx, dword [esp + 0x88]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov ebx, dword [esp + 0x88]
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
xor ecx, ecx
add eax, edi
adc edx, ecx
mov ebx, dword [esp + 0x88]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
add esp, 0x80
ret
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x60], eax
movzx esi, byte [eax]
mov ebx, esi
mov dword [esp + 0x64], ecx
and ecx, 0x1f
shr ebx, cl
and ebx, 1
cmp ebx, 0
jne 0x4184e9
xor eax, eax
cmp al, 0
jne 0x41843d
add edi, 4
jmp 0x418330
mov ebx, dword [esp + 0x84]
add ebx, edi
mov eax, dword [ebx]
cmp eax, 0
je 0x418435
mov ebx, dword [esp + 0x2c]
cmp ebx, eax
ja 0x418435
mov ebp, dword [esp + 0x28]
cmp eax, ebp
jae 0x418435
mov ecx, eax
sub ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0x20]
cmp ecx, ebx
jb 0x418435
mov dword [esp], eax
mov ebx, dword [esp + 0x84]
mov dword [esp + 4], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 8], edi
call fcn.0040ce80
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x48], esi
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x4c], ebp
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp eax, 0
je 0x418435
mov dword [esp], eax
mov ebx, dword [esp + 0x84]
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
call fcn.00418610
mov edi, dword [esp + 0x24]
jmp 0x418435
mov eax, 1
jmp 0x418430
mov eax, 1
jmp 0x4183b0
mov dword [esp + 0x58], edx
mov ecx, edx
dec ecx
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
jmp 0x418367
call fcn.00423570
ud2
call fcn.004489b0
jmp fcn.00418260