Function at 0x509760
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov dword [ebp - 0x24], 0
cmp dword [ebp + 8], 0
jne 0x50977d
xor eax, eax
jmp 0x509be7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x509798
xor eax, eax
jmp 0x509be7
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp dword [edx], 0x4550
je 0x5097b6
xor eax, eax
jmp 0x509be7
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x20b
jne 0x5097f4
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x88]
add edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + ecx + 0x8c]
mov dword [ebp - 0x60], eax
jmp 0x50981b
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + edx + 0x78]
add ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x7c]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x1c], 0
jmp 0x509851
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ecx + 0x14]
jae 0x509be4
mov eax, 0xffff
mov word [ebp - 0xc], ax
mov dword [ebp - 0x58], 0
cmp dword [ebp + 0xc], 0xffff
ja 0x509883
mov cx, word [ebp - 0x1c]
mov word [ebp - 0xc], cx
jmp 0x5098bd
cmp dword [ebp + 0xc], 0xffff
jbe 0x5098b6
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [edx + 0x18]
jae 0x5098b6
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x68]
mov ax, word [edx + ecx*2]
mov word [ebp - 0xc], ax
jmp 0x5098bd
xor eax, eax
jmp 0x509be7
cmp dword [ebp + 0xc], 0xffff
ja 0x5098d8
movzx ecx, word [ebp + 0xc]
movzx edx, word [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add edx, dword [eax + 0x10]
cmp ecx, edx
je 0x509946
cmp dword [ebp + 0xc], 0xffff
jbe 0x509bdf
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov cl, byte [eax]
mov byte [ebp - 0x15], cl
mov edx, dword [ebp - 0x44]
cmp cl, byte [edx]
jne 0x50992e
cmp byte [ebp - 0x15], 0
je 0x509925
mov eax, dword [ebp - 0x4c]
mov cl, byte [eax + 1]
mov byte [ebp - 0x11], cl
mov edx, dword [ebp - 0x44]
cmp cl, byte [edx + 1]
jne 0x50992e
add dword [ebp - 0x4c], 2
add dword [ebp - 0x44], 2
cmp byte [ebp - 0x11], 0
jne 0x5098f1
mov dword [ebp - 0x5c], 0
jmp 0x509936
sbb eax, eax
or eax, 1
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x6c], 0
jne 0x509bdf
movzx edx, word [ebp - 0xc]
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x10]
jb 0x509bdd
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x60]
cmp dword [ebp - 0x24], eax
ja 0x509bdd
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x20], 0
push 0x100
push 0
lea ecx, [ebp - 0x198]
push ecx
call fcn.00541ec0
add esp, 0xc
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 0x24]
push edx
call fcn.00554ec1
add esp, 4
mov dword [ebp - 0x38], eax
xor eax, eax
mov byte [ebp - 0x4f], al
mov byte [ebp - 6], 0x3e
mov byte [ebp - 5], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x3c], 0
jmp 0x5099ce
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 1
jae 0x5099ff
lea edx, [ebp - 5]
mov dword [ebp - 0x74], edx
movsx eax, byte [ebp - 6]
mov ecx, dword [ebp - 0x74]
add ecx, dword [ebp - 0x3c]
movsx edx, byte [ecx]
xor edx, eax
mov byte [ebp - 0x12], dl
lea eax, [ebp - 5]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
add ecx, dword [ebp - 0x3c]
mov dl, byte [ebp - 0x12]
mov byte [ecx], dl
jmp 0x5099c5
lea eax, [ebp - 5]
mov dword [ebp - 0x7c], eax
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 0x7c]
mov byte [edx + ecx], 0
lea eax, [ebp - 5]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.005419f0
add esp, 8
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov byte [edx], 0
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x198]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
mov byte [ebp - 0x4d], al
mov byte [ebp - 0x2a], 0xf
mov byte [ebp - 0x29], 0x21
mov byte [ebp - 0x28], 0x6b
mov byte [ebp - 0x27], 0x63
mov byte [ebp - 0x26], 0x63
mov byte [ebp - 0x25], 0
mov dword [ebp - 0x40], 0
jmp 0x509a76
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 4
jae 0x509aad
lea edx, [ebp - 0x29]
mov dword [ebp - 0x80], edx
movsx eax, byte [ebp - 0x2a]
mov ecx, dword [ebp - 0x80]
add ecx, dword [ebp - 0x40]
movsx edx, byte [ecx]
xor edx, eax
mov byte [ebp - 0x13], dl
lea eax, [ebp - 0x29]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
add ecx, dword [ebp - 0x40]
mov dl, byte [ebp - 0x13]
mov byte [ecx], dl
jmp 0x509a6d
lea eax, [ebp - 0x29]
mov dword [ebp - 0x88], eax
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 0x88]
mov byte [edx + ecx], 0
lea eax, [ebp - 0x29]
push eax
lea ecx, [ebp - 0x198]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x198]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x509b02
mov eax, dword [ebp - 0x38]
push eax
call fcn.0054f16e
add esp, 4
xor eax, eax
jmp 0x509be7
xor ecx, ecx
mov byte [ebp - 0x4e], cl
mov byte [ebp - 3], 0x37
mov byte [ebp - 2], 0x14
mov byte [ebp - 1], 0
mov dword [ebp - 0x34], 0
jmp 0x509b25
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 1
jae 0x509b62
lea eax, [ebp - 2]
mov dword [ebp - 0x8c], eax
movsx ecx, byte [ebp - 3]
mov edx, dword [ebp - 0x8c]
add edx, dword [ebp - 0x34]
movsx eax, byte [edx]
xor eax, ecx
mov byte [ebp - 0x14], al
lea ecx, [ebp - 2]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
add edx, dword [ebp - 0x34]
mov al, byte [ebp - 0x14]
mov byte [edx], al
jmp 0x509b1c
lea ecx, [ebp - 2]
mov dword [ebp - 0x94], ecx
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 0x94]
mov byte [eax + edx], 0
lea ecx, [ebp - 2]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.005419f0
add esp, 8
test eax, eax
jne 0x509ba6
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00509760
add esp, 8
mov dword [ebp - 0x24], eax
jmp 0x509bd1
mov edx, dword [ebp - 0x20]
add edx, 1
push edx
call fcn.00555b31
add esp, 4
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00509760
add esp, 8
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x38]
push edx
call fcn.0054f16e
add esp, 4
jmp 0x509be4
jmp 0x509848
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret