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

Disassembly:
push 0xffffffffffffffff
push 0x622cc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov eax, dword [0x704e74]
push esi
mov esi, ecx
mov ecx, eax
inc eax
mov dword [esp + 0x50], 0x704e74
test ecx, ecx
mov dword [0x704e74], eax
je 0x4e15eb
mov eax, 1
jmp 0x4e15ed
xor eax, eax
mov byte [esp + 0x54], al
xor ecx, ecx
test al, al
mov dword [esp + 0x80], ecx
jne 0x4e18ce
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
push ebx
push ebp
push edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x28]
xor edi, edi
inc ecx
cmp eax, edi
mov dword [esp + 0x10], ecx
je 0x4e163c
mov edx, dword [esi + 0x2c]
mov ecx, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
lea eax, [esp + 0x2c]
jmp 0x4e1649
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x74]
push eax
call fcn.004e2900
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x34]
mov dword [esp + 0x54], ebx
cmp eax, edi
mov dword [esp + 0x58], ecx
jne 0x4e1665
mov dword [esi + 0x44], edi
mov dword [esi + 0x3c], edi
jmp 0x4e16c9
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x64]
push eax
mov edx, dword [ecx]
call dword [edx + 0x8c]
mov edi, dword [esi + 0x34]
mov ebp, dword [esp + 0x64]
lea eax, [edi + ebp - 1]
cdq
idiv edi
mov ecx, eax
mov eax, ebx
cdq
idiv edi
mov dword [esi + 0x44], ecx
mov edi, eax
cmp edi, ecx
jge 0x4e169c
cmp ebx, ebp
jl 0x4e1698
inc edi
cmp edi, ecx
jl 0x4e16a6
xor edi, edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], edi
jmp 0x4e16c9
cmp edi, 1
jge 0x4e16b0
mov edi, 1
mov eax, dword [esi + 0x3c]
sub ecx, edi
cmp eax, ecx
jle 0x4e16be
mov dword [esi + 0x3c], ecx
jmp 0x4e16c9
test eax, eax
jge 0x4e16c9
mov dword [esi + 0x3c], 0
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x18]
push 1
push eax
mov eax, dword [esi + 0x3c]
mov edx, dword [ecx]
push edi
push eax
push 4
call dword [edx + 0x178]
push edi
push 4
mov ecx, esi
call fcn.004e1a20
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4e1705
mov edx, dword [esi + 0x2c]
mov ecx, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
lea eax, [esp + 0x34]
jmp 0x4e172e
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x18]
mov eax, dword [ecx]
push edx
call dword [eax + 0x21c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
lea eax, [esp + 0x3c]
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [esi + 0x38]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x7c], edx
jne 0x4e1748
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], edi
jmp 0x4e17ac
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x6c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x8c]
mov edi, dword [esi + 0x38]
mov ebp, dword [esp + 0x70]
lea eax, [edi + ebp - 1]
cdq
idiv edi
mov ecx, eax
mov eax, ebx
cdq
idiv edi
mov dword [esi + 0x48], ecx
mov edi, eax
cmp edi, ecx
jge 0x4e177f
cmp ebx, ebp
jl 0x4e177b
inc edi
cmp edi, ecx
jl 0x4e1789
xor edi, edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
jmp 0x4e17ac
cmp edi, 1
jge 0x4e1793
mov edi, 1
mov eax, dword [esi + 0x40]
sub ecx, edi
cmp eax, ecx
jle 0x4e17a1
mov dword [esi + 0x40], ecx
jmp 0x4e17ac
test eax, eax
jge 0x4e17ac
mov dword [esi + 0x40], 0
mov edx, dword [esi + 0x48]
mov ecx, dword [esi + 0x18]
push 1
push edx
mov edx, dword [esi + 0x40]
mov eax, dword [ecx]
push edi
push edx
push 8
call dword [eax + 0x178]
push edi
push 8
mov ecx, esi
call fcn.004e1a20
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4e17e6
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
lea eax, [esp + 0x44]
jmp 0x4e180f
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
mov edx, dword [ecx]
push eax
call dword [edx + 0x21c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
lea eax, [esp + 0x4c]
mov ecx, dword [eax]
mov edx, dword [esp + 0x54]
mov eax, dword [eax + 4]
cmp ecx, edx
jne 0x4e1820
cmp eax, ebx
je 0x4e182b
cmp dword [esp + 0x10], 5
jl 0x4e1617
mov edx, dword [esi + 0x3c]
mov edi, dword [esp + 0x24]
cmp edi, edx
je 0x4e187b
mov al, byte [esi + 0x54]
test al, al
mov eax, dword [esi + 0x28]
je 0x4e1862
test eax, eax
je 0x4e1849
lea eax, [esi + 0x20]
jmp 0x4e184b
xor eax, eax
sub edi, edx
mov ecx, dword [esi + 0x1c]
imul edi, dword [esi + 0x34]
mov ebx, dword [ecx]
push eax
push 0
push edi
call dword [ebx + 0x18c]
jmp 0x4e187b
test eax, eax
je 0x4e186b
lea eax, [esi + 0x20]
jmp 0x4e186d
xor eax, eax
mov ecx, dword [esi + 0x1c]
push eax
push 1
mov edx, dword [ecx]
call dword [edx + 0x118]
mov edx, dword [esi + 0x40]
mov edi, dword [esp + 0x28]
cmp edi, edx
je 0x4e18cb
mov al, byte [esi + 0x55]
test al, al
mov eax, dword [esi + 0x28]
je 0x4e18b2
test eax, eax
je 0x4e1899
lea eax, [esi + 0x20]
jmp 0x4e189b
xor eax, eax
sub edi, edx
mov ecx, dword [esi + 0x1c]
imul edi, dword [esi + 0x38]
mov ebx, dword [ecx]
push eax
push edi
push 0
call dword [ebx + 0x18c]
jmp 0x4e18cb
test eax, eax
je 0x4e18bb
lea eax, [esi + 0x20]
jmp 0x4e18bd
xor eax, eax
mov ecx, dword [esi + 0x1c]
push eax
push 1
mov edx, dword [ecx]
call dword [edx + 0x118]
pop edi
pop ebp
pop ebx
mov eax, dword [0x704e74]
mov ecx, dword [esp + 0x78]
dec eax
pop esi
mov dword [0x704e74], eax
mov dword fs:[0], ecx
add esp, 0x80
ret