Function at 0x403d94
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x4534e4], 0
push ebx
push esi
push edi
jne 0x403dab
call fcn.00403bd8
cmp dword [ebp + 8], 0
jne 0x403db8
xor eax, eax
jmp 0x404350
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 0x403dd6
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
je 0x403ddd
xor eax, eax
jmp 0x404350
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 0x403dfc
cmp dword [ebx], 0x4550
je 0x403e03
xor eax, eax
jmp 0x404350
cmp word [ebx + 0x14], 0xe0
jne 0x403e13
cmp word [ebx + 0x18], 0x10b
je 0x403e1d
mov eax, 4
jmp 0x404350
cmp word [ebx + 6], 1
jae 0x403e2b
xor eax, eax
jmp 0x404350
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 0x403e54
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
jmp 0x403e5e
mov eax, 8
jmp 0x404350
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
jne 0x403e74
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 0
je 0x40434b
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.00405d3c
add esp, 0xc
test eax, eax
jne 0x403ea6
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.00405d3c
add esp, 0xc
test eax, eax
jne 0x403ed7
mov dword [ebp - 0x10], 2
jmp 0x403ed7
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 0x404335
mov edx, 0x80000000
test eax, edx
jne 0x404326
jmp 0x404158
cmp dword [ebp - 0x10], 1
jne 0x404326
mov edx, dword [ebx]
cmp edx, dword [0x4534d8]
jne 0x404174
mov ecx, dword [0x45301c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4534dc]
jne 0x404186
mov edx, dword [0x453020]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x453480]
jne 0x404197
mov eax, dword [0x453014]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x453484]
jne 0x4041a9
mov ecx, dword [0x453018]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x453488]
jne 0x4041bb
mov edx, dword [0x453028]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4534b4]
jne 0x4041cc
mov eax, dword [0x45303c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4534b8]
jne 0x4041de
mov ecx, dword [0x453038]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4534d0]
jne 0x4041f0
mov edx, dword [0x453068]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4534d4]
jne 0x404201
mov eax, dword [0x45306c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4534cc]
jne 0x404213
mov ecx, dword [0x453050]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x404326
mov eax, dword [ebx]
cmp eax, dword [0x45348c]
jne 0x40422f
mov edx, dword [0x45302c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x453490]
jne 0x404240
mov eax, dword [0x453034]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x453494]
jne 0x404252
mov ecx, dword [0x453030]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x453498]
jne 0x404264
mov edx, dword [0x452ff8]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x45349c]
jne 0x404275
mov eax, dword [0x453010]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4534a0]
jne 0x404287
mov ecx, dword [0x45300c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4534a4]
jne 0x404299
mov edx, dword [0x452ffc]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4534a8]
jne 0x4042aa
mov eax, dword [0x453000]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4534ac]
jne 0x4042bc
mov ecx, dword [0x453008]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4534b0]
jne 0x4042ce
mov edx, dword [0x453004]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4534bc]
jne 0x4042df
mov eax, dword [0x453040]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4534c0]
jne 0x4042f1
mov ecx, dword [0x453044]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4534c4]
jne 0x404303
mov edx, dword [0x453048]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4534c8]
jne 0x404314
mov eax, dword [0x45304c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4534e0]
jne 0x404326
mov ecx, dword [0x453054]
mov dword [ebx], ecx
test ebx, ebx
jne 0x40432e
xor eax, eax
jmp 0x404350
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x403ef1
add dword [ebp - 0xc], 0x14
jmp 0x403e5e
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret