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

Disassembly:
mov ecx, dword [0x6b21fc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x80]
cmp eax, dword [ecx + 8]
jbe 0x4f835c
sub esp, 0x100
mov ecx, dword [esp + 0x15c]
cmp ecx, 2
jl 0x4f78b2
mov edx, dword [esp + 0x158]
xor eax, eax
xor ebx, ebx
lea ebp, [0x6b20c0]
xor esi, esi
jmp 0x4f7974
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp], ecx
call fcn.00409b00
mov eax, dword [esp + 4]
lea ecx, [0x52aa00]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
lea eax, [0x5501c5]
mov dword [esp], eax
mov dword [esp + 4], 0x24
lea eax, [esp + 0x90]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a1ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x164], 0
mov dword [esp + 0x168], 0
mov dword [esp + 0x16c], 0
mov dword [esp + 0x170], eax
mov dword [esp + 0x174], ecx
add esp, 0x100
ret
mov dword [esi + edi*4 - 0xc], edx
mov eax, dword [esp + 0x7c]
lea edx, [eax + 0xc]
mov eax, dword [esp + 0x38]
inc eax
mov ecx, dword [esp + 0x15c]
mov edi, ebp
mov ebp, esi
mov esi, edi
cmp ecx, eax
jle 0x4f7e0c
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x68], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x7c], edx
movzx edi, byte [esp + 0x114]
mov ecx, dword [edx + 4]
mov dword [esp + 0x3c], ecx
mov edx, dword [edx]
mov dword [esp + 0x70], edx
xchg edi, eax
test al, al
xchg edi, eax
je 0x4f7ab3
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp], eax
call fcn.00409b00
mov eax, dword [esp + 4]
lea ecx, [0x52aa00]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.00409b00
mov eax, dword [esp + 4]
lea ecx, [0x52aa00]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
lea edi, [esp + 0xe8]
xor eax, eax
call fcn.00468aaa
lea eax, [0x4f8460]
mov dword [esp + 0xe8], eax
mov dword [esp + 0xf0], 0x24
lea ecx, [0x5501e9]
mov dword [esp + 0xec], ecx
mov dword [esp + 0xf8], 2
mov dword [esp + 0xfc], 2
lea edx, [esp + 0x98]
mov dword [esp + 0xf4], edx
mov edx, dword [0x68b9c4]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea edx, [esp + 0xe8]
mov dword [esp + 0xc], edx
call fcn.004b1180
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x68]
mov esi, dword [esp + 0x28]
lea edi, [esp + 0xd0]
xor eax, eax
call fcn.00468aaa
xor ecx, ecx
mov edi, 0xfffffff6
xor eax, eax
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x30], eax
lea eax, [0x6b20c0]
mov dword [esp + 0x6c], eax
xor eax, eax
jmp 0x4f7e77
movzx ecx, byte [esp + 0xd4]
test cl, cl
ja 0x4f7b02
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x6c]
jmp 0x4f7d40
movzx ecx, byte [esp + 0x114]
test cl, cl
je 0x4f7beb
lea eax, [esp + 0xd0]
mov dword [esp], eax
call fcn.004fa530
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409c10
mov eax, dword [esp + 8]
lea ecx, [0x52a880]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
lea edi, [esp + 0xe8]
xor eax, eax
call fcn.00468aaa
lea eax, [0x4f8370]
mov dword [esp + 0xe8], eax
mov dword [esp + 0xf0], 0xe
lea ecx, [0x54831c]
mov dword [esp + 0xec], ecx
mov dword [esp + 0xf8], 1
mov dword [esp + 0xfc], 1
lea edx, [esp + 0x80]
mov dword [esp + 0xf4], edx
mov edx, dword [0x68b9c4]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea edx, [esp + 0xe8]
mov dword [esp + 0xc], edx
call fcn.004b1180
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x56], 0
mov byte [esp + 0x5a], 0
movzx eax, byte [esp + 0xd4]
mov byte [esp + 0x56], al
movzx eax, byte [esp + 0xd5]
mov byte [esp + 0x57], al
movzx eax, byte [esp + 0xd6]
mov byte [esp + 0x58], al
movzx eax, byte [esp + 0xd7]
mov byte [esp + 0x59], al
movzx eax, byte [esp + 0xd8]
mov byte [esp + 0x5a], al
mov eax, dword [esp + 0xe0]
lea ecx, [eax + 5]
mov edx, dword [esp + 0xdc]
cmp ecx, 5
ja 0x4f7c50
lea ebp, [esp + 0x56]
jmp 0x4f7c90
mov dword [esp + 0x78], edx
mov dword [esp + 0x50], eax
lea edx, [esp + 0x56]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 5
mov dword [esp + 0xc], eax
lea ecx, [0x52abc0]
mov dword [esp + 0x10], ecx
call fcn.0044f350
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x78]
mov ebp, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x60], ebp
mov ebx, dword [esp + 0x30]
lea esi, [ecx + ebx]
mov dword [esp + 0x50], esi
lea edi, [ebp + 5]
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.004691a0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jb 0x4f7cd0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x50]
jmp 0x4f7d02
mov edx, dword [esp + 0x6c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
lea ecx, [0x52abc0]
mov dword [esp + 0x10], ecx
call fcn.0044f350
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x6c], eax
mov edx, dword [esp + 0x30]
add edx, eax
mov dword [esp], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 8], edx
call fcn.004691a0
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x6c]
inc ecx
cmp eax, ecx
jae 0x4f7d7b
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x52abc0]
mov dword [esp + 0x10], eax
call fcn.0044f350
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov byte [ecx + edx - 1], 0
lea ebp, [esi + 1]
cmp ebx, ebp
jb 0x4f7d8d
mov esi, dword [esp + 0x68]
jmp 0x4f7ddb
mov dword [esp + 0x6c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x525ae0]
mov dword [esp + 0x10], eax
call fcn.0044f350
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x6c]
mov esi, ebp
mov ebp, eax
mov eax, dword [esp + 0x34]
lea edi, [ebp + ebp*2]
mov dword [esi + edi*4 - 8], ecx
mov dword [esi + edi*4 - 4], eax
mov ecx, dword [0x6b2320]
test ecx, ecx
je 0x4f7957
mov eax, edi
call fcn.00468870
mov dword [edi], edx
mov ecx, dword [esi + eax*4 - 0xc]
mov dword [edi + 4], ecx
mov edi, eax
jmp 0x4f7957
mov dword [esp + 0x164], ebp
mov dword [esp + 0x168], esi
mov dword [esp + 0x16c], ebx
mov dword [esp + 0x170], 0
mov dword [esp + 0x174], 0
add esp, 0x100
ret
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x6c], edx
mov ebx, dword [esp + 0x44]
mov ebx, dword [ebx + 0x14]
mov ebp, dword [esp + 0x74]
mov dword [esp], ebp
call ebx
mov eax, dword [esp + 0x50]
lea ecx, [eax + 1]
mov edi, dword [esp + 4]
xor eax, eax
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x68]
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x3c]
cmp ecx, ebp
jge 0x4f7ae5
mov dword [esp + 0x50], ecx
mov dword [esp + 0x40], edi
lea eax, [edx + ecx*8]
mov ebx, dword [eax]
mov dword [esp + 0x44], ebx
mov eax, dword [eax + 4]
mov dword [esp + 0x74], eax
mov ebp, dword [ebx + 0x14]
mov dword [esp], eax
call ebp
mov eax, dword [esp + 4]
dec eax
mov ecx, dword [esp + 0x40]
cmp ecx, eax
je 0x4f8286
movzx eax, byte [esp + 0xd4]
test al, al
jbe 0x4f80fa
movzx eax, byte [esp + 0x114]
test al, al
je 0x4f7fab
lea eax, [esp + 0xd0]
mov dword [esp], eax
call fcn.004fa530
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409c10
mov eax, dword [esp + 8]
lea ecx, [0x52a880]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
lea eax, [0x4f83f0]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xb0], 1
mov dword [esp + 0xb4], 1
lea edx, [esp + 0x88]
mov dword [esp + 0xac], edx
mov edx, dword [0x68b9c4]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea edx, [esp + 0xa8]
mov dword [esp + 0xc], edx
call fcn.004b1180
mov dword [esp + 0x5b], 0
mov byte [esp + 0x5f], 0
movzx eax, byte [esp + 0xd4]
mov byte [esp + 0x5b], al
movzx eax, byte [esp + 0xd5]
mov byte [esp + 0x5c], al
movzx eax, byte [esp + 0xd6]
mov byte [esp + 0x5d], al
movzx eax, byte [esp + 0xd7]
mov byte [esp + 0x5e], al
movzx eax, byte [esp + 0xd8]
mov byte [esp + 0x5f], al
mov eax, dword [esp + 0xe0]
lea ecx, [eax + 5]
mov edx, dword [esp + 0xdc]
cmp ecx, 5
ja 0x4f8010
lea ebx, [esp + 0x5b]
jmp 0x4f8050
mov dword [esp + 0x4c], eax
mov dword [esp + 0x78], edx
lea edx, [esp + 0x5b]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 5
mov dword [esp + 0xc], eax
lea ecx, [0x52abc0]
mov dword [esp + 0x10], ecx
call fcn.0044f350
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x78]
mov ebx, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x64], ebx
mov ebp, dword [esp + 0x30]
lea esi, [ecx + ebp]
mov dword [esp + 0x4c], esi
lea edi, [ebx + 5]
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.004691a0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
jb 0x4f8090
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x4c]
jmp 0x4f80c2
mov edx, dword [esp + 0x6c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
lea ecx, [0x52abc0]
mov dword [esp + 0x10], ecx
call fcn.0044f350
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x6c], eax
mov edx, dword [esp + 0x30]
add edx, eax
mov dword [esp], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 8], edx
call fcn.004691a0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x6c]
jmp 0x4f8106
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x6c], edx
mov ebx, dword [esp + 0x44]
mov ebp, dword [ebx + 0x14]
mov esi, dword [esp + 0x74]
mov dword [esp], esi
call ebp
mov eax, dword [esp + 4]
mov ecx, eax
shl eax, 3
mov edx, eax
sar eax, 8
mov dword [esp + 0x4c], eax
mov ebx, ecx
and ecx, 0xff
mov ebp, ebx
sub ebx, ecx
sar ebx, 8
lea edi, [esp + 0xb8]
xor eax, eax
call fcn.00468aaa
mov dword [esp + 0xb8], ebp
mov byte [esp + 0xbd], dl
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0xbe], cl
xchg ebp, eax
mov byte [esp + 0xbf], al
xchg ebp, eax
mov byte [esp + 0xc0], bl
lea ecx, [0x6b20c0]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
lea edi, [esp + 0xd0]
lea esi, [esp + 0xb8]
call fcn.00468f84
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 0x10]
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0xe0]
lea ebx, [edx + eax]
mov ebp, dword [esp + 4]
mov esi, dword [esp + 0xdc]
cmp ecx, ebx
jae 0x4f8226
mov dword [esp + 0x78], ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edx
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
lea ecx, [0x52abc0]
mov dword [esp + 0x10], ecx
call fcn.0044f350
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x78], esi
add edx, esi
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
call fcn.004691a0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xdc], eax
movzx eax, byte [esp + 0xd4]
inc eax
mov byte [esp + 0xd4], al
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x6c]
jmp 0x4f7e3e
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x74]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0xe0]
lea ebx, [edx + eax]
mov ebp, dword [esp + 4]
mov esi, dword [esp + 0xdc]
cmp ecx, ebx
jae 0x4f82fc
mov dword [esp + 0x4c], eax
mov dword [esp + 0x78], ebp
mov dword [esp + 0x48], edx
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
lea ecx, [0x52abc0]
mov dword [esp + 0x10], ecx
call fcn.0044f350
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x78], esi
add edx, esi
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
call fcn.004691a0
mov eax, dword [esp + 0x48]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xdc], eax
movzx eax, byte [esp + 0xd4]
inc eax
mov byte [esp + 0xd4], al
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x6c]
jmp 0x4f7e3e
call fcn.00467460
jmp fcn.004f7870