Function at 0x507920
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 0x507d77
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.00507520
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 0x5079bf
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 0x507a35
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 0x507a20
mov ecx, dword [eax + 0x48]
mov dword [esp + 0x20], ecx
cmp edx, 0
je 0x507a6d
cmp ecx, edx
je 0x507a6d
add esi, 4
inc edi
mov ebp, dword [esp + 0x24]
cmp edi, ebp
jl 0x507a03
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 0x507d70
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.00455920
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 0x507b1b
mov ebx, dword [esp + 0xac]
or ebx, 1
mov dword [esp + 0xac], ebx
mov ebp, dword [ecx + 0x40]
cmp ebp, 0x18
ja 0x507d29
cmp ebp, 9
ja 0x507cef
cmp ebp, 6
jne 0x507ce1
mov ebx, dword [esp + 0xac]
or ebx, 0x12
mov dword [esp + 0xac], ebx
mov ebp, dword [ecx + 0x3c]
cmp ebp, 0xffffffff
jne 0x507cd2
mov eax, 0xffffffff
mov dword [esp + 0x94], eax
mov ebp, dword [ecx + 0x34]
cmp ebp, 0
jbe 0x507c27
mov dword [esp], 0x5bd4c0
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.0043b640
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 0x507cca
add ebp, 0x2c
cmp ebp, 0
je 0x507cc2
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 0x507c0f
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.004529b0
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, ebx
inc ebx
cmp ebx, edx
ja 0x507c86
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, 0x5d7180
mov dword [esp], ebp
call fcn.0040e840
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0x90]
cmp eax, edx
je 0x507a35
jmp 0x507a29
mov dword [esp], 0x5d7180
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call fcn.0043b7e0
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 0x507c3e
mov dword [ebp], eax
jmp 0x507bce
mov dword [ebp], eax
jmp 0x507bc2
mov ebp, dword [ecx + 0x3c]
mov dword [esp + 0x94], ebp
jmp 0x507b62
cmp ebp, 9
je 0x507b39
jmp 0x507b4a
cmp ebp, 0x17
jne 0x507d0a
mov ebx, dword [esp + 0xac]
or ebx, 0x18
mov dword [esp + 0xac], ebx
jmp 0x507b4a
cmp ebp, 0x18
jne 0x507b4a
mov ebx, dword [esp + 0xac]
or ebx, 0x14
mov dword [esp + 0xac], ebx
jmp 0x507b4a
cmp ebp, 0x47
ja 0x507d57
cmp ebp, 0x25
jne 0x507d49
mov ebx, dword [esp + 0xac]
or ebx, 0x1a
mov dword [esp + 0xac], ebx
jmp 0x507b4a
cmp ebp, 0x47
je 0x507b39
jmp 0x507b4a
cmp ebp, 0x83
je 0x507cf4
cmp ebp, 0x90
je 0x507b39
jmp 0x507b4a
mov dword [eax], eax
jmp 0x507a7d
call fcn.004501c0
jmp fcn.00507920