Function at 0x10003ee0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x10053694], 0
push ebx
push esi
push edi
jne 0x10003ef7
call fcn.10003d24
cmp dword [ebp + 8], 0
jne 0x10003f04
xor eax, eax
jmp 0x1000449c
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
push 0x40
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.DLL_IsBadReadPtr
dec eax
je 0x10003f22
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
je 0x10003f29
xor eax, eax
jmp 0x1000449c
mov edx, dword [ebp - 8]
mov ebx, dword [edx + 0x3c]
add ebx, dword [ebp - 8]
push 0xf8
push ebx
call sub.KERNEL32.DLL_IsBadReadPtr
dec eax
je 0x10003f48
cmp dword [ebx], 0x4550
je 0x10003f4f
xor eax, eax
jmp 0x1000449c
cmp word [ebx + 0x14], 0xe0
jne 0x10003f5f
cmp word [ebx + 0x18], 0x10b
je 0x10003f69
mov eax, 4
jmp 0x1000449c
cmp word [ebx + 6], 1
jae 0x10003f77
xor eax, eax
jmp 0x1000449c
mov edx, dword [ebp - 8]
mov ebx, dword [edx + 0x3c]
add ebx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov edx, dword [ebx + 0x80]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
je 0x10003fa0
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
jmp 0x10003faa
mov eax, 8
jmp 0x1000449c
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
jne 0x10003fc0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 0
je 0x10004497
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0xc]
add ebx, dword [ebp - 4]
xor eax, eax
mov dword [ebp - 0x10], eax
push ebx
call sub.KERNEL32.DLL_lstrlenA
mov esi, eax
mov edi, ebx
push esi
push str.Kernel32.dll
push edi
call fcn.10005be0
add esp, 0xc
test eax, eax
jne 0x10003ff2
mov dword [ebp - 0x10], 1
push ebx
call sub.KERNEL32.DLL_lstrlenA
mov esi, eax
mov edi, ebx
push esi
push str.User32.dll
push edi
call fcn.10005be0
add esp, 0xc
test eax, eax
jne 0x10004023
mov dword [ebp - 0x10], 2
jmp 0x10004023
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
add edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ecx + 0x10]
add ebx, dword [ebp - 8]
jmp 0x10004481
mov edx, 0x80000000
test eax, edx
jne 0x10004472
jmp 0x100042a4
cmp dword [ebp - 0x10], 1
jne 0x10004472
mov edx, dword [ebx]
cmp edx, dword [0x10053688]
jne 0x100042c0
mov ecx, dword [0x100531d0]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x1005368c]
jne 0x100042d2
mov edx, dword [0x100531d4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x10053630]
jne 0x100042e3
mov eax, dword [0x100531c8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x10053634]
jne 0x100042f5
mov ecx, dword [0x100531cc]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x10053638]
jne 0x10004307
mov edx, dword [0x100531dc]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x10053664]
jne 0x10004318
mov eax, dword [0x100531f0]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x10053668]
jne 0x1000432a
mov ecx, dword [0x100531ec]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x10053680]
jne 0x1000433c
mov edx, dword [0x1005321c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x10053684]
jne 0x1000434d
mov eax, dword [0x10053220]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x1005367c]
jne 0x1000435f
mov ecx, dword [0x10053204]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x10004472
mov eax, dword [ebx]
cmp eax, dword [0x1005363c]
jne 0x1000437b
mov edx, dword [0x100531e0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x10053640]
jne 0x1000438c
mov eax, dword [0x100531e8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x10053644]
jne 0x1000439e
mov ecx, dword [0x100531e4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x10053648]
jne 0x100043b0
mov edx, dword [0x100531ac]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x1005364c]
jne 0x100043c1
mov eax, dword [0x100531c4]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x10053650]
jne 0x100043d3
mov ecx, dword [0x100531c0]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x10053654]
jne 0x100043e5
mov edx, dword [0x100531b0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x10053658]
jne 0x100043f6
mov eax, dword [0x100531b4]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x1005365c]
jne 0x10004408
mov ecx, dword [0x100531bc]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x10053660]
jne 0x1000441a
mov edx, dword [0x100531b8]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x1005366c]
jne 0x1000442b
mov eax, dword [0x100531f4]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x10053670]
jne 0x1000443d
mov ecx, dword [0x100531f8]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x10053674]
jne 0x1000444f
mov edx, dword [0x100531fc]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x10053678]
jne 0x10004460
mov eax, dword [0x10053200]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x10053690]
jne 0x10004472
mov ecx, dword [0x10053208]
mov dword [ebx], ecx
test ebx, ebx
jne 0x1000447a
xor eax, eax
jmp 0x1000449c
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x1000403d
add dword [ebp - 0xc], 0x14
jmp 0x10003faa
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret