Function at 0x403c18
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x453644], 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
jne 0x403c32
call fcn.00403a5c
test ebx, ebx
jne 0x403c3d
xor eax, eax
jmp 0x4041e4
mov dword [ebp - 8], ebx
push 0x40
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.DLL_IsBadReadPtr
dec eax
je 0x403c58
mov ecx, dword [ebp - 8]
cmp word [ecx], 0x5a4d
je 0x403c5f
xor eax, eax
jmp 0x4041e4
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 0x403c7e
cmp dword [ebx], 0x4550
je 0x403c85
xor eax, eax
jmp 0x4041e4
cmp word [ebx + 0x14], 0xe0
jne 0x403c95
cmp word [ebx + 0x18], 0x10b
je 0x403c9f
mov eax, 4
jmp 0x4041e4
cmp word [ebx + 6], 1
jae 0x403cad
xor eax, eax
jmp 0x4041e4
mov edx, dword [ebp - 8]
mov ebx, dword [edx + 0x3c]
mov eax, dword [ebp - 8]
add ebx, eax
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x80]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x403cd7
mov edx, dword [ebp - 0xc]
add edx, eax
mov dword [ebp - 0xc], edx
jmp 0x403ce1
mov eax, 8
jmp 0x4041e4
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0
jne 0x403cf7
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
je 0x4041df
mov edx, dword [ebp - 0xc]
mov ebx, dword [edx + 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.00405928
add esp, 0xc
test eax, eax
jne 0x403d29
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.00405928
add esp, 0xc
test eax, eax
jne 0x403d4d
mov dword [ebp - 0x10], 2
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
test eax, eax
je 0x403d5e
add eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
jmp 0x403d6a
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 0x10]
add ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x10]
add ebx, dword [ebp - 8]
jmp 0x4041c9
mov edx, 0x80000000
test eax, edx
jne 0x4041ba
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0
je 0x403fec
mov esi, eax
add esi, dword [ebp - 8]
cmp dword [ebp - 0x10], 1
jne 0x4041ba
push str.LoadLibraryA
lea edi, [esi + 2]
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403db9
mov eax, dword [0x453184]
mov dword [ebx], eax
push str.LoadLibraryW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403dd0
mov edx, dword [0x453188]
mov dword [ebx], edx
push str.CreateFileA
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403de7
mov ecx, dword [0x45317c]
mov dword [ebx], ecx
push str.CreateFileW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403dfd
mov eax, dword [0x453180]
mov dword [ebx], eax
push str._lopen
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e14
mov edx, dword [0x453190]
mov dword [ebx], edx
push str.OpenFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e2b
mov ecx, dword [0x4531a4]
mov dword [ebx], ecx
push str._lcreat
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e41
mov eax, dword [0x4531a0]
mov dword [ebx], eax
push str.FindFirstFileA
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e58
mov edx, dword [0x4531d0]
mov dword [ebx], edx
push str.FindFirstFileW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e6f
mov ecx, dword [0x4531d4]
mov dword [ebx], ecx
push str.GetFileInformationByHandle
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e85
mov eax, dword [0x4531b8]
mov dword [ebx], eax
cmp byte [ebp + 0xc], 1
jae 0x4041ba
push str._lclose
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403ea6
mov edx, dword [0x453194]
mov dword [ebx], edx
push str._lread
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403ebd
mov ecx, dword [0x45319c]
mov dword [ebx], ecx
push str._llseek
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403ed3
mov eax, dword [0x453198]
mov dword [ebx], eax
push str.CloseHandle
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403eea
mov edx, dword [0x453160]
mov dword [ebx], edx
push str.SetFilePointerEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403f01
mov ecx, dword [0x453178]
mov dword [ebx], ecx
push str.SetFilePointer
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403f17
mov eax, dword [0x453174]
mov dword [ebx], eax
push str.ReadFile
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403f2e
mov edx, dword [0x453164]
mov dword [ebx], edx
push str.ReadFileEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403f45
mov ecx, dword [0x453168]
mov dword [ebx], ecx
push str.GetFileSizeEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403f5b
mov eax, dword [0x453170]
mov dword [ebx], eax
push str.GetFileSize
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403f72
mov edx, dword [0x45316c]
mov dword [ebx], edx
push str.CreateFileMappingW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403f89
mov ecx, dword [0x4531a8]
mov dword [ebx], ecx
push str.CreateFileMappingA
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403f9f
mov eax, dword [0x4531ac]
mov dword [ebx], eax
push str.MapViewOfFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403fb6
mov edx, dword [0x4531b0]
mov dword [ebx], edx
push str.MapViewOfFileEx
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403fcd
mov ecx, dword [0x4531b4]
mov dword [ebx], ecx
push str.UnmapViewOfFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x4041ba
mov eax, dword [0x4531bc]
mov dword [ebx], eax
jmp 0x4041ba
cmp dword [ebp - 0x10], 1
jne 0x4041ba
mov edx, dword [ebx]
cmp edx, dword [0x453638]
jne 0x404008
mov ecx, dword [0x453184]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x45363c]
jne 0x40401a
mov edx, dword [0x453188]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4535e0]
jne 0x40402b
mov eax, dword [0x45317c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4535e4]
jne 0x40403d
mov ecx, dword [0x453180]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4535e8]
jne 0x40404f
mov edx, dword [0x453190]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x453614]
jne 0x404060
mov eax, dword [0x4531a4]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x453618]
jne 0x404072
mov ecx, dword [0x4531a0]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x453630]
jne 0x404084
mov edx, dword [0x4531d0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x453634]
jne 0x404095
mov eax, dword [0x4531d4]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x45362c]
jne 0x4040a7
mov ecx, dword [0x4531b8]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x4041ba
mov eax, dword [ebx]
cmp eax, dword [0x4535ec]
jne 0x4040c3
mov edx, dword [0x453194]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4535f0]
jne 0x4040d4
mov eax, dword [0x45319c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4535f4]
jne 0x4040e6
mov ecx, dword [0x453198]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4535f8]
jne 0x4040f8
mov edx, dword [0x453160]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4535fc]
jne 0x404109
mov eax, dword [0x453178]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x453600]
jne 0x40411b
mov ecx, dword [0x453174]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x453604]
jne 0x40412d
mov edx, dword [0x453164]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x453608]
jne 0x40413e
mov eax, dword [0x453168]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x45360c]
jne 0x404150
mov ecx, dword [0x453170]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x453610]
jne 0x404162
mov edx, dword [0x45316c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x45361c]
jne 0x404173
mov eax, dword [0x4531a8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x453620]
jne 0x404185
mov ecx, dword [0x4531ac]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x453624]
jne 0x404197
mov edx, dword [0x4531b0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x453628]
jne 0x4041a8
mov eax, dword [0x4531b4]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x453640]
jne 0x4041ba
mov ecx, dword [0x4531bc]
mov dword [ebx], ecx
test ebx, ebx
jne 0x4041c2
xor eax, eax
jmp 0x4041e4
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x403d78
add dword [ebp - 0xc], 0x14
jmp 0x403ce1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret