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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x20]
cmp eax, dword [ecx + 8]
jbe 0x4f7841
sub esp, 0xa0
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x60]
test ecx, ecx
jne 0x4f77ca
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebx, dword [eax + 0x24]
mov ebp, dword [eax + 0x20]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
call fcn.004f6c10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x4f7751
mov edi, dword [esp + 0xa4]
mov dword [edi + 4], edx
mov ecx, dword [0xc98a20]
test ecx, ecx
jne 0x4f7745
mov dword [edi], ebx
mov eax, dword [edi + 0x50]
test eax, eax
jne 0x4f7709
mov eax, dword [edi + 0x58]
mov ecx, dword [edi + 0x5c]
test eax, eax
jne 0x4f765a
mov eax, dword [edi + 0x44]
lea ecx, [0x774240]
mov dword [esp], ecx
mov dword [esp + 4], 0
add eax, 3
mov dword [esp + 0x44], eax
mov dword [esp + 8], eax
call fcn.004436c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xa4]
mov dword [ecx + 0x70], 0
mov edx, dword [esp + 0x44]
mov dword [ecx + 0x74], edx
lea edi, [ecx + 0x6c]
mov edx, dword [0xc98a20]
test edx, edx
jne 0x4f7650
mov dword [ecx + 0x6c], eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea ebx, [0x797348]
mov dword [esp + 0x70], ebx
lea ebx, [0x79734c]
mov dword [esp + 0x74], ebx
lea ebx, [0x797344]
mov dword [esp + 0x78], ebx
xor eax, eax
jmp 0x4f7078
mov ebx, dword [esp + 0x44]
lea eax, [ebx + 1]
mov ecx, edx
mov edi, dword [esp + 0x64]
cmp eax, 3
jge 0x4f71b6
mov dword [esp + 0x44], eax
lea ebx, [esp + 0x70]
mov edx, dword [ebx + eax*4]
mov dword [esp], ecx
mov ebp, dword [edx]
call ebp
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x4f713d
mov ebx, dword [esp + 0xa4]
mov ebp, dword [ebx + 0x70]
lea esi, [ebp + 1]
mov ecx, ebp
mov ebp, dword [ebx + 0x6c]
mov edx, ebx
mov ebx, dword [ebx + 0x74]
cmp esi, ebx
ja 0x4f70e3
lea ebx, [ecx + 1]
mov dword [edx + 0x70], ebx
lea edi, [ebp + ecx*4]
mov ebx, dword [0xc98a20]
test ebx, ebx
jne 0x4f70dc
mov dword [ebp + ecx*4], eax
jmp 0x4f706b
call fcn.004599b0
jmp 0x4f706b
mov dword [esp + 0x48], eax
lea eax, [0x774240]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
call fcn.00443780
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa4]
mov dword [ebx + 0x74], edx
mov edx, dword [0xc98a20]
test edx, edx
jne 0x4f7132
mov dword [ebx + 0x6c], eax
mov edx, ebx
mov ebp, eax
mov eax, dword [esp + 0x48]
jmp 0x4f70c2
mov edi, dword [esp + 0x64]
call fcn.004599b0
jmp 0x4f7128
mov dword [esp + 0x54], ecx
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x78]
mov edx, dword [eax + 0x80]
mov ebx, dword [eax + 0x7c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.004f6b60
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x84]
mov edx, dword [eax + 0x88]
mov ebx, dword [eax + 0x8c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.004f6b60
mov eax, dword [esp + 0x34]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xac], eax
add esp, 0xa0
ret
mov eax, dword [ecx + 0x70]
mov edx, dword [ecx + 0x44]
lea ebx, [eax + edx]
mov dword [esp + 0x44], ebx
mov ebp, dword [ecx + 0x6c]
mov esi, dword [ecx + 0x74]
mov edi, dword [ecx + 0x48]
mov dword [esp + 0x40], edi
mov edi, dword [ecx + 0x40]
cmp ebx, esi
ja 0x4f7602
cmp eax, ebx
ja 0x4f7839
mov dword [esp + 0x60], ebp
mov dword [esp + 0x3c], esi
lea ecx, [0x774240]
mov dword [esp], ecx
sub esi, eax
mov ebx, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
shl eax, 2
sar esi, 0x1f
and eax, esi
add eax, ebp
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
call fcn.00410d50
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xa4]
mov dword [ecx + 0x70], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0x74], eax
mov eax, dword [0xc98a20]
test eax, eax
jne 0x4f75f0
mov eax, dword [esp + 0x60]
mov dword [ecx + 0x6c], eax
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x1c]
test edx, edx
je 0x4f75c5
xor ebp, ebp
xor esi, esi
test esi, esi
jne 0x4f75b0
mov ebp, dword [ecx + 0x10]
mov esi, dword [ecx + 0xc]
mov edi, dword [ecx + 8]
test esi, esi
jle 0x4f757c
mov dword [esp + 0x28], ebp
mov dword [esp + 0x60], edi
mov dword [esp + 0x24], esi
mov byte [esp], 1
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.004f8e00
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004f9130
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x7c]
mov ebx, eax
xor eax, eax
call fcn.00459c47
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x20]
mov ebp, dword [eax + 0x24]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ebp
mov ecx, dword [eax + 0x6c]
mov ebp, dword [eax + 0x70]
mov esi, dword [eax + 0x74]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], esi
mov dword [esp + 0x84], ebx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
mov ecx, dword [eax + 0x4c]
mov dword [esp + 0x9c], ecx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x60]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x14], ecx
call fcn.004c0bc0
mov eax, dword [0xc98a20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
test eax, eax
jne 0x4f7564
mov eax, dword [esp + 0xa4]
mov dword [eax + 0x50], ecx
test ebx, ebx
jne 0x4f74f2
mov ecx, dword [eax + 0x78]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x80]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.004f6b60
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x94]
test ecx, ecx
jle 0x4f744e
lea eax, [0x713340]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004043f0
mov eax, dword [0xc98a20]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x4f74d7
mov eax, dword [esp + 0xa4]
mov dword [eax + 0x9c], ecx
mov ecx, dword [eax + 0x90]
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 0x94]
mov dword [esp + 0x44], edx
xor ebx, ebx
jmp 0x4f744a
mov dword [esp + 0x40], ebx
mov edx, dword [ecx + ebx*4]
mov dword [esp], 8
lea ebp, [0x79733c]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.0043a4f0
mov eax, dword [esp + 0x40]
lea ebx, [eax + 1]
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x44]
cmp ebx, edx
jl 0x4f740f
mov ecx, dword [eax + 0x58]
test ecx, ecx
jne 0x4f7472
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
add esp, 0xa0
ret
lea eax, [0x713640]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.004043f0
mov eax, dword [0xc98a20]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x4f74bf
mov eax, dword [esp + 0xa4]
mov dword [eax + 0xa0], ecx
mov dword [esp], 4
lea ecx, [0x797340]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0043a4f0
jmp 0x4f7455
mov edx, dword [esp + 0xa4]
lea edi, [edx + 0xa0]
mov eax, ecx
call fcn.004599b0
mov eax, edx
jmp 0x4f74a3
mov edx, dword [esp + 0xa4]
lea edi, [edx + 0x9c]
mov eax, ecx
call fcn.004599b0
mov eax, edx
jmp 0x4f73f7
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 0x78]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x80]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.004f6b60
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x84]
mov edx, dword [eax + 0x88]
mov ebx, dword [eax + 0x8c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.004f6b60
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xac], eax
add esp, 0xa0
ret
mov ebp, dword [esp + 0xa4]
lea edi, [ebp + 0x50]
mov eax, ecx
call fcn.004599b0
mov eax, ebp
jmp 0x4f7389
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov ebp, ecx
mov ecx, dword [ecx]
mov esi, ecx
mov ecx, dword [ebp + 4]
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], ecx
mov ebp, 1
lea edi, [esp + 0x68]
mov esi, 1
jmp 0x4f7281
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], ebp
add esp, 0xa0
ret
mov eax, dword [ecx + 0x4c]
mov dword [esp], eax
call fcn.004bfba0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0xa4]
jmp 0x4f7268
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
call fcn.004599b0
jmp 0x4f7253
mov dword [esp + 0x3c], eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x38], edx
lea ecx, [0x774240]
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.00443780
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x58]
jmp 0x4f71db
call fcn.004599b0
jmp 0x4f702d
mov eax, dword [eax + 0x14]
mov dword [esp], ecx
call eax
mov dword [esp], 0
call fcn.004057e0
movzx eax, byte [esp + 8]
test al, al
jne 0x4f7683
mov edi, dword [esp + 0xa4]
jmp 0x4f6fdc
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x78]
mov ebx, dword [eax + 0x7c]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
call fcn.004f6b60
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x8c]
mov edx, dword [eax + 0x88]
mov ebx, dword [eax + 0x84]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call fcn.004f6b60
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x58]
mov eax, dword [eax + 0x5c]
mov ecx, dword [ecx + 0x18]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
add esp, 0xa0
ret
lea eax, [0x7387a0]
mov dword [esp], eax
call fcn.0040ab90
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x15
lea ecx, [0x780bea]
mov dword [eax], ecx
lea ecx, [0x7ff1b0]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
add esp, 0xa0
ret
mov eax, ebx
call fcn.004599b0
jmp 0x4f6fc3
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x78]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call fcn.004f6b60
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x88]
mov edx, dword [eax + 0x84]
mov ebx, dword [eax + 0x8c]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
call fcn.004f6b60
mov eax, dword [esp + 0x30]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xac], eax
add esp, 0xa0
ret
mov ecx, dword [eax + 0x7c]
mov edx, dword [eax + 0x80]
mov ebx, dword [eax + 0x78]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.004f6b60
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x8c]
mov edx, dword [eax + 0x88]
mov ebx, dword [eax + 0x84]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call fcn.004f6b60
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x64]
mov eax, dword [eax + 0x60]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
add esp, 0xa0
ret
mov ecx, ebx
call fcn.00459a90
nop
call fcn.00458170
jmp fcn.004f6f40