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

Disassembly:
push 0x28
mov eax, 0x4f41bf
call 0x5bf387
xor esi, esi
cmp dword [0x53c320], esi
jne 0x505c8a
mov edi, dword [fcn.004f65a8]
push esi
push dword [ebx + 0x14]
call edi
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0xac]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
call fcn.00507036
push dword [eax]
mov eax, ebx
push dword [0x53c914]
call fcn.005020ac
push dword [ebp + 8]
push dword [ebp - 0x10]
call edi
cmp dword [ebp + 8], esi
mov edi, eax
mov dword [ebp - 0x10], edi
je 0x505c42
cmp dword [ebp + 8], 3
je 0x505c42
lea eax, [ebp - 0x24]
push eax
call dword [fcn.004f6590]
cmp dword [ebp + 8], 1
je 0x5057d9
cmp dword [ebp + 8], 4
jne 0x50585b
push esi
mov edi, 0x8001
push edi
push dword [ebp - 0x10]
call dword [fcn.004f6594]
cmp dword [0x53c2bc], esi
je 0x505804
cmp eax, 0xffffffff
je 0x505851
push esi
push edi
push dword [ebp - 0x10]
mov eax, ebx
call fcn.00506bca
jmp 0x505851
cmp eax, 0xffffffff
jne 0x505837
lea eax, [ebp - 0x18]
push 0x295f
push eax
call fcn.005019e4
pop ecx
pop ecx
push dword [eax]
push edi
push 0x400
push 1
push dword [ebp - 0x10]
call dword [fcn.004f65c8]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004f7bea
xor eax, eax
cmp dword [ebx + 0x78], 1
setne al
or eax, 0x400
push eax
push 1
push dword [ebp - 0x10]
call dword [fcn.004f65c0]
cmp dword [ebp + 8], 4
je 0x505c24
cmp dword [ebp + 8], 2
je 0x505c24
mov eax, dword [0x53acf4]
mov ecx, 0x53acf4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
cmp dword [ebx + 0x1c], esi
jne 0x5058c2
cmp dword [ebx + 4], esi
je 0x5058c2
lea eax, [ebp - 0x18]
push 0x2843
push eax
call fcn.005019e4
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004fb6eb
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004f7bea
cmp dword [ebx + 0x1c], esi
jne 0x505908
cmp dword [ebx + 0x28], esi
jne 0x505908
cmp dword [ebx + 0x98], esi
jmp 0x505902
lea eax, [ebp - 0x18]
push 0x2842
push eax
call fcn.005019e4
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004fb6eb
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004f7bea
cmp dword [ebx + 0x1c], esi
jne 0x505908
cmp dword [ebx + 0x28], esi
jne 0x505908
cmp dword [ebx + 0x98], esi
je 0x505908
cmp dword [ebx + 0x34], esi
je 0x505908
xor eax, eax
jmp 0x50590b
xor eax, eax
inc eax
push eax
mov edi, 0x804d
push edi
push dword [ebp - 0x10]
call dword [fcn.004f65c0]
push esi
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
call fcn.00528cbe
cmp dword [ebx + 0x78], 2
lea eax, [ebp - 0x18]
jge 0x505944
push 0x2740
push eax
call fcn.005019e4
pop ecx
pop ecx
mov byte [ebp - 4], 3
jmp 0x505955
push 0x2741
push eax
call fcn.005019e4
pop ecx
pop ecx
mov byte [ebp - 4], 4
lea edi, [ebp - 0x14]
call fcn.004fb6eb
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004f7bea
cmp dword [ebx + 0x60], esi
je 0x505982
push esi
push dword [ebp - 0x14]
push 0x8077
push dword [ebp - 0x10]
call fcn.00528cbe
xor eax, eax
cmp dword [ebx + 0x28], esi
setne al
push eax
push 0x8077
push dword [ebp - 0x10]
call dword [fcn.004f65c0]
push dword [ebp - 0x10]
mov esi, ebx
call fcn.0050658c
xor edi, edi
cmp dword [ebp + 8], 1
jne 0x5059f1
mov esi, 0x400
push esi
push edi
push dword [ebp - 0x10]
mov eax, ebx
call fcn.00506bca
cmp dword [0x53c31c], edi
jle 0x505a11
lea eax, [ebp + 8]
push 0x189
push eax
call fcn.005019e4
pop ecx
pop ecx
push dword [eax]
push 0x804c
push esi
push edi
push dword [ebp - 0x10]
call dword [fcn.004f65c8]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004f7bea
mov esi, dword [fcn.004f65c0]
cmp dword [ebx + 0x20], edi
je 0x505b90
xor eax, eax
cmp dword [0x53c3dc], edi
sete al
push eax
jmp 0x505b92
cmp dword [ebx + 0x84], edi
jne 0x505a25
call dword [0x4f6598]
mov dword [ebx + 0x84], eax
push dword [ebx + 0x84]
call dword [fcn.004f657c]
cmp eax, edi
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], eax
jl 0x505a51
push esi
push dword [ebp - 0x18]
mov eax, ebx
push dword [ebx + 0x84]
call fcn.00506bca
dec dword [ebp - 0x18]
jns 0x505a3b
mov esi, 0x53c840
push esi
call dword [fcn.004f62dc]
push dword [0x53c31c]
push esi
call fcn.00516e1d
cmp eax, edi
je 0x505b28
or dword [ebp - 0x18], 0xffffffff
mov dword [ebp + 8], edi
lea edi, [eax + 0x64]
mov eax, edi
xor esi, esi
call fcn.0050b3c5
test eax, eax
jbe 0x505b26
call fcn.0050701f
mov eax, dword [eax]
cmp dword [eax + 0x38], 1
je 0x505aa6
call fcn.0050701f
mov eax, dword [eax]
cmp dword [eax + 0x38], 2
jne 0x505aed
inc dword [ebp + 8]
call fcn.0050701f
mov eax, dword [eax]
add eax, 0x70
push dword [eax]
lea eax, [esi + 0x85fc]
push eax
push 0
push dword [ebx + 0x84]
call dword [fcn.004f6584]
mov eax, dword [0x53c1d0]
cmp eax, 1
je 0x505aed
test eax, eax
je 0x505aed
call fcn.0050701f
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
cmp eax, dword [0x53c9f8]
jne 0x505aed
mov dword [ebp - 0x18], esi
mov eax, edi
inc esi
call fcn.0050b3c5
cmp esi, eax
jb 0x505a8c
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x505b26
add eax, 0x85fc
push 0
push eax
mov eax, edi
call fcn.0050b3c5
mov ecx, eax
mov eax, 0x85fc
add ecx, eax
push ecx
push eax
push dword [ebx + 0x84]
call dword [fcn.004f65b4]
xor edi, edi
push 0x53c840
call dword [fcn.004f62cc]
lea eax, [ebp - 0x1c]
push 0x189
push eax
call fcn.005019e4
pop ecx
pop ecx
push dword [eax]
push dword [ebx + 0x84]
push 0x410
push edi
push dword [ebp - 0x10]
call dword [fcn.004f65c8]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004f7bea
cmp dword [ebp + 8], edi
mov esi, dword [fcn.004f65c0]
jne 0x5059f7
push 1
push 0x8077
push dword [ebp - 0x10]
call esi
push 0x401
push edi
push dword [ebp - 0x10]
call esi
jmp 0x5059f7
push 1
push 0x80cf
push dword [ebp - 0x10]
call esi
xor eax, eax
cmp dword [0x53c3dc], edi
sete al
push eax
push 0x8051
push dword [ebp - 0x10]
call esi
push 1
push 0x804b
push dword [ebp - 0x10]
call esi
xor eax, eax
cmp dword [ebx + 0x90], edi
sete al
push eax
push 0x8052
push dword [ebp - 0x10]
call esi
xor eax, eax
cmp dword [ebx + 0x94], edi
sete al
push eax
push 0x8053
push dword [ebp - 0x10]
call esi
xor eax, eax
cmp dword [ebx + 0x24], 1
setne al
push eax
push 0x8054
push dword [ebp - 0x10]
call esi
cmp dword [ebx + 0x24], 1
jne 0x505c09
cmp dword [ebx + 0x28], edi
je 0x505c0c
xor edi, edi
inc edi
push edi
push 0x804e
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004f7bea
xor esi, esi
mov eax, dword [ebp - 0x10]
push esi
push dword [ebx + 0x10]
mov dword [ebx + 0x9c], eax
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push esi
push eax
call dword [fcn.004f658c]
jmp 0x505c8a
lea eax, [ebp - 0x34]
push eax
push dword [ebx + 0x10]
call dword [0x4f6504]
cmp dword [ebp + 8], esi
mov dword [ebx + 0x9c], edi
jne 0x505c67
push esi
push dword [ebx + 0x10]
push esi
push dword [ebp - 0x30]
push dword [ebp - 0x34]
jmp 0x505c7c
lea eax, [ebp - 0x24]
push eax
call dword [fcn.004f6590]
push esi
push dword [ebx + 0x10]
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push esi
push edi
call dword [fcn.004f658c]
mov dword [ebx + 0x9c], esi
call 0x5bf426
ret 4