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

Disassembly:
mov ecx, dword [0x6c4e70]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a2689
sub esp, 0x70
mov edx, dword [esp + 0x74]
test edx, edx
je 0x4a2267
lea ebx, [0x6a0220]
cmp edx, ebx
jne 0x4a226d
lea eax, [0x6c4f28]
mov dword [esp], eax
lea eax, [0x595758]
mov dword [esp + 4], eax
call fcn.00478230
mov edx, dword [esp + 0x74]
jmp 0x4a226d
lea edx, [0x69e500]
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x4a2422
mov dword [esp + 0x58], ecx
mov ebx, dword [edx + 0x38]
test ebx, ebx
je 0x4a233b
mov ebp, dword [edx + 0x28]
mov dword [esp + 0x54], ebp
mov esi, dword [edx + 0x2c]
mov dword [esp + 0x50], esi
mov edi, dword [esp + 0x7c]
cmp edi, esi
sete al
setg cl
mov esi, dword [esp + 0x78]
cmp esi, ebp
xchg ebp, ebx
setae bl
xchg ebp, ebx
and ebp, eax
or ebp, ecx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4a2343
mov ebp, dword [edx + 0x30]
mov dword [esp + 0x4c], ebp
mov eax, dword [edx + 0x34]
mov dword [esp + 0x48], eax
cmp edi, eax
sete cl
setl al
cmp esi, ebp
xchg ebp, ebx
setb bl
xchg ebp, ebx
and ecx, ebp
or eax, ecx
test al, al
je 0x4a2343
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
movzx ebx, byte [ebx + 0xc]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x94], eax
mov byte [esp + 0x9c], bl
add esp, 0x70
ret
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x64], edx
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x4a2392
mov ebx, dword [edx + 0x14]
mov ebp, dword [ebx + 4]
cmp edi, ebp
xchg ebp, ebx
sete bl
xchg ebp, ebx
setl al
cmp dword [ebx], esi
seta dl
and edx, ebp
or edx, eax
test dl, dl
jne 0x4a238e
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x44], ecx
mov eax, ecx
xor edx, edx
mov ebp, 0x7fffffff
mov eax, 0xffffffff
mov dword [esp + 0x54], eax
mov eax, ecx
jmp 0x4a24a6
mov edx, dword [esp + 0x64]
mov dword [esp], edx
call fcn.004a26a0
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 4]
cmp ecx, edx
jbe 0x4a247d
mov ecx, dword [eax + 8]
shl edx, 4
mov ebx, dword [eax + 0x18]
mov ebp, dword [edx + ecx]
mov esi, dword [edx + ecx + 4]
mov edi, dword [edx + ecx + 8]
test ebx, ebx
je 0x4a23cf
mov eax, dword [eax + 0x14]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
jmp 0x4a23d9
mov ebx, 0x7fffffff
mov eax, 0xffffffff
movzx ecx, byte [edx + ecx + 0xc]
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x90], 0x80000000
mov dword [esp + 0x8c], 0
mov dword [esp + 0x98], ebx
mov dword [esp + 0x94], eax
mov byte [esp + 0x9c], cl
add esp, 0x70
ret
lea eax, [0x5864f5]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 3
mov dword [esp + 0x88], 0
mov dword [esp + 0x90], 0x80000000
mov dword [esp + 0x8c], 0
mov dword [esp + 0x98], 0x7fffffff
mov dword [esp + 0x94], 0xffffffff
mov byte [esp + 0x9c], 0
add esp, 0x70
ret
mov eax, edx
call fcn.00460f60
mov ebx, dword [esp + 0x6c]
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x44]
mov esi, dword [esp + 0x78]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x5c], ecx
mov ecx, ebp
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x50], ebp
sub ecx, edx
cmp ecx, 1
jle 0x4a2509
mov dword [esp + 0x40], ecx
shr ecx, 0x1f
mov ebp, dword [esp + 0x40]
add ebp, ecx
sar ebp, 1
add ebp, edx
cmp eax, ebp
jbe 0x4a267f
lea ecx, [ebp + ebp*2]
mov eax, dword [ebx + ecx*4]
mov ecx, dword [ebx + ecx*4 + 4]
cmp edi, ecx
xchg edi, ebx
setl bl
xchg edi, ebx
sete bl
cmp esi, eax
xchg esi, ebx
setb bl
xchg esi, ebx
and ebx, esi
or ebx, edi
test bl, bl
jne 0x4a2484
mov edx, ebp
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
jmp 0x4a2484
cmp edx, eax
jae 0x4a2676
lea edi, [edx + edx*2]
lea ecx, [ebx + edi*4 + 8]
movzx ecx, byte [ecx]
mov esi, dword [esp + 0x58]
cmp esi, ecx
jbe 0x4a266d
mov esi, dword [esp + 0x64]
mov ebp, dword [esi + 8]
shl ecx, 4
dec eax
mov esi, dword [ecx + ebp]
mov dword [esp + 0x68], esi
mov esi, dword [ecx + ebp + 4]
mov dword [esp + 0x58], esi
mov esi, dword [ecx + ebp + 8]
mov dword [esp + 0x44], esi
mov esi, dword [ebx + edi*4]
mov ebx, dword [ebx + edi*4 + 4]
movzx ecx, byte [ecx + ebp + 0xc]
cmp edx, eax
jne 0x4a261d
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 0x24]
test edx, edx
je 0x4a261d
mov dword [esp + 0x48], ebx
mov byte [esp + 0x3b], cl
mov dword [esp + 0x4c], esi
mov eax, dword [eax + 0x20]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
call fcn.004a2770
movzx eax, byte [esp + 0x35]
test al, al
jne 0x4a25b7
movzx ecx, byte [esp + 0x3b]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
jmp 0x4a261d
mov eax, dword [esp + 0x20]
movzx ecx, byte [esp + 0x34]
mov byte [esp + 0x3a], cl
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], ecx
movzx eax, byte [esp + 0x3a]
mov byte [esp + 0x9c], al
add esp, 0x70
ret
mov eax, dword [esp + 0x68]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x88], eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], esi
mov eax, dword [esp + 0x50]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x94], eax
mov byte [esp + 0x9c], cl
add esp, 0x70
ret
mov eax, ecx
mov ecx, esi
call fcn.00460f60
mov ecx, eax
mov eax, edx
call fcn.00460f60
mov ecx, eax
mov eax, ebp
call fcn.00460f60
nop
call fcn.0045faf0
jmp fcn.004a2220