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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41b1dc
sub esp, 0x80
mov ebx, dword [0x6c2500]
mov dword [esp + 0x2c], ebx
mov ebx, dword [0x6c2504]
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x84]
xor ebx, ebx
mov ebx, dword [0x6c2500]
mov ebp, eax
sub ebp, ebx
mov ebx, dword [0x6c2500]
sub eax, ebx
shr eax, 2
xor ebx, ebx
mov ecx, dword [0x6c24f8]
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 [0x6c2500]
sub ebp, ebx
mov ebx, ebp
shr ebx, 0xd
mov ebp, dword [0x6be8ec]
cmp ebx, ebp
jae 0x41b1d5
mov ebp, dword [0x6be8e8]
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 0x41afee
mov ebx, 0x5f1deb
mov dword [esp], ebx
mov dword [esp + 4], 0x11
call fcn.004298b0
xor edi, edi
mov ebp, dword [esp + 0x20]
cmp edi, ebp
jae 0x41b075
cmp edi, 0
je 0x41b037
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
xor ebx, ebx
mov dword [esp + 0x5c], ecx
cmp ecx, 3
jae 0x41b1bd
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 0x41b0c0
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 0x41b1b3
xor eax, eax
cmp al, 0
jne 0x41b0c0
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 0x41b1a9
xor eax, eax
cmp al, 0
jne 0x41b0fd
add edi, 4
jmp 0x41aff0
mov ebx, dword [esp + 0x84]
add ebx, edi
mov eax, dword [ebx]
cmp eax, 0
je 0x41b0f5
mov ebx, dword [esp + 0x2c]
cmp ebx, eax
ja 0x41b0f5
mov ebp, dword [esp + 0x28]
cmp eax, ebp
jae 0x41b0f5
mov ecx, eax
sub ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0x20]
cmp ecx, ebx
jb 0x41b0f5
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.0040f190
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 0x41b0f5
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.0041b2d0
mov edi, dword [esp + 0x24]
jmp 0x41b0f5
mov eax, 1
jmp 0x41b0f0
mov eax, 1
jmp 0x41b070
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 0x41b027
call fcn.00427bf0
ud2
call fcn.004501c0
jmp fcn.0041af20