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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4182dc
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 0x4182d5
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 0x4180ee
mov ebx, 0x485818
mov dword [esp], ebx
mov dword [esp + 4], 0x11
call fcn.00424fa0
xor edi, edi
mov ebp, dword [esp + 0x20]
cmp edi, ebp
jae 0x418175
cmp edi, 0
je 0x418137
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
xor ebx, ebx
mov dword [esp + 0x5c], ecx
cmp ecx, 3
jae 0x4182bd
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 0x4181c0
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 0x4182b3
xor eax, eax
cmp al, 0
jne 0x4181c0
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 0x4182a9
xor eax, eax
cmp al, 0
jne 0x4181fd
add edi, 4
jmp 0x4180f0
mov ebx, dword [esp + 0x84]
add ebx, edi
mov eax, dword [ebx]
cmp eax, 0
je 0x4181f5
mov ebx, dword [esp + 0x2c]
cmp ebx, eax
ja 0x4181f5
mov ebp, dword [esp + 0x28]
cmp eax, ebp
jae 0x4181f5
mov ecx, eax
sub ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0x20]
cmp ecx, ebx
jb 0x4181f5
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.0040cc40
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 0x4181f5
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.004183d0
mov edi, dword [esp + 0x24]
jmp 0x4181f5
mov eax, 1
jmp 0x4181f0
mov eax, 1
jmp 0x418170
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 0x418127
call fcn.00423330
ud2
call fcn.00448770
jmp fcn.00418020