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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500b90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], esi
mov ebx, ecx
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x40], ebx
je 0x5006f6
mov dword [ebp - 0x44], 1
mov dword [ebx], 0x835b90
add ebx, 0x90
mov ecx, ebx
call fcn.005d3e40
mov dword [ebp - 4], 0
mov dword [ebx], 0x893e8c
xor eax, eax
mov byte [ebx + 0x54], al
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], eax
jmp 0x5006fd
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
mov dword [edx + ecx], 0x893e84
mov ebx, dword [ecx]
mov esi, dword [ebx + 4]
add ecx, esi
test byte [ecx + 0x18], 1
mov dword [ebp - 0x50], ecx
mov dword [ecx + 0x58], 0
mov dword [ecx + 0xc], 1
jne 0x500b7f
lea ebx, [ebp - 0x3c]
mov ecx, ebx
call fcn.005d4e70
mov dword [ebp - 4], 2
push ebx
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
push eax
call fcn.005d3f50
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + 0x58]
test esi, esi
je 0x50078b
push ebx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
add esi, 0x1c
lea ecx, [ebp - 0x48]
push esi
call fcn.005d4e50
push ebx
mov ecx, esi
call fcn.005d4c70
lea ecx, [ebp - 0x48]
call fcn.005d4770
push 0x839918
mov ecx, ebx
call fcn.005d4710
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x50], eax
mov dword [ebp - 4], 3
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.005d4770
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.005d4770
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x50]
xor ebx, ebx
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x5c], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0xc], 1
mov dword [eax + 8], 0x1008
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x20], 6
mov dword [eax + 0x24], ebx
mov byte [eax + 0x54], 0x20
mov edx, dword [ecx]
mov edi, dword [edx + 4]
mov dword [edi + ecx], 0x893e7c
lea eax, [ecx + 8]
add ecx, 0x24
mov dword [ebp - 0x24], eax
mov dword [eax], 0x893e40
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
call fcn.005d4e70
mov dword [ebp - 4], 7
mov ecx, dword [ebp - 0x24]
mov dword [ecx], 0x893e04
add ecx, 0x20
call fcn.005d6590
mov eax, dword [ebp - 0x24]
mov esi, 1
lea ecx, [ebp - 0x28]
mov dword [eax + 0x30], ebx
mov word [eax + 0x34], bx
mov byte [eax + 0x36], bl
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov dword [eax + 0x44], ebx
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov dword [eax + 0x54], ebx
mov dword [eax + 0x58], ebx
mov dword [eax + 0x60], ebx
mov dword [eax + 0x64], ebx
mov dword [eax + 0x68], ebx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ebx
mov dword [eax + 0x74], ebx
mov dword [eax + 0x78], esi
mov dword [eax + 0x7c], esi
call fcn.005d4e70
mov dword [ebp - 4], 8
push 0x839910
lea ecx, [ebp - 0x28]
call fcn.005d4740
test eax, eax
jne 0x5008c3
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x74], ebx
mov dword [eax + 0x7c], esi
mov dword [eax + 0x78], esi
mov byte [eax + 0x31], bl
mov byte [eax + 0x30], bl
jmp 0x500923
push 0x839910
lea ecx, [ebp - 0x28]
call fcn.005d4710
mov edx, dword [ebp - 0x24]
mov ecx, eax
mov dword [edx + 0x74], eax
mov edi, dword [eax]
call dword [edi + 0x10]
mov dword [ebp - 0x50], eax
test eax, eax
mov dword [ebp - 0x4c], 1
jg 0x5008f0
lea eax, [ebp - 0x4c]
jmp 0x5008f3
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, dword [edx + 0x74]
mov dword [edx + 0x78], eax
mov edi, dword [ecx]
call dword [edi + 0x1c]
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 0x74]
mov dword [edx + 0x7c], eax
xor eax, eax
cmp dword [ebp - 0x50], 0
setg al
mov byte [edx + 0x30], al
mov edi, dword [ecx]
call dword [edi + 0x14]
mov edx, dword [ebp - 0x24]
mov byte [edx + 0x31], al
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x28]
call fcn.005d4770
mov dword [ebp - 4], 9
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
add edx, 8
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ecx + 0x58], edx
je 0x50095a
mov dword [ecx + 0xc], 0
jmp 0x500963
mov dword [ecx + 0xc], 1
mov ebx, esi
test dword [ecx + 0x18], ebx
jne 0x500b75
lea ebx, [ebp - 0x24]
mov ecx, ebx
call fcn.005d4e70
mov dword [ebp - 4], 0xa
push ebx
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push eax
call fcn.005d3f50
mov dword [ebp - 4], 0xc
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 0x58]
test esi, esi
je 0x5009c2
push ebx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
add esi, 0x1c
lea ecx, [ebp - 0x4c]
push esi
call fcn.005d4e50
push ebx
mov ecx, esi
call fcn.005d4c70
lea ecx, [ebp - 0x4c]
call fcn.005d4770
push 0x839918
mov ecx, ebx
call fcn.005d4710
mov dword [ebp - 4], 0xb
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x50], eax
mov dword [ebp - 4], 0xb
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x20]
call fcn.005d4770
mov dword [ebp - 4], 9
lea ecx, [ebp - 0x24]
call fcn.005d4770
mov edx, dword [ebp - 0x18]
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x5c], eax
mov esi, dword [ebp + 0xc]
or esi, 0x10
mov dword [edx + 0x18], eax
xor ebx, ebx
cmp dword [ebp - 0x14], 0
sete bl
mov dword [edx + 0xc], ebx
lea ebx, [ecx + 8]
add ecx, 0x28
mov dword [edx + 8], 0x1008
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x20], 6
mov dword [edx + 0x24], eax
mov byte [edx + 0x54], 0x20
push esi
push dword [ebp + 8]
call fcn.005d62f0
movzx eax, al
test eax, eax
je 0x500a5a
test ebx, ebx
je 0x500a5a
mov eax, dword [ebp - 0x40]
jmp 0x500a84
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add ecx, eax
mov edx, dword [ecx + 0xc]
or edx, 4
cmp dword [ecx + 0x58], 0
je 0x500a75
mov dword [ecx + 0xc], edx
jmp 0x500a7b
or edx, 1
mov dword [ecx + 0xc], edx
test dword [ecx + 0x18], edx
jne 0x500b68
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
call fcn.005d4510
mov eax, dword [ebp - 0x40]
jmp 0x500a84
call fcn.005d4510
jmp 0x50096c
call fcn.005d4510
jmp 0x500735