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

Disassembly:
mov ecx, dword [0x98cddc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4f8d36
sub esp, 0x6c
mov edx, dword [esp + 0x80]
lea ebx, [edx + 1]
mov ebp, dword [esp + 0x84]
xor eax, eax
jmp 0x4f8855
mov esi, dword [esp + 0x34]
lea eax, [esi + 1]
mov ebx, ecx
cmp eax, 5
jge 0x4f893f
mov dword [esp + 0x34], eax
jmp 0x4f894c
cmp ebp, ebx
je 0x4f8a48
sub ebp, edx
cmp ebp, 0x32
jl 0x4f8a3c
mov ecx, dword [esp + 0x78]
cmp ecx, ebx
jbe 0x4f8d20
lea ebp, [ebx - 1]
mov edi, dword [esp + 0x74]
lea eax, [edi + ebx*8]
mov esi, dword [eax + 4]
cmp ecx, ebp
jbe 0x4f8d19
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], esi
lea ecx, [edi + ebx*8 + 4]
lea ebp, [edi + ebx*8 - 8]
mov dword [esp + 0x68], ebp
mov esi, dword [ebp + 4]
lea edi, [edi + ebx*8 - 4]
mov dword [esp + 0x64], edi
mov ebp, dword [ebp]
mov edi, dword [eax]
mov dword [ecx], esi
mov esi, dword [0x98d0b8]
mov ecx, ebx
sub ebx, edx
test esi, esi
je 0x4f88f6
mov esi, edi
call fcn.00471ae0
mov dword [edi], ebp
mov edx, dword [eax]
mov dword [edi + 4], edx
mov dword [edi + 8], esi
mov edx, dword [esp + 0x68]
mov ecx, dword [edx]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x80]
mov edi, esi
mov dword [eax], ebp
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x64]
mov dword [esi], ebp
mov ebp, dword [esp + 0x68]
mov dword [ebp], edi
cmp ebx, 2
jl 0x4f8917
mov eax, dword [esp + 0x40]
jmp 0x4f8bf5
mov ebx, dword [esp + 0x84]
mov ebp, ebx
sub ebx, ecx
cmp ebx, 2
jl 0x4f884c
lea ebx, [ecx + 1]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
jmp 0x4f8a84
mov byte [esp + 0x88], 0
add esp, 0x6c
ret
inc ebx
mov dword [esp + 0x38], ebx
cmp ebp, ebx
jg 0x4f895b
xor ecx, ecx
jmp 0x4f8a2f
mov ecx, dword [esp + 0x78]
cmp ecx, ebx
jbe 0x4f8d2e
lea esi, [ebx - 1]
mov edi, dword [esp + 0x74]
lea eax, [edi + ebx*8]
cmp ecx, esi
jbe 0x4f8d27
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
test byte [edx], al
mov edx, dword [eax]
mov dword [esp + 0x58], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
lea ebp, [edi + ebx*8 - 8]
mov esi, dword [ebp]
mov dword [esp + 0x4c], esi
mov ebp, dword [ebp + 4]
mov dword [esp + 0x1c], ebp
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00402e10
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
je 0x4f89e7
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], ecx
call fcn.00402e10
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
jne 0x4f89e7
mov eax, 1
jmp 0x4f8a14
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
call fcn.00402d20
mov eax, dword [esp + 0x10]
test eax, eax
setl al
xor eax, 1
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x84]
mov ecx, eax
mov eax, dword [esp + 0x34]
test cl, cl
jne 0x4f894b
jmp 0x4f8867
mov byte [esp + 0x88], 0
add esp, 0x6c
ret
mov byte [esp + 0x88], 1
add esp, 0x6c
ret
mov dword [ebp], ecx
mov dword [ebx], edx
mov eax, dword [esp + 0x5c]
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
lea ebx, [eax + 1]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x80]
cmp ebp, ebx
jle 0x4f884c
cmp edi, ebx
jbe 0x4f8bcf
lea edx, [ebx - 1]
lea ecx, [esi + ebx*8]
cmp edi, edx
jbe 0x4f8bc6
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x68], ecx
mov edx, dword [eax]
test byte [edx], al
mov edx, dword [ecx]
mov dword [esp + 0x50], edx
mov ebp, dword [ecx + 4]
mov dword [esp + 0x20], ebp
lea edi, [esi + ebx*8 - 8]
mov dword [esp + 0x60], edi
mov eax, dword [edi]
mov dword [esp + 0x44], eax
mov ecx, dword [edi + 4]
mov dword [esp + 0x14], ecx
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
call fcn.00402e10
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
je 0x4f8b17
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 8], ecx
call fcn.00402e10
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
jne 0x4f8b17
mov eax, 1
jmp 0x4f8b44
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
call fcn.00402d20
mov eax, dword [esp + 0x10]
test eax, eax
setl al
test al, al
je 0x4f8ba3
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x74]
lea ebp, [ebx + edx*8 + 4]
mov esi, dword [esp + 0x60]
mov edi, dword [esi + 4]
mov eax, ebp
mov ebp, dword [esp + 0x68]
mov ecx, dword [ebp]
mov dword [esp + 0x5c], ecx
lea ebx, [ebx + edx*8 - 4]
mov edx, dword [ebp + 4]
mov ecx, dword [esi]
mov dword [eax], edi
mov edi, dword [0x98d0b8]
test edi, edi
je 0x4f8a54
call fcn.00471ae0
mov dword [edi], ecx
mov eax, dword [ebp]
mov dword [edi + 4], eax
mov eax, edx
mov edx, dword [esp + 0x5c]
mov dword [edi + 8], edx
mov edx, dword [esi]
mov dword [edi + 0xc], edx
mov edx, eax
jmp 0x4f8a54
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x80]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
jmp 0x4f884c
mov eax, edx
mov ecx, edi
call fcn.00471b30
mov eax, ebx
mov ecx, edi
call fcn.00471b30
mov dword [ebp], ecx
mov dword [ebx], edx
mov ebx, dword [esp + 0x5c]
mov dword [esi], ebx
mov ebx, dword [esp + 0x30]
lea eax, [ebx - 1]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x80]
test eax, eax
jle 0x4f8917
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
test byte [edx], al
mov edx, dword [esp + 0x74]
lea ebx, [edx + eax*8]
mov dword [esp + 0x68], ebx
mov ebp, dword [ebx]
mov dword [esp + 0x54], ebp
mov esi, dword [ebx + 4]
mov dword [esp + 0x24], esi
lea edi, [edx + eax*8 - 8]
mov dword [esp + 0x60], edi
mov ecx, dword [edi]
mov dword [esp + 0x48], ecx
mov ebx, dword [edi + 4]
mov dword [esp + 0x18], ebx
mov dword [esp], ebp
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.00402e10
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
je 0x4f8c7d
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], ecx
call fcn.00402e10
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
jne 0x4f8c7d
mov eax, 1
jmp 0x4f8caa
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
call fcn.00402d20
mov eax, dword [esp + 0x10]
test eax, eax
setl al
test al, al
je 0x4f8d09
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x74]
lea ebp, [ebx + edx*8 + 4]
mov esi, dword [esp + 0x60]
mov edi, dword [esi + 4]
mov eax, ebp
mov ebp, dword [esp + 0x68]
mov ecx, dword [ebp]
mov dword [esp + 0x5c], ecx
lea ebx, [ebx + edx*8 - 4]
mov edx, dword [ebp + 4]
mov ecx, dword [esi]
mov dword [eax], edi
mov edi, dword [0x98d0b8]
test edi, edi
je 0x4f8bd8
call fcn.00471ae0
mov dword [edi], ecx
mov eax, dword [ebp]
mov dword [edi + 4], eax
mov eax, edx
mov edx, dword [esp + 0x5c]
mov dword [edi + 8], edx
mov edx, dword [esi]
mov dword [edi + 0xc], edx
mov edx, eax
jmp 0x4f8bd8
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x80]
jmp 0x4f8917
mov eax, ebp
call fcn.00471b30
mov eax, ebx
call fcn.00471b30
mov eax, esi
call fcn.00471b30
mov eax, ebx
call fcn.00471b30
nop
call fcn.004706b0
jmp fcn.004f8820