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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x18]
cmp eax, dword [ecx + 8]
jbe 0x4a610e
sub esp, 0x98
mov eax, 0
lea edi, [esp + 0x58]
call fcn.0044c960
mov eax, dword [esp + 0x9c]
movzx ecx, byte [eax + 0xf]
and ecx, 0x1f
cmp ecx, 0x14
jne 0x4a60dc
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4a60cd
mov ecx, dword [esp + 0xa0]
movzx edx, byte [ecx + 0xf]
and edx, 0x1f
cmp edx, 0x14
jne 0x4a5d8e
xor edx, edx
xor ebx, ebx
jmp 0x4a5ac8
mov ebp, dword [esp + 0x1c]
lea edx, [ebp + 1]
mov ebp, dword [esp + 0xa0]
mov esi, dword [esp + 0x9c]
mov ecx, ebp
mov ebx, eax
mov eax, esi
mov ebp, dword [ecx + 0x28]
cmp edx, ebp
jge 0x4a5d7f
mov ebp, dword [eax + 0x28]
mov esi, dword [eax + 0x24]
cmp ebx, ebp
jae 0x4a6107
mov dword [esp + 0x1c], edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x24], ebx
lea ecx, [esi + ebx*8]
mov ecx, dword [ecx]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.004a2780
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x24]
mov ebp, dword [esp + 0x1c]
cmp ebp, edx
jae 0x4a6100
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], eax
lea eax, [ebx + ebp*8]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.004a2780
mov eax, dword [esp + 8]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
test eax, eax
je 0x4a5b64
lea ecx, [eax + 3]
mov dword [esp + 0x70], ecx
movzx ecx, byte [eax + 1]
shl ecx, 8
movzx edx, byte [eax + 2]
or edx, ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x4a5b94
lea edx, [ecx + 3]
mov dword [esp + 0x58], edx
movzx edx, byte [ecx + 1]
shl edx, 8
movzx ebx, byte [ecx + 2]
or ebx, edx
mov dword [esp + 0x5c], ebx
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
cmp ebx, ebp
je 0x4a5bb1
mov eax, dword [esp + 0x24]
jmp 0x4a5aad
mov dword [esp + 0x48], eax
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
call fcn.004021f0
movzx eax, byte [esp + 0xc]
test al, al
je 0x4a5ba8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
lea ecx, [ecx + eax*8 + 4]
mov ecx, dword [ecx]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp], ecx
call fcn.004a27c0
mov eax, dword [esp + 8]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x54]
lea edx, [edx + ecx*8 + 4]
mov edx, dword [edx]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x9c]
mov dword [esp], edx
call fcn.004a27c0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jne 0x4a5ba8
mov eax, dword [esp + 0x4c]
movzx ecx, byte [eax]
test cl, 1
je 0x4a5c56
mov eax, dword [esp + 0x24]
inc eax
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx + 0x28]
cmp eax, edx
jl 0x4a5aad
mov byte [esp + 0xa4], 1
add esp, 0x98
ret
mov dword [esp], eax
call fcn.004a2300
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x4a5d78
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
test ecx, ecx
je 0x4a5cb0
lea edx, [ecx + 3]
mov dword [esp + 0x80], edx
movzx edx, byte [ecx + 1]
shl edx, 8
movzx ecx, byte [ecx + 2]
or ecx, edx
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.004a2300
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4a5d6d
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
test ecx, ecx
je 0x4a5d24
lea edx, [ecx + 3]
mov dword [esp + 0x90], edx
movzx edx, byte [ecx + 1]
shl edx, 8
movzx ecx, byte [ecx + 2]
or ecx, edx
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
mov ebx, dword [esp + 0x18]
cmp ecx, ebx
je 0x4a5d43
mov eax, dword [esp + 0x24]
jmp 0x4a5aad
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.004021f0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4a5c30
mov eax, dword [esp + 0xa0]
jmp 0x4a5d3a
mov edx, eax
mov eax, dword [esp + 0xa0]
jmp 0x4a5d32
mov edx, eax
jmp 0x4a5cbe
mov byte [esp + 0xa4], 0
add esp, 0x98
ret
mov dword [esp], ecx
call fcn.004a2840
mov eax, dword [esp + 4]
test eax, eax
je 0x4a60be
movzx ecx, word [eax + 4]
test cx, cx
jne 0x4a60a2
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x3c], edx
mov ebx, dword [esp + 0x9c]
xor ebp, ebp
xor esi, esi
jmp 0x4a5dee
mov edi, dword [esp + 0x20]
lea ebp, [edi + 1]
mov edi, dword [esp + 0x9c]
mov ecx, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
mov ebx, edi
mov esi, eax
mov eax, dword [esp + 0x40]
movzx edi, word [eax + 4]
cmp ebp, edi
jge 0x4a6093
mov edi, dword [ebx + 0x24]
mov eax, dword [ebx + 0x28]
cmp esi, eax
jae 0x4a60f2
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x54], edi
lea eax, [edi + esi*8]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004a2780
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
cmp ecx, edx
jae 0x4a60eb
mov dword [esp + 0x48], eax
shl ecx, 4
mov edx, dword [esp + 0x3c]
mov ebx, dword [edx + ecx + 4]
mov dword [esp + 0x2c], ebx
mov ecx, dword [edx + ecx]
mov ebp, dword [esp + 0xa0]
mov dword [esp], ebp
mov dword [esp + 4], ecx
call fcn.004a2780
mov eax, dword [esp + 8]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
test eax, eax
je 0x4a5e92
lea ecx, [eax + 3]
mov dword [esp + 0x68], ecx
movzx ecx, byte [eax + 1]
shl ecx, 8
movzx edx, byte [eax + 2]
or edx, ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x4a5ec2
lea edx, [ecx + 3]
mov dword [esp + 0x78], edx
movzx edx, byte [ecx + 1]
shl edx, 8
movzx ebx, byte [ecx + 2]
or ebx, edx
mov dword [esp + 0x7c], ebx
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x6c]
mov esi, dword [esp + 0x7c]
cmp esi, ebp
je 0x4a5edf
mov eax, dword [esp + 0x28]
jmp 0x4a5dcc
mov dword [esp + 0x38], eax
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
call fcn.004021f0
movzx eax, byte [esp + 0xc]
test al, al
je 0x4a5ed6
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
call fcn.004a27c0
mov eax, dword [esp + 8]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x54]
lea edx, [edx + ecx*8 + 4]
mov edx, dword [edx]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x9c]
mov dword [esp], edx
call fcn.004a27c0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jne 0x4a5ed6
mov eax, dword [esp + 0x48]
movzx ecx, byte [eax]
test cl, 1
je 0x4a5f7a
mov eax, dword [esp + 0x28]
inc eax
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx + 0x28]
cmp eax, edx
jl 0x4a5dcc
mov byte [esp + 0xa4], 1
add esp, 0x98
ret
mov dword [esp], eax
call fcn.004a2300
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4a608c
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
test ecx, ecx
je 0x4a5fd4
lea edx, [ecx + 3]
mov dword [esp + 0x88], edx
movzx edx, byte [ecx + 1]
shl edx, 8
movzx ecx, byte [ecx + 2]
or ecx, edx
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.004a2300
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
test eax, eax
je 0x4a6036
mov edx, dword [esp + 0x14]
cmp eax, edx
je 0x4a6013
mov eax, dword [esp + 0x28]
jmp 0x4a5dcc
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004021f0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4a5f54
jmp 0x4a600a
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp], ecx
call fcn.004a2780
mov eax, dword [esp + 8]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
test eax, eax
je 0x4a607f
lea ecx, [eax + 3]
mov dword [esp + 0x60], ecx
movzx ecx, byte [eax + 1]
shl ecx, 8
movzx eax, byte [eax + 2]
or eax, ecx
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
jmp 0x4a6002
mov edx, eax
jmp 0x4a5fe2
mov byte [esp + 0xa4], 0
add esp, 0x98
ret
mov edx, dword [eax + 8]
add edx, eax
test byte [edx], al
movzx ecx, cx
test ecx, ecx
jl 0x4a60f9
cmp ecx, 0x10000
jbe 0x4a5db3
jmp 0x4a60f9
mov byte [esp + 0xa4], 0
add esp, 0x98
ret
mov byte [esp + 0xa4], 1
add esp, 0x98
ret
mov byte [esp + 0xa4], 0
add esp, 0x98
ret
call fcn.00426430
ud2
call fcn.00426430
ud2
call fcn.00426530
ud2
call fcn.00426430
ud2
call fcn.00426430
ud2
call fcn.0044b110
jmp fcn.004a5a40