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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x30]
cmp eax, dword [ecx + 8]
jbe 0x507b17
sub esp, 0xb0
xor ebx, ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
xor ebx, ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
call fcn.005072c0
mov edx, dword [esp + 0xb4]
mov edi, dword [esp]
mov esi, dword [esp + 4]
mov ebp, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
cmp eax, 0
je 0x50775f
xor ebx, ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ecx
add esp, 0xb0
ret
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x84], edi
mov ecx, edi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x80], ebp
xor edi, edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x78], ecx
mov esi, ecx
mov ebp, dword [esp + 0x24]
cmp edi, ebp
jge 0x5077d5
mov dword [esp + 0x2c], esi
mov eax, dword [esi]
mov dword [esp + 0x28], edi
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], ecx
cmp ecx, 0
jne 0x5077c0
mov ecx, dword [eax + 0x48]
mov dword [esp + 0x20], ecx
cmp edx, 0
je 0x50780d
cmp ecx, edx
je 0x50780d
add esi, 4
inc edi
mov ebp, dword [esp + 0x24]
cmp edi, ebp
jl 0x5077a3
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xb8], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0xbc], ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0xc0], ebx
xor ebx, ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
add esp, 0xb0
ret
mov dword [esp + 0x30], eax
mov eax, dword [eax + 0x28]
cmp eax, 0
je 0x507b10
mov edx, 0x2710
mov ecx, 0x2710
mov dword [esp + 0x6c], eax
mov dword [esp], eax
mov dword [esp + 0x70], edx
mov dword [esp + 4], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 8], ecx
call fcn.004556c0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], eax
mov ebp, dword [ecx + 0x44]
cmp ebp, 1
jne 0x5078bb
mov ebx, dword [esp + 0xac]
or ebx, 1
mov dword [esp + 0xac], ebx
mov ebp, dword [ecx + 0x40]
cmp ebp, 0x18
ja 0x507ac9
cmp ebp, 9
ja 0x507a8f
cmp ebp, 6
jne 0x507a81
mov ebx, dword [esp + 0xac]
or ebx, 0x12
mov dword [esp + 0xac], ebx
mov ebp, dword [ecx + 0x3c]
cmp ebp, 0xffffffff
jne 0x507a72
mov eax, 0xffffffff
mov dword [esp + 0x94], eax
mov ebp, dword [ecx + 0x34]
cmp ebp, 0
jbe 0x5079c7
mov dword [esp], 0x5bd220
mov ebp, dword [ecx + 0x34]
xor edx, edx
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov ebp, dword [ecx + 0x34]
xor ecx, ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
call fcn.0043b3e0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov ebp, dword [esp + 0x30]
cmp ebp, 0
je 0x507a6a
add ebp, 0x2c
cmp ebp, 0
je 0x507a62
mov edx, 8
mov ecx, 8
mov edi, dword [esp + 0xa0]
mov eax, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x4c], edx
cmp edx, eax
jge 0x5079af
mov eax, edx
mov dword [esp + 0x60], edi
mov dword [esp], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
call fcn.00452750
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, ebx
inc ebx
cmp ebx, edx
ja 0x507a26
mov dword [esp + 0x40], ebx
mov ebx, ecx
mov ebp, eax
imul ebp, ebp, 0x20
add ebx, ebp
lea ebp, [esp + 0x90]
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov ebp, 0x5d6ee0
mov dword [esp], ebp
call fcn.0040e5e0
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0x90]
cmp eax, edx
je 0x5077d5
jmp 0x5077c9
mov dword [esp], 0x5d6ee0
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call fcn.0043b580
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, ebx
inc ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], ecx
jmp 0x5079de
mov dword [ebp], eax
jmp 0x50796e
mov dword [ebp], eax
jmp 0x507962
mov ebp, dword [ecx + 0x3c]
mov dword [esp + 0x94], ebp
jmp 0x507902
cmp ebp, 9
je 0x5078d9
jmp 0x5078ea
cmp ebp, 0x17
jne 0x507aaa
mov ebx, dword [esp + 0xac]
or ebx, 0x18
mov dword [esp + 0xac], ebx
jmp 0x5078ea
cmp ebp, 0x18
jne 0x5078ea
mov ebx, dword [esp + 0xac]
or ebx, 0x14
mov dword [esp + 0xac], ebx
jmp 0x5078ea
cmp ebp, 0x47
ja 0x507af7
cmp ebp, 0x25
jne 0x507ae9
mov ebx, dword [esp + 0xac]
or ebx, 0x1a
mov dword [esp + 0xac], ebx
jmp 0x5078ea
cmp ebp, 0x47
je 0x5078d9
jmp 0x5078ea
cmp ebp, 0x83
je 0x507a94
cmp ebp, 0x90
je 0x5078d9
jmp 0x5078ea
mov dword [eax], eax
jmp 0x50781d
call fcn.0044ff60
jmp fcn.005076c0