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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x42265f
sub esp, 0x60
mov edx, dword [esp + 0x64]
mov ebx, dword [edx + 0x8c]
mov dword [esp + 0x14], ebx
mov ebp, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov ecx, edi
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov ecx, edi
jmp 0x422533
inc ecx
mov ebp, dword [esp + 0x50]
mov ebp, dword [esp + 0x6c]
mov esi, dword [esp + 0x50]
mov edi, edx
mov dword [esp + 0x2c], ecx
mov edx, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x2c]
cmp ebp, edi
jge 0x42250b
jae 0x42263a
mov dword [esp + 0x34], edx
lea eax, [esi + ebp]
mov dword [esp + 0x5c], eax
mov dword [esp], eax
call fcn.00401f00
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
cmp ecx, edx
jae 0x422631
mov ebx, dword [esp + 0x4c]
movzx ebp, byte [ecx + ebx]
xchg ebp, ebx
not ebx
xchg ebp, ebx
and ebp, eax
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x4223b9
mov eax, dword [esp + 0x34]
jmp 0x422346
mov esi, dword [esp + 0x34]
xor eax, eax
jmp 0x4223c8
inc eax
mov ecx, edi
mov ebx, dword [esp + 0x4c]
cmp eax, 8
jae 0x422504
mov edi, ecx
mov ecx, eax
mov ebx, 1
shl ebx, cl
xchg ebp, eax
test bl, al
xchg ebp, eax
je 0x4223c1
mov ebx, dword [esp + 0x3c]
lea edx, [ebx + edi*8]
add edx, eax
cmp edx, 0x200
jae 0x422625
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], esi
xchg ebp, eax
mov byte [esp + 0x13], al
xchg ebp, eax
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + edx*4 + 0x40000]
mov dword [esp + 0x48], ecx
test byte [ecx], al
lea edx, [ecx + 0x30]
mov dword [esp + 0x58], edx
mov dword [esp], edx
call fcn.00401f10
mov eax, dword [esp + 0x14]
lea ecx, [eax - 2]
cmp dword [esp + 4], ecx
je 0x4224df
xor ecx, ecx
test cl, cl
jne 0x42245c
movzx ecx, byte [esp + 0x13]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
mov ebp, ecx
mov esi, edx
mov ecx, eax
mov edx, dword [esp + 0x28]
jmp 0x4223c1
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x18], ecx
nop
nop
mov edx, dword [esp + 0x64]
mov dword [esp], edx
call fcn.00409580
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov byte [esp + 4], 0
call fcn.00420000
movzx eax, byte [esp + 8]
test al, al
je 0x4224d9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
add eax, ecx
mov dword [esp + 0x1c], eax
nop
nop
mov ecx, dword [esp + 0x64]
mov dword [esp], ecx
call fcn.00409370
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.00401f00
movzx ecx, byte [esp + 4]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x2c]
movzx ebx, byte [edx + eax]
not ebx
and ecx, ebx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
jmp 0x422445
mov eax, dword [esp + 0x30]
jmp 0x422499
mov edx, dword [esp + 0x58]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [eax - 1]
mov dword [esp + 8], ecx
call fcn.00401f30
movzx ecx, byte [esp + 0xc]
mov eax, dword [esp + 0x14]
jmp 0x422438
mov eax, esi
jmp 0x422346
mov ebx, dword [esp + 0x74]
lea ebx, [ebx + edi*8]
shl edi, 3
sub eax, edi
mov ebp, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x64]
mov edi, eax
mov eax, ebx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x14]
test edi, edi
jbe 0x4225e0
mov dword [esp + 0x74], eax
shr eax, 9
cmp eax, ebp
jae 0x422657
mov ebx, dword [edx + 0x344]
test byte [ebx], al
mov eax, dword [esi + eax*4]
cmp eax, 0x400
jae 0x42264d
mov ebx, dword [ebx + eax*4]
test byte [ebx], al
mov eax, dword [esp + 0x74]
and eax, 0x1ff
mov dword [esp + 0x3c], eax
shr eax, 3
cmp eax, 0x40
ja 0x422643
mov dword [esp + 0x54], ebx
lea esi, [eax - 0x40]
xchg esi, ebx
neg ebx
xchg esi, ebx
mov dword [esp + 0x20], esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and eax, esi
lea esi, [ebx + eax + 0x40800]
lea ebx, [ebx + eax + 0x40840]
mov eax, edi
shr edi, 3
mov edx, dword [esp + 0x20]
cmp edx, edi
jbe 0x4225dc
mov dword [esp + 0x38], eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28], edi
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
jmp 0x422363
mov edi, edx
jmp 0x4225b5
movzx eax, byte [0x82a2e8]
test al, al
jne 0x4225f7
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x7c], eax
add esp, 0x60
ret
nop
nop
mov dword [esp], edx
call fcn.00409580
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x1c]
sub eax, ecx
shl eax, 0xd
mov dword [esp], eax
call fcn.0044c300
nop
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.00409370
jmp 0x4225eb
mov eax, edx
mov ecx, 0x200
call fcn.0045ad70
mov eax, ecx
mov ecx, edx
call fcn.0045ad60
mov eax, ebp
mov ecx, edi
call fcn.0045ad60
mov ecx, 0x40
call fcn.0045add0
mov ecx, 0x400
call fcn.0045ad70
mov ecx, ebp
call fcn.0045ad70
nop
call fcn.00459790
jmp fcn.00422300