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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov dword [esp + 0x24], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
test eax, eax
jle 0x4a5e68
mov eax, dword [ebp + 0x10]
dec eax
mov dword [esp + 0x2c], eax
xor edi, edi
mov ebx, 8
jmp 0x4a56dd
mov edi, dword [esp + 0x74]
inc edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 4
add ebx, 0x10
cmp edi, eax
jge 0x4a5e68
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ecx
mov eax, dword [ecx + ebx - 8]
lea esi, [esp + 0x38]
mov dword [esp + 0x30], esi
push esi
push eax
call fcn.0062ba50
add esp, 8
mov ebx, eax
sub ebx, esi
mov dword [esp + 0x34], ebx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
cmp ebx, 0xfffffff0
jae 0x4a5e72
mov dword [esp + 0x74], edi
cmp ebx, 0xb
jae 0x4a5760
mov ecx, ebx
add cl, bl
mov byte [esp + 0x18], cl
lea edi, [esp + 0x19]
lea ecx, [esp + 0x38]
cmp eax, ecx
jne 0x4a5786
jmp 0x4a5791
mov esi, ebx
or esi, 0xf
lea eax, [esi + 1]
push eax
mov edi, edx
call fcn.0051c3d0
mov edx, edi
add esp, 4
mov edi, eax
mov dword [esp + 0x20], eax
add esi, 2
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
push ebx
push edx
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [edi + ebx], 0
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov eax, dword [eax + ebx - 4]
cmp eax, 4
mov edi, dword [ebp + 0xc]
ja case.default.0x4a57ad
jmp dword [eax*4 + 0x8794d0]
movzx eax, byte [esp + 0x18]
test al, 1
je 0x4a582f
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
jmp 0x4a5835
movzx eax, byte [esp + 0x18]
test al, 1
je 0x4a58d5
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
jmp 0x4a58db
movzx eax, byte [esp + 0x18]
test al, 1
je 0x4a5949
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
jmp 0x4a594f
movzx eax, byte [esp + 0x18]
test al, 1
je 0x4a5a35
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
jmp 0x4a5a3b
movzx eax, byte [esp + 0x18]
test al, 1
je 0x4a5a7c
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
jmp 0x4a5a82
shr eax, 1
lea edx, [esp + 0x19]
mov esi, dword [edi]
mov ecx, edi
push eax
push edx
call dword [esi + 0x14]
mov eax, dword [edi]
mov ecx, edi
push 2
push 0x87989c
call dword [eax + 0x14]
cmp byte [edi + 0x12], 0
je 0x4a5864
mov byte [edi + 0x12], 0
mov eax, dword [edi]
mov ecx, edi
push 0
push 0x879690
call dword [eax + 0x14]
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + ebx]
mov ecx, dword [ecx + ebx + 4]
lea esi, [esp + 0x38]
mov dword [esp + 0x30], esi
push esi
push ecx
push eax
call fcn.0062ba70
add esp, 0xc
mov ebx, eax
sub ebx, esi
mov dword [esp + 0x34], ebx
mov edx, dword [esp + 0x30]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
cmp ebx, 0xfffffff0
jae 0x4a5e7b
cmp ebx, 0xb
jae 0x4a5c27
mov ecx, ebx
add cl, bl
mov byte [esp + 8], cl
lea esi, [esp + 9]
lea ecx, [esp + 0x38]
cmp eax, ecx
jne 0x4a5c50
jmp 0x4a5c5b
shr eax, 1
lea edx, [esp + 0x19]
mov esi, dword [edi]
mov ecx, edi
push eax
push edx
call dword [esi + 0x14]
mov eax, dword [edi]
mov ecx, edi
push 2
push 0x87989c
call dword [eax + 0x14]
cmp byte [edi + 0x12], 0
je 0x4a590a
mov byte [edi + 0x12], 0
mov eax, dword [edi]
mov ecx, edi
push 0
push 0x879690
call dword [eax + 0x14]
mov eax, dword [edi]
mov ecx, edi
push 2
push 0x8798bb
call dword [eax + 0x14]
mov eax, dword [esp + 0x28]
mov eax, dword [eax + ebx]
mov dword [esp + 0x90], 8
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0
sub esp, 0x10
movups xmm0, xmmword [esp + 0x98]
jmp 0x4a59b5
shr eax, 1
lea edx, [esp + 0x19]
mov esi, dword [edi]
mov ecx, edi
push eax
push edx
call dword [esi + 0x14]
mov eax, dword [edi]
mov ecx, edi
push 2
push 0x87989c
call dword [eax + 0x14]
cmp byte [edi + 0x12], 0
je 0x4a597e
mov byte [edi + 0x12], 0
mov eax, dword [edi]
mov ecx, edi
push 0
push 0x879690
call dword [eax + 0x14]
mov eax, dword [edi]
mov ecx, edi
push 2
push 0x8798bb
call dword [eax + 0x14]
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + ebx]
mov ecx, dword [ecx + ebx + 4]
mov dword [esp + 0x80], 0x10
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
sub esp, 0x10
movups xmm0, xmmword [esp + 0x88]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x40]
call fcn.0062ce60
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
cmp ebx, 0xfffffff0
jae 0x4a5e7b
cmp ebx, 0xb
jae 0x4a5a05
mov eax, ebx
add al, bl
mov byte [esp + 8], al
lea esi, [esp + 9]
test ebx, ebx
jne 0x4a5a2e
jmp 0x4a5c5b
mov edi, ebx
or edi, 0xf
lea eax, [edi + 1]
push eax
mov esi, ecx
call fcn.0051c3d0
mov ecx, esi
add esp, 4
mov esi, eax
mov dword [esp + 0x10], eax
add edi, 2
mov dword [esp + 8], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0xc], ebx
push ebx
push ecx
jmp 0x4a5c52
shr eax, 1
lea edx, [esp + 0x19]
mov esi, dword [edi]
mov ecx, edi
push eax
push edx
call dword [esi + 0x14]
mov eax, dword [esp + 0x28]
mov esi, dword [eax + ebx]
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
movzx eax, byte [esi]
test al, 1
je 0x4a5ada
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
jmp 0x4a5adf
shr eax, 1
lea edx, [esp + 0x19]
mov esi, dword [edi]
mov ecx, edi
push eax
push edx
call dword [esi + 0x14]
mov eax, dword [esp + 0x24]
movzx ebx, byte [eax + 4]
mov eax, dword [edi]
mov ecx, edi
push 1
push 0x87989f
call dword [eax + 0x14]
movzx eax, byte [edi + 0x12]
test bl, bl
je 0x4a5cd9
test al, al
mov ebx, dword [esp + 0x14]
je 0x4a5ac7
mov byte [edi + 0x12], 0
mov eax, dword [edi]
mov ecx, edi
push 0
push 0x879690
call dword [eax + 0x14]
mov eax, dword [edi]
mov ecx, edi
push 2
push 0x8798be
call dword [eax + 0x14]
jmp 0x4a5d08
lea ecx, [esi + 1]
shr eax, 1
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x30], ecx
add ecx, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x38]
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov word [ecx + 0x10], 0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0x7fffffff
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
movzx eax, byte [esi]
test al, 1
je 0x4a5b64
mov eax, dword [esi + 4]
test edx, edx
jg 0x4a5b6a
jmp 0x4a5bcb
shr eax, 1
test edx, edx
jle 0x4a5bcb
test eax, eax
je 0x4a5bcb
lea ecx, [esp + 8]
lea eax, [esp + 0x30]
push eax
call fcn.00530c20
test al, al
je 0x4a5bcb
mov eax, dword [esp + 0x24]
movzx ebx, byte [eax + 4]
mov eax, dword [edi]
mov ecx, edi
push 1
push 0x87989f
call dword [eax + 0x14]
movzx eax, byte [edi + 0x12]
test bl, bl
je 0x4a5df3
test al, al
je 0x4a5bb8
mov byte [edi + 0x12], 0
mov eax, dword [edi]
mov ecx, edi
push 0
push 0x879690
call dword [eax + 0x14]
mov eax, dword [edi]
mov ecx, edi
push 2
push 0x8798be
call dword [eax + 0x14]
jmp 0x4a5e1e
mov eax, dword [edi]
mov ecx, edi
push 2
push 0x87989c
call dword [eax + 0x14]
cmp byte [edi + 0x12], 0
je 0x4a5bf1
mov byte [edi + 0x12], 0
mov eax, dword [edi]
mov ecx, edi
push 0
push 0x879690
call dword [eax + 0x14]
mov eax, dword [edi]
mov ecx, edi
push 1
push 0x8797f3
call dword [eax + 0x14]
push esi
lea eax, [esp + 0x6c]
push eax
call fcn.0062b130
add esp, 8
movzx eax, byte [esp + 0x68]
test al, 1
je 0x4a5d32
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
jmp 0x4a5d38
mov edi, ebx
or edi, 0xf
lea eax, [edi + 1]
push eax
mov esi, edx
call fcn.0051c3d0
mov edx, esi
add esp, 4
mov esi, eax
mov dword [esp + 0x10], eax
add edi, 2
mov dword [esp + 8], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0xc], ebx
push ebx
push edx
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
movzx eax, byte [esp + 8]
test al, 1
je 0x4a5c80
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
jmp 0x4a5c86
shr eax, 1
lea edx, [esp + 9]
mov ebx, dword [esp + 0x14]
mov esi, dword [edi]
mov ecx, edi
push eax
push edx
call dword [esi + 0x14]
test byte [esp + 8], 1
je 0x4a5ca6
push dword [esp + 0x10]
call fcn.0051c570
add esp, 4
mov eax, dword [esp + 0x24]
cmp byte [eax + 4], 0
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
mov ecx, edi
je 0x4a5cc0
push 1
push 0x87989f
jmp 0x4a5cc7
push 1
push 0x8798a1
call eax
test byte [esp + 0x18], 1
je 0x4a56c0
jmp 0x4a5d9b
test al, al
mov ebx, dword [esp + 0x14]
je 0x4a5cf3
mov byte [edi + 0x12], 0
mov eax, dword [edi]
mov ecx, edi
push 0
push 0x879690
call dword [eax + 0x14]
mov eax, dword [edi]
mov ecx, edi
push 2
push 0x8798c1
call dword [eax + 0x14]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov esi, dword [esp + 0x24]
mov ecx, esi
push dword [esp + 0x2c]
push edi
mov eax, dword [esp + 0x30]
push dword [eax + ebx]
call fcn.004a5680
cmp byte [esi + 4], 0
mov eax, dword [edi]
je 0x4a5d6e
mov ecx, edi
push 2
push 0x879801
jmp 0x4a5d7e
shr eax, 1
lea edx, [esp + 0x69]
mov esi, dword [edi]
mov ecx, edi
push eax
push edx
call dword [esi + 0x14]
test byte [esp + 0x68], 1
je 0x4a5d54
push dword [esp + 0x70]
call fcn.0051c570
add esp, 4
mov eax, dword [esp + 0x24]
cmp byte [eax + 4], 0
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
mov ecx, edi
je 0x4a5dac
push 2
push 0x8798c4
jmp 0x4a5db3
mov ecx, edi
call dword [eax + 0xc]
mov eax, dword [edi]
mov ecx, edi
push 2
push 0x879804
call dword [eax + 0x14]
nop word cs:[eax + eax]
test byte [esp + 0x18], 1
je 0x4a56c0
push dword [esp + 0x20]
call fcn.0051c570
add esp, 4
jmp 0x4a56c0
push 2
push 0x8798c7
call eax
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0xc]
je 0x4a5dcc
lea ecx, [esp + 8]
call fcn.005302c0
mov eax, dword [esp + 8]
test eax, eax
je 0x4a5ddd
mov dword [esp + 0xc], eax
push eax
call fcn.0051c570
add esp, 4
lea ecx, [esp + 0x30]
call fcn.00534f90
test byte [esp + 0x18], 1
je 0x4a56c0
jmp 0x4a5d9b
test al, al
je 0x4a5e09
mov byte [edi + 0x12], 0
mov eax, dword [edi]
mov ecx, edi
push 0
push 0x879690
call dword [eax + 0x14]
mov eax, dword [edi]
mov ecx, edi
push 2
push 0x8798c1
call dword [eax + 0x14]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov ecx, esi
push dword [esp + 0x2c]
push edi
lea eax, [esp + 0x10]
push eax
call fcn.004a5680
cmp byte [esi + 4], 0
mov eax, dword [edi]
je 0x4a5e50
mov ecx, edi
push 2
push 0x879801
call dword [eax + 0x14]
jmp 0x4a5db5
mov ecx, edi
call dword [eax + 0xc]
mov eax, dword [edi]
mov ecx, edi
push 2
push 0x879804
call dword [eax + 0x14]
jmp 0x4a5db5
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea ecx, [esp + 0x18]
call fcn.0051f6b0
lea ecx, [esp + 8]
call fcn.0051f6b0
nop word cs:[eax + eax]