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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x4b0787
sub esp, 0x84
mov eax, dword [esp + 0x98]
mov ecx, dword [eax]
test ecx, ecx
je 0x4b074c
mov ecx, dword [eax + 4]
cmp ecx, 2
jge 0x4b072a
mov ecx, dword [0x78d608]
mov edx, dword [0x78d60c]
test ecx, ecx
jne 0x4b06f4
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x8c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x98]
mov ecx, dword [eax]
mov dword [esp], ecx
call fcn.004a61c0
mov eax, dword [esp + 4]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x88]
mov edx, dword [ecx + 0x18]
mov ebx, dword [esp + 0x8c]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 0x48]
lea ecx, [eax + 7]
sar ecx, 0x1f
shr ecx, 0x1d
lea eax, [ecx + eax + 7]
sar eax, 3
mov ecx, dword [esp + 4]
shl ecx, 1
mov edx, eax
sub eax, ecx
add eax, 0xfffffffe
mov ecx, dword [esp + 0xa0]
cmp ecx, eax
jg 0x4b06b2
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0xa8]
mov dword [esp + 4], edx
mov edx, dword [esp + 0xac]
mov dword [esp + 8], edx
mov edx, dword [esp + 0xb0]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x8c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov edx, dword [esp + 0x8c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x88]
mov ebx, dword [edx + 0x14]
mov ebp, dword [esp + 0x8c]
mov dword [esp], ebp
call ebx
lea eax, [0x5cdaa0]
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00434f20
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x5c], edx
mov ebx, dword [esp + 0x88]
mov ebp, dword [ebx + 0x18]
mov esi, dword [esp + 0x8c]
mov dword [esp], esi
call ebp
mov eax, dword [esp + 4]
lea ecx, [eax + 1]
cmp ecx, 1
jb 0x4b0780
mov edx, dword [esp + 0x38]
cmp ecx, edx
ja 0x4b0780
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0x8c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x38]
lea ecx, [eax - 1]
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 1
mov ebx, dword [esp + 0x5c]
add ecx, ebx
mov ebp, dword [esp + 4]
inc ebp
mov esi, dword [esp + 0x34]
cmp ebp, esi
ja 0x4b0779
mov dword [esp + 0x44], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0x8c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x40]
sub eax, ecx
mov ebx, dword [esp + 0x38]
sub ebx, ecx
mov esi, ebx
neg ebx
sar ebx, 0x1f
and ecx, ebx
mov ebx, dword [esp + 0x5c]
add ecx, ebx
mov edi, dword [esp + 4]
cmp edi, esi
ja 0x4b0772
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
mov ebp, dword [esp + 0x30]
cmp edi, ebp
jle 0x4b06ab
mov dword [esp + 0x60], ecx
mov dword [esp], ecx
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.00448cd0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0xa0]
mov edx, eax
sub eax, ecx
lea ebx, [eax - 1]
cmp ebx, edx
jae 0x4b076b
mov ebx, dword [esp + 0x60]
mov byte [eax + ebx - 1], 1
cmp eax, edx
ja 0x4b0764
sub edx, eax
mov esi, dword [esp + 0x40]
sub esi, eax
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and eax, esi
add eax, ebx
cmp edx, ecx
jle 0x4b06a4
mov dword [esp], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00448cd0
mov eax, dword [esp + 0x90]
mov dword [esp], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x10], edx
call fcn.0044dd50
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4b066e
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x50]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x18], edi
mov edx, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
call fcn.004aff40
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
call fcn.004aff40
mov byte [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea eax, [esp + 0x74]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xc], ecx
call fcn.004a6060
mov byte [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
lea eax, [esp + 0x64]
mov dword [esp], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 4], eax
lea eax, [esp + 0x74]
mov dword [esp + 8], eax
call fcn.004b0110
mov eax, dword [esp + 0xc]
mov dword [esp], eax
call fcn.004a6100
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x48]
cmp ecx, ebx
jl 0x4b05eb
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
add esp, 0x84
ret
mov dword [esp + 0x54], eax
mov dword [esp + 0x2c], ecx
lea eax, [0x5cdaa0]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
call fcn.00434f20
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x2c]
sub ebx, ebp
cmp ebx, ecx
ja 0x4b075d
mov dword [esp + 0x4c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
sub ecx, ebx
sub edx, ebx
neg edx
sar edx, 0x1f
and ebx, edx
lea edx, [eax + ebx]
cmp ecx, ebp
jle 0x4b066a
mov dword [esp], edx
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.00448cd0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x4c]
jmp 0x4b05b9
mov ebp, ecx
jmp 0x4b0645
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], eax
add esp, 0x84
ret
mov ecx, edx
jmp 0x4b042c
mov ebp, edi
jmp 0x4b03cc
mov eax, dword [0x78d5f4]
mov ecx, dword [0x78d5f0]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], eax
add esp, 0x84
ret
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], edx
add esp, 0x84
ret
cmp ecx, 0x7fffffff
jle 0x4b0743
mov edx, dword [0x78d604]
mov ecx, dword [0x78d600]
jmp 0x4b01b9
xor edx, edx
xor ecx, ecx
jmp 0x4b01b9
mov ecx, dword [0x78d610]
mov edx, dword [0x78d614]
jmp 0x4b01b9
call fcn.004243c0
ud2
call fcn.004243c0
ud2
call fcn.00424360
ud2
call fcn.004243c0
ud2
call fcn.004243c0
ud2
call fcn.004243c0
ud2
call fcn.00446b60
jmp fcn.004b0170