Function at 0x1001904e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
jne 0x100190bd
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0x4550
je 0x100190c4
xor eax, eax
jmp 0x100192af
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x78]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x7c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 8], edx
cmp dword [ebp - 4], 0
je 0x100190f7
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
je 0x100190f7
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x14], 0
jne 0x100190fe
xor eax, eax
jmp 0x100192af
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
sub ecx, dword [eax + 0x10]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x20]
jb 0x100192ac
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 4]
cmp dword [ebp - 0x14], eax
jae 0x100192ac
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x238], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x237]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x134], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x133]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x2c], 0
push 0x103
mov edx, dword [ebp - 0x23c]
push edx
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
push 0x2e
lea ecx, [ebp - 0x238]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x100191d3
xor eax, eax
jmp 0x100192af
push 0x103
mov edx, dword [ebp - 0x2c]
add edx, 1
push edx
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 1], 0
push 0x10101d74
call sub.MSVCRT.dll_strlen
add esp, 4
mov esi, eax
push 0x10101d78
call sub.MSVCRT.dll_strlen
add esp, 4
mov edx, 0x104
sub edx, eax
cmp esi, edx
jae 0x10019232
push 0x10101d7c
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x240], eax
jmp 0x1001924c
push 0x10101d80
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, 0x104
sub ecx, eax
mov dword [ebp - 0x240], ecx
mov edx, dword [ebp - 0x240]
push edx
push 0x10101d84
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
lea ecx, [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x1001928e
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x10019298
xor eax, eax
jmp 0x100192af
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret