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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x422df6
sub esp, 0x70
mov ebx, dword [esp + 0x74]
test byte [ebx], al
mov ebp, dword [esp + 0x7c]
shl ebp, 0xd
mov eax, dword [esp + 0x78]
lea ebp, [ebp + eax - 1]
mov dword [esp + 0x30], ebp
nop
nop
mov esi, eax
shr eax, 0x16
mov dword [esp + 0x58], eax
mov edi, ebp
shr ebp, 0x16
cmp eax, ebp
je 0x422cfa
mov dword [esp + 0x54], ebp
mov ecx, edi
movzx edi, byte [esp + 0x80]
xchg edi, eax
test al, al
xchg edi, eax
jne 0x422bdd
mov edi, dword [ebx + 0x24]
mov dword [esp + 0x68], edi
mov edx, esi
mov esi, dword [ebx + 0x28]
mov dword [esp + 0x24], esi
jmp 0x4229ef
mov edi, dword [esp + 0x68]
lea ebp, [edi + edx*8 + 4]
mov dword [ebp], eax
lea eax, [edi + edx*8]
mov dword [eax], ecx
lea eax, [edx + 1]
mov ebp, dword [esp + 0x54]
mov ecx, dword [esp + 0x74]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x24]
cmp ebp, eax
jb 0x422a2d
mov edx, dword [ebx + 0x30]
test byte [edx], al
cmp eax, 0x400
jae 0x422db8
mov dword [esp + 0x50], eax
shl eax, 7
add eax, edx
mov dword [esp], eax
call fcn.00425c20
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x24]
cmp edx, ebx
jb 0x4229c4
jmp 0x422daf
mov eax, 2
mov ebp, 1
jmp 0x422b5a
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x4c]
mov ecx, ebp
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x74]
mov byte [esp + 0x1b], al
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
cmp ebx, edx
jle 0x422b4a
mov dword [esp + 0x40], edx
cmp esi, 0x20
sbb ebp, ebp
mov dword [esp + 0x4c], ebp
lea ebx, [eax + eax*2]
mov dword [esp + 0x48], ebx
mov ebp, dword [edi + ebx*4 + 0xc]
mov dword [esp + 0x6c], ebp
mov ebx, dword [edi + ebx*4 + 0x14]
mov ecx, esi
shl edx, cl
mov edi, dword [esp + 0x4c]
and edx, edi
mov ebp, dword [esp + 0x40]
inc ebp
mov dword [esp + 0x4c], ebp
shl ebp, cl
and ebp, edi
cmp ebp, ebx
ja 0x422d90
cmp edx, ebp
ja 0x422d87
sub ebx, edx
mov eax, ebx
neg ebx
mov ecx, edx
shl edx, 3
sar ebx, 0x1f
and ebx, edx
mov edx, dword [esp + 0x6c]
add edx, ebx
mov dword [esp], edx
sub ebp, ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
call fcn.00424100
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + eax*4 + 4]
mov eax, dword [ecx + eax*4]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x40]
cmp edx, esi
jbe 0x422d7e
mov dword [esp + 0x2c], ebp
lea edi, [eax + esi*8]
cmp dword [edi + 4], ebx
mov edx, ebx
setne bl
cmp dword [edi], ebp
xchg edi, ebx
setne bl
xchg edi, ebx
lea ebp, [eax + esi*8]
lea esi, [eax + esi*8 + 4]
or ebx, edi
test bl, bl
je 0x422b40
mov dword [esi], edx
mov ebx, dword [esp + 0x2c]
mov dword [ebp], ebx
mov eax, 1
jmp 0x422a3c
movzx eax, byte [esp + 0x1b]
jmp 0x422a3c
dec eax
mov edx, dword [esp + 0x78]
movzx esi, byte [esp + 0x1b]
mov ecx, ebp
mov ebx, edi
mov ebp, esi
test eax, eax
jl 0x422bd9
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x422bd9
lea ebp, [eax + 1]
cmp ebp, 4
jae 0x422da3
lea ebp, [0x51a5f0]
mov esi, dword [ebp + eax*4 + 4]
lea edi, [0x51a600]
mov edi, dword [edi + eax*4 + 4]
nop
cmp eax, 4
jae 0x422d99
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edi
lea ebp, [0x51a610]
mov ebp, dword [ebp + eax*4]
cmp ebp, 0x20
sbb edi, edi
mov ecx, ebp
shr edx, cl
and edx, edi
mov ebx, dword [esp + 0x30]
mov ebp, ebx
shr ebx, cl
and ebx, edi
inc ebx
mov dword [esp + 0x44], ebx
mov edi, dword [esp + 0x74]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x5c], eax
xor eax, eax
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x5c]
jmp 0x422a66
add esp, 0x70
ret
mov edx, dword [ebx + 0x30]
test byte [edx], al
mov edi, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x64], edi
shl eax, 7
add eax, edx
mov dword [esp], eax
call fcn.00425c20
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x28]
cmp edx, ebx
jae 0x422de0
mov ebp, dword [esp + 0x64]
lea esi, [ebp + edx*8 + 4]
mov dword [esi], eax
lea esi, [ebp + edx*8]
mov dword [esi], ecx
mov esi, dword [esp + 0x74]
mov edi, dword [esi + 0x2c]
mov eax, ebp
mov ebp, dword [esi + 0x24]
mov ecx, dword [esp + 0x54]
cmp ecx, edi
ja 0x422dd9
lea ebx, [edx + 1]
cmp ecx, ebx
jb 0x422dd2
sub edi, edx
dec edi
xchg edi, ebx
neg ebx
xchg edi, ebx
shl ebx, 3
sar edi, 0x1f
and edi, ebx
lea ebx, [edi + ebp]
mov ebp, ecx
sub ecx, edx
dec ecx
movzx edx, byte [esp + 0x81]
test dl, dl
jne 0x422cd9
xor edx, edx
jmp 0x422c82
lea edi, [ebx + edx*8]
mov dword [edi], 0x8000200
mov dword [edi + 4], 0x2000
inc edx
cmp ecx, edx
jle 0x422c8d
ja 0x422c71
jmp 0x422dcb
mov ecx, dword [esi + 0x30]
test byte [ecx], al
shl ebp, 7
add ecx, ebp
mov dword [esp], ecx
call fcn.00425c20
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x28]
cmp edx, ebx
jae 0x422dc2
mov ebp, dword [esp + 0x64]
lea esi, [ebp + edx*8 + 4]
mov dword [esi], eax
lea ebp, [ebp + edx*8]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
jmp 0x422a2d
test ecx, ecx
je 0x422c8d
mov dword [esp], ebx
shl ecx, 3
mov dword [esp + 4], ecx
call fcn.00458770
mov eax, dword [esp + 0x64]
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x74]
jmp 0x422c8d
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebx + 0x24]
cmp eax, ecx
jae 0x422df0
mov ecx, dword [ebx + 0x30]
test byte [ecx], al
lea edx, [edx + eax*8]
mov ebp, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edx
shl eax, 7
add eax, ecx
mov dword [esp], eax
call fcn.00425c20
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
sete cl
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x20]
cmp edx, ebx
sete bl
and ebx, ecx
test bl, bl
jne 0x422d7a
mov ebx, dword [esp + 0x74]
mov ebp, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x28]
mov esi, dword [esp + 0x58]
cmp esi, ecx
jae 0x422de9
lea edi, [ebp + esi*8 + 4]
mov dword [edi], edx
lea ebp, [ebp + esi*8]
mov dword [ebp], eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x78]
jmp 0x422a2d
add esp, 0x70
ret
mov eax, esi
mov ecx, edx
call fcn.004580d0
mov eax, edx
mov ecx, ebp
call fcn.00458130
mov ecx, ebp
mov edx, ebx
call fcn.00458110
mov ecx, 4
call fcn.004580d0
mov eax, ebp
mov ecx, 4
call fcn.004580d0
mov eax, edx
mov ecx, ebx
call fcn.004580e0
mov ecx, 0x400
call fcn.004580e0
mov eax, edx
mov ecx, ebx
call fcn.004580e0
mov eax, edx
call fcn.004580d0
mov eax, ebx
call fcn.00458140
mov edx, edi
call fcn.00458120
mov eax, edx
mov ecx, ebx
call fcn.004580e0
mov eax, esi
call fcn.004580e0
call fcn.004580e0
nop
call fcn.00456af0
jmp fcn.00422950