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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov edi, dword [esp + 0x78]
mov dword [esp + 8], ecx
mov esi, edx
mov dword [esp + 4], edx
mov ebp, dword [edi + 0x10]
mov ecx, ebp
sub ecx, 1
mov dword [esp + 0x18], ecx
jb 0x53020e
cmp dword [edi + 0xc], ecx
jbe 0x53020e
mov eax, dword [edi + 8]
mov edx, dword [esi + 0x260]
mov bl, byte [eax + ecx]
mov ecx, dword [esi + 0x258]
or edx, dword [esi + 0x270]
mov eax, dword [esi + 0x264]
or ecx, dword [esi + 0x268]
or eax, dword [esi + 0x274]
or ecx, edx
mov edx, dword [esi + 0x25c]
or edx, dword [esi + 0x26c]
or edx, eax
movzx eax, bl
or edx, ecx
mov edx, dword [edi]
mov edi, dword [edi + 4]
je 0x5304e7
lea ecx, [esi + 0x258]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x34], ecx
mov ecx, ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], 1
mov dword [esp], edx
and bl, 7
and cl, 0x78
shr cl, 3
neg cl
movsx ecx, cl
mov edx, dword [esp + ecx + 0x58]
mov eax, dword [esp + ecx + 0x5c]
mov esi, ecx
mov dword [esp + 0x14], ecx
mov ecx, ebx
mov dword [esp + 0x10], edi
shld eax, edx, cl
shl edx, cl
not cl
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xc]
mov edi, dword [esp + esi + 0x54]
shr eax, 3
mov esi, edi
and eax, 0xfffffff0
shr esi, 1
shr esi, cl
mov ecx, dword [esp + 0x14]
or esi, edx
mov edx, dword [esp + ecx + 0x50]
mov ecx, ebx
mov ebx, dword [esp + 0x30]
shld edi, edx, cl
shl edx, cl
mov ecx, dword [esp + 0x34]
and esi, dword [ecx + eax + 8]
and edx, dword [ecx + eax]
and ebx, dword [ecx + eax + 0xc]
and edi, dword [ecx + eax + 4]
mov eax, dword [esp + 0xc]
or edx, esi
or edi, ebx
mov esi, dword [esp + 4]
or edi, edx
mov edi, dword [esp + 0x10]
mov edx, dword [esp]
je 0x5304e7
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 4
jmp 0x5303de
mov edx, dword [edi]
mov edi, dword [edi + 4]
mov bl, 2
mov eax, dword [esp + 0x74]
movzx ecx, bl
test edx, edx
je 0x53022c
cmp edx, 1
jne 0x5303c8
add ecx, 6
mov dword [esp], edx
mov edx, dword [eax + 0x88]
cmp edx, ecx
jbe 0x530724
mov eax, dword [eax + 0x80]
mov eax, dword [eax + ecx*4]
test eax, eax
js 0x530663
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 5
mov ecx, dword [esp + 0x78]
mov esi, dword [esp + 0x20]
mov ebx, dword [ecx + 0x14]
mov edx, dword [ecx + 0xc]
cmp ebp, ebx
jae 0x5303be
mov eax, dword [ecx + 8]
mov dword [esp + 0x18], ebx
mov ebx, ebp
mov dword [esp + 0x38], edx
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov eax, dword [esp + 4]
mov edi, dword [eax + 0x278]
mov eax, dword [eax + 0x27c]
and eax, 0x1f
cmp edx, ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x3c], eax
mov al, byte [ecx + 0x18]
cmova ebx, edx
mov byte [esp + 0x30], al
cmp ebx, ebp
je 0x530706
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edi, dword [esp + 0x74]
movzx eax, byte [eax + ebp]
movzx edx, byte [ecx + eax + 0x158]
mov ecx, esi
and ecx, 0x7ffffff
add ecx, edx
mov edx, dword [edi + 0x7c]
cmp edx, ecx
jbe 0x5306ff
mov edx, dword [edi + 0x74]
mov edx, dword [edx + ecx*4]
test edx, edx
js 0x53038f
mov esi, edx
cmp edx, 0x7ffffff
jbe 0x53037f
bt esi, 0x1b
jb 0x53031a
bt esi, 0x1e
jb 0x5305f6
bt esi, 0x1d
jae 0x53037f
jmp 0x53062f
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], 0
cmp dword [eax + 0x150], 1
je 0x530369
mov eax, esi
mov ecx, dword [esp + 0x3c]
and eax, 0x7ffffff
shr eax, cl
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x94]
cmp edx, eax
jbe 0x53071b
mov edx, dword [ecx + 0x8c]
mov ecx, dword [edx + eax*8]
mov edx, dword [edx + eax*8 + 4]
push 0
call fcn.004fccd8
add esp, 4
mov dword [esp + 0xc], eax
cmp byte [esp + 0x30], 0
jne 0x530619
xor eax, eax
mov dword [esp + 0x14], ebp
inc eax
mov dword [esp + 0x10], eax
inc ebp
cmp dword [esp + 0x18], ebp
jne 0x5302af
jmp 0x530420
mov ecx, dword [esp + 4]
shl eax, 8
mov edx, esi
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x24]
push eax
call fcn.006560e0
add esp, 4
test eax, eax
je 0x5302f1
jmp 0x53056f
mov dword [esp + 0x10], 0
jmp 0x53042e
test byte [esi + 0x4d], 1
jne 0x5304f0
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 2
mov eax, dword [esp + 0x1c]
mov ecx, 2
lea edx, [eax - 3]
cmp edx, 2
cmovb ecx, edx
test ecx, ecx
je 0x53056f
mov edx, dword [esp + 0x20]
cmp ecx, 1
jne 0x53057e
test ebp, ebp
je 0x530738
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
mov byte [ecx + 1], dl
mov dword [ecx + 4], eax
jmp 0x53063f
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x38]
mov ebp, ebx
cmp ebx, edx
jae 0x530493
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 4]
mov edi, dword [esp + 0x74]
mov al, byte [eax + ebx]
mov byte [esp], al
movzx eax, al
movzx edx, byte [ecx + eax + 0x158]
mov ecx, esi
and ecx, 0x7ffffff
add ecx, edx
mov edx, dword [edi + 0x7c]
cmp edx, ecx
jbe 0x5306ff
mov edx, dword [edi + 0x74]
mov edx, dword [edx + ecx*4]
test edx, edx
js 0x530695
bt edx, 0x1b
jb 0x530519
bt edx, 0x1d
jae 0x5304cf
mov al, byte [esp]
lea ecx, [esp + 0x24]
mov byte [ecx + 1], al
mov dword [ecx + 4], ebx
jmp 0x53063f
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0x74]
mov edi, edx
mov ecx, esi
and ecx, 0x7ffffff
movzx eax, byte [eax + 0x257]
mov edx, dword [ebx + 0x7c]
lea ecx, [eax + ecx + 1]
cmp edx, ecx
jbe 0x53072b
mov edx, dword [ebx + 0x74]
mov edx, dword [edx + ecx*4]
test edx, edx
js 0x5306c8
bt edx, 0x1b
jb 0x530535
cmp dword [esp + 0x10], 0
je 0x530590
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
jmp 0x5305e6
mov bl, byte [esi + eax + 0x58]
jmp 0x530215
mov eax, dword [esi + 0x278]
mov dword [esp], edx
cmp dword [eax + 0x150], edi
mov eax, edi
jbe 0x530599
mov edi, eax
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*2 + 0xc]
mov eax, dword [esp + 0x74]
jmp 0x53022f
mov ecx, dword [esp + 4]
xor ebp, ebp
mov eax, dword [ecx + 0x278]
cmp dword [eax + 0x150], 1
jne 0x5305a7
mov edi, ebx
jmp 0x5305e6
mov ecx, dword [esp + 4]
xor ebp, ebp
mov eax, dword [ecx + 0x278]
cmp dword [eax + 0x150], 1
je 0x5305e6
mov eax, dword [esp + 0x74]
mov cl, byte [ecx + 0x27c]
and edx, 0x7ffffff
mov eax, dword [eax + 0x94]
shr edx, cl
cmp eax, edx
ja 0x5305c9
jmp 0x530732
lea ecx, [esp + 0x24]
mov dword [ecx + 4], ebp
mov byte [ecx], 1
jmp 0x530642
lea ecx, [esp + 0x24]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov byte [ecx], 3
jmp 0x530642
mov edi, dword [esp + 0x14]
xor eax, eax
inc eax
jmp 0x5305e8
mov ecx, esi
mov edi, eax
call fcn.004faa8e
jmp 0x530246
mov eax, dword [esp + 0x74]
mov cl, byte [ecx + 0x27c]
and edx, 0x7ffffff
mov eax, dword [eax + 0x94]
shr edx, cl
cmp eax, edx
jbe 0x530732
mov edi, ebx
mov eax, dword [esp + 0x74]
mov eax, dword [eax + 0x8c]
mov ecx, dword [eax + edx*8]
mov edx, dword [eax + edx*8 + 4]
push 0
call fcn.004fccd8
add esp, 4
mov ebp, eax
xor eax, eax
mov ecx, dword [esp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], ebp
mov dword [ecx + 8], edi
jmp 0x53065b
xor eax, eax
cmp dword [esp + 0x10], 0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
sete al
cmove edx, ebp
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x14]
mov dword [ecx + 8], edx
jmp 0x53065b
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [eax], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], ebp
jmp 0x53065b
mov eax, dword [esp]
lea ecx, [esp + 0x24]
mov al, byte [eax + ebp]
mov byte [ecx + 1], al
mov dword [ecx + 4], ebp
mov byte [ecx], 0
call fcn.004f8c4d
mov ecx, eax
call fcn.00500be9
mov ecx, dword [esp + 8]
mov dword [ecx + 4], eax
mov dword [ecx], 2
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x24]
mov dword [edx], esi
lea esi, [esp + 0x1c]
mov ecx, esi
mov dword [edx + 4], eax
movzx eax, bl
push eax
push edi
push dword [esp + 8]
call fcn.00656fb8
add esp, 0xc
cmp dword [esi], 5
jne 0x5303de
jmp 0x53025a
mov edx, dword [esp + 4]
lea ecx, [esp + 0x24]
shl eax, 8
mov dword [ecx], edx
mov edx, dword [esp + 0x74]
mov dword [ecx + 4], edx
mov edx, esi
push eax
call fcn.006560e0
add esp, 4
test eax, eax
je 0x530471
lea ecx, [esp + 0x24]
mov dword [ecx + 4], ebx
jmp 0x530576
mov edx, dword [esp + 4]
lea ecx, [esp + 0x24]
inc eax
shl eax, 0x10
or eax, 1
mov dword [ecx], edx
mov edx, dword [esp + 0x74]
mov dword [ecx + 4], edx
mov edx, esi
push eax
call fcn.006560e0
add esp, 4
test eax, eax
je 0x5304c9
lea ecx, [esp + 0x24]
mov dword [ecx + 4], edi
jmp 0x530576
push 0x7680c0
jmp 0x530711
mov edx, dword [esp + 0x38]
mov ecx, ebx
push 0x768ad0
call fcn.006521f0
add esp, 4
ud2
mov ecx, eax
push 0x7683fc
jmp 0x530711
push 0x7683ec
jmp 0x530711
push 0x7680d0
jmp 0x530711
mov ecx, edx
mov edx, eax
jmp 0x53071d
mov ecx, str.no_quit_in_start_without_look_behindX
mov edx, 0x24
push 0x768104
call fcn.00652640
jmp 0x530716