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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4c4707
sub esp, 0x60
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x78]
cmp eax, ecx
je 0x4c4657
xor edx, edx
test dl, dl
je 0x4c41c9
mov eax, dword [esp + 0x64]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x84], eax
add esp, 0x60
ret
mov edx, dword [esp + 0x7c]
test edx, edx
je 0x4c41af
mov ecx, dword [esp + 0x64]
mov dword [esp], ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
call fcn.004c2a10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c463d
mov ebx, dword [esp + 0x7c]
test ebx, ebx
jge 0x4c462e
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
nop
lea ebx, [esp + 0x50]
mov dword [esp + 0x50], ebx
mov ebp, dword [esp + 0x78]
mov esi, dword [esp + 0x70]
mov edi, ebp
sub ebp, esi
imul ebp, eax
mov ecx, dword [esp + 0x68]
add ebp, ecx
test ebp, ebp
jl 0x4c46ee
mov dword [esp + 0x7c], eax
mov edx, edi
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x30], ebx
sub ebx, edi
cmp ebp, ebx
jg 0x4c45ab
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x64]
xor edi, edi
xor edi, edi
mov dword [esp + 0x20], edi
jmp 0x4c42e4
mov dword [esp + 0x38], ebp
mov dword [esp + 0x4c], esi
add eax, esi
mov dword [esp], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.0045e7b0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
lea edi, [eax + 1]
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x30]
add eax, esi
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x64]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x7c]
cmp edi, eax
jge 0x4c44ce
mov dword [esp + 0x24], edi
test esi, esi
jne 0x4c4492
test edi, edi
jle 0x4c4487
mov ebx, dword [esp + 0x20]
cmp ecx, ebx
jb 0x4c46e7
sub ecx, ebx
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, ebx
add ecx, ebp
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.00465ae0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
add eax, ecx
mov edx, dword [esp + 0x68]
cmp eax, edx
ja 0x4c46d9
cmp eax, ecx
jb 0x4c46ce
mov ebx, eax
sub eax, ecx
mov ebp, eax
neg eax
sar eax, 0x1f
and ecx, eax
mov eax, dword [esp + 0x64]
add ecx, eax
nop
mov esi, dword [esp + 0x50]
test esi, esi
je 0x4c447a
lea edi, [esp + 0x50]
cmp edi, esi
jne 0x4c46b6
mov dword [esp + 0x30], ebx
mov esi, dword [esp + 0x58]
lea eax, [esi + ebp]
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x54]
cmp edx, eax
jb 0x4c4437
mov dword [esp + 0x38], edx
mov dword [esp + 0x4c], ebx
lea eax, [ebx + esi]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call fcn.0045e7b0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x54], eax
nop
nop
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4c442d
lea ecx, [esp + 0x50]
cmp ecx, eax
jne 0x4c469e
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x78]
lea ebx, [edx + eax]
mov dword [esp + 0x3c], ebx
mov ebp, dword [esp + 0x5c]
mov esi, dword [esp + 0x54]
cmp ebp, ebx
jae 0x4c427d
mov dword [esp + 0x38], eax
lea ecx, [0x5db380]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.00445150
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x78]
jmp 0x4c427d
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], ecx
jmp 0x4c43d7
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], ecx
mov dword [esp + 0x34], esi
lea ecx, [0x5db380]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
call fcn.00445150
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
jmp 0x4c438e
lea edi, [esp + 0x50]
mov dword [esp + 0x50], edi
jmp 0x4c436f
mov ecx, dword [esp + 0x20]
mov eax, ecx
jmp 0x4c432f
mov edi, dword [esp + 0x20]
cmp ecx, edi
jb 0x4c46e0
sub ecx, edi
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, edi
add ecx, ebp
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
call fcn.004c4920
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, ecx
jmp 0x4c432f
mov eax, dword [esp + 0x20]
cmp ecx, eax
jb 0x4c4699
sub ecx, eax
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
add eax, ebp
nop
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x4c459e
lea ebx, [esp + 0x50]
cmp ebx, ecx
jne 0x4c4681
mov ecx, dword [esp + 0x58]
lea ebx, [ecx + edx]
mov dword [esp + 0x30], ebx
mov ebp, dword [esp + 0x5c]
mov esi, dword [esp + 0x54]
cmp ebp, ebx
jb 0x4c455b
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x4c], esi
add ecx, esi
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.0045e7b0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x60
ret
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x44], eax
lea eax, [0x5db380]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.00445150
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
jmp 0x4c4517
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], ecx
jmp 0x4c4500
mov dword [esp + 0x28], edi
lea eax, [0x5db380]
mov dword [esp], eax
mov dword [esp + 4], edi
mov ecx, dword [esp + 0x30]
lea ecx, [ebp + ecx*2]
mov dword [esp + 0x2c], ecx
mov dword [esp + 8], ecx
call fcn.004450a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x28]
cmp edx, ebx
jge 0x4c462a
mov dword [esp + 0x48], eax
cmp eax, ecx
je 0x4c45fd
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0045e7b0
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x70]
jmp 0x4c426b
mov edx, ebx
jmp 0x4c45e5
cmp ebx, eax
jg 0x4c4209
mov eax, ebx
jmp 0x4c4209
mov eax, dword [esp + 0x64]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x84], eax
add esp, 0x60
ret
mov ecx, dword [esp + 0x6c]
mov dword [esp], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.004028b0
movzx edx, byte [esp + 0xc]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x78]
jmp 0x4c41ab
lea eax, [0x5db180]
mov dword [esp], eax
lea eax, [0x65bf60]
mov dword [esp + 4], eax
call fcn.00431a30
call fcn.0045def0
lea eax, [0x5db180]
mov dword [esp], eax
lea eax, [0x65bf60]
mov dword [esp + 4], eax
call fcn.00431a30
lea eax, [0x5db180]
mov dword [esp], eax
lea eax, [0x65bf60]
mov dword [esp + 4], eax
call fcn.00431a30
mov edx, eax
mov eax, ecx
mov ecx, edx
call fcn.0045def0
mov ecx, eax
call fcn.0045deb0
mov eax, edi
call fcn.0045def0
mov eax, ebx
call fcn.0045def0
lea eax, [0x5db180]
mov dword [esp], eax
lea eax, [0x65bf68]
mov dword [esp + 4], eax
call fcn.00431a30
nop
call fcn.0045c8b0
jmp fcn.004c4180