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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x88]
cmp eax, dword [ecx + 8]
jbe 0x5074ca
sub esp, 0x108
mov dword [esp], 0x10
mov eax, dword [0x79e61c]
mov dword [esp + 4], eax
call fcn.00509450
lea edi, [esp + 0xac]
xor eax, eax
call fcn.004485cb
lea ecx, [0x5da860]
mov dword [esp], ecx
lea ecx, [esp + 0xac]
mov dword [esp + 4], ecx
call fcn.0040a7a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x507401
lea ecx, [0x69aa00]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0050a360
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], 0x11
call fcn.00509450
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
lea eax, [0x5d5d40]
mov dword [esp], eax
lea eax, [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.0040a7a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x50]
test eax, eax
je 0x5073f8
lea ecx, [0x69aa00]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0050a360
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], 0x12
call fcn.00509450
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
lea eax, [0x5d5f20]
mov dword [esp], eax
lea eax, [esp + 0x88]
mov dword [esp + 4], eax
call fcn.0040a7a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x5073ef
lea ecx, [0x69aa00]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0050a360
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], 0x13
call fcn.00509450
lea edi, [esp + 0xc0]
xor eax, eax
call fcn.004485ca
lea ecx, [0x5d5f80]
mov dword [esp], ecx
lea ecx, [esp + 0xc0]
mov dword [esp + 4], ecx
call fcn.0040a7a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5073e6
lea ecx, [0x69aa00]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0050a360
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], 0x14
call fcn.00509450
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea eax, [0x5d5ec0]
mov dword [esp], eax
lea eax, [esp + 0x60]
mov dword [esp + 4], eax
call fcn.0040a7a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x5073dd
lea ecx, [0x69aa00]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0050a360
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], 0x15
call fcn.00509450
lea edi, [esp + 0x98]
xor eax, eax
call fcn.004485cb
lea ecx, [0x5da8e0]
mov dword [esp], ecx
lea ecx, [esp + 0x98]
mov dword [esp + 4], ecx
call fcn.0040a7a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5073d4
lea ecx, [0x69aa00]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0050a360
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], 0x17
call fcn.00509450
call fcn.00405cb0
mov eax, dword [0x79e7b0]
mov ecx, dword [esp]
test eax, eax
jne 0x5073bd
mov dword [0x78cfa0], ecx
mov ecx, dword [0x78cfb8]
mov dword [esp + 0x1c], ecx
lea edi, [esp + 0xd8]
xor eax, eax
call fcn.004485c4
lea ecx, [0x5ce4e0]
mov dword [esp], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 4], edx
lea edx, [esp + 0xd8]
mov dword [esp + 8], edx
call fcn.00406c40
jmp 0x5072cd
lea eax, [esp + 0xd8]
mov dword [esp], eax
call fcn.00406f20
mov eax, dword [esp + 0xd8]
test eax, eax
je 0x50733c
mov ecx, dword [esp + 0xdc]
mov eax, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x18], ecx
lea ebx, [0x5ce4e0]
mov dword [esp], ebx
mov ebp, dword [0x78cfa0]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
call fcn.00408970
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [0x79e7b0]
lea edx, [eax + 4]
test ecx, ecx
jne 0x50732a
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ecx
jmp 0x5072be
mov dword [esp], edx
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
call fcn.0040d8c0
jmp 0x5072be
mov eax, dword [0x79e5dc]
cmp eax, 0x40
jg 0x50740a
mov dword [0x79e5dc], 0x40
call fcn.0050ab00
mov eax, dword [0x698b48]
lea ecx, [0x5d00e0]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x5073b7
lea ecx, [0x69aa00]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00506bd0
mov eax, dword [0x79e7b0]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x5073a3
mov dword [0x78cfc0], ecx
add esp, 0x108
ret
lea eax, [0x78cfc0]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040d8c0
jmp 0x50739c
xor ecx, ecx
xor eax, eax
jmp 0x50737c
lea eax, [0x78cfa0]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040d8c0
jmp 0x507283
xor eax, eax
xor ecx, ecx
jmp 0x507245
xor ecx, ecx
xor eax, eax
jmp 0x5071da
xor eax, eax
xor ecx, ecx
jmp 0x507168
xor ecx, ecx
xor eax, eax
jmp 0x5070fd
xor eax, eax
xor ecx, ecx
jmp 0x507074
xor eax, eax
xor ecx, ecx
jmp 0x507002
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea eax, [0x5cd8e0]
mov dword [esp + 0x78], eax
lea ecx, [0x698e10]
mov dword [esp + 0x7c], ecx
lea ecx, [0x5d8440]
mov dword [esp], ecx
lea ecx, [0x79e5dc]
mov dword [esp + 4], ecx
call fcn.0040a880
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
lea eax, [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.004943b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
lea eax, [0x5cd8e0]
mov dword [esp], eax
lea eax, [esp + 0x58]
mov dword [esp + 4], eax
call fcn.0040a970
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004251b0
ud2
call fcn.00446b60
jmp fcn.00506f80