Function at 0x4230d0
Capabilities:
Check if file exists
Enumerate pe sections
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4517d9
mov eax, dword fs:[0]
push eax
sub esp, 0x3cc
mov eax, dword [0x4607a0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3d0], ecx
mov dword [ebp - 0x22c], 0
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.0043f140
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42314f
xor eax, eax
jmp 0x42391c
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x3d0]
mov dword [ecx + 0x2c], 0
mov ecx, dword [ebp - 0x3d0]
add ecx, 0x94
call fcn.004283f0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xffffffff
jne 0x4231b8
jmp 0x4238b2
push 0
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x3d0]
mov dword [ecx + 0x30], eax
push 0
push 0
push 0
push 2
push 0
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4231f5
jmp 0x4238b2
mov eax, dword [ebp - 0x3d0]
mov ecx, dword [eax + 0x30]
push ecx
push 0
push 0
push 4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42321d
jmp 0x4238b2
cmp dword [ebp - 0x14], 0
je 0x423233
mov eax, dword [ebp - 0x14]
push eax
call fcn.00422470
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x228], 0
je 0x423252
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.00422470
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x27c], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x230], ecx
mov edx, dword [ebp - 0x26c]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x4232db
mov ecx, dword [ebp - 0x230]
cmp dword [ecx], 0x4550
je 0x4232e0
jmp 0x4238b2
mov edx, dword [ebp - 0x230]
movzx eax, word [edx + 0x16]
and eax, 0x2000
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0x3d0]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x230]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
jne 0x42331e
mov ecx, dword [ebp - 0x3d0]
mov dword [ecx + 8], 0
jmp 0x423348
mov edx, dword [ebp - 0x230]
movzx eax, word [edx + 0x18]
cmp eax, 0x20b
jne 0x423348
mov ecx, dword [ebp - 0x3d0]
mov dword [ecx + 8], 1
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x274], edx
mov eax, dword [ebp - 0x230]
movzx ecx, word [eax + 6]
mov dword [ebp - 0x270], ecx
mov edx, dword [ebp - 0x230]
movzx eax, word [edx + 0x14]
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x230]
movzx edx, word [ecx + 0x18]
cmp edx, 0x20b
jne 0x4233ed
mov eax, dword [ebp - 0x3d0]
mov dword [eax + 8], 1
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x274], ecx
mov eax, dword [ebp + 8]
cdq
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], edx
mov edx, dword [ebp - 0x274]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x274]
mov edx, dword [ecx + 0x54]
mov dword [ebp - 0x27c], edx
mov eax, dword [ebp - 0x3d0]
mov ecx, dword [ebp - 0x274]
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x40], edx
mov ecx, dword [ecx + 0x34]
mov dword [eax + 0x44], ecx
mov edx, dword [ebp - 0x3d0]
mov eax, dword [ebp - 0x274]
mov ecx, dword [eax + 0x50]
mov dword [edx + 0x34], ecx
jmp 0x423435
mov edx, dword [ebp + 8]
mov dword [ebp - 0x238], edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x268], ecx
mov edx, dword [ebp - 0x230]
mov eax, dword [edx + 0x54]
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x230]
mov edx, dword [ecx + 0x34]
mov dword [ebp - 0x238], edx
mov eax, dword [ebp - 0x3d0]
mov ecx, dword [ebp - 0x230]
mov edx, dword [ecx + 0x50]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x3d0]
mov ecx, dword [ebp - 0x3d0]
mov edx, dword [ecx + 0x34]
mov dword [eax + 0x2c], edx
push 0x46296c
mov eax, dword [ebp - 0x27c]
push eax
call fcn.0043f331
add esp, 8
mov dword [ebp - 0x2c8], eax
mov ecx, dword [ebp - 0x3d0]
mov edx, dword [ebp - 0x2c8]
mov dword [ecx + 0x4c], edx
mov eax, dword [ebp - 0x3d0]
cmp dword [eax + 0x4c], 0
jne 0x423481
jmp 0x4238b2
mov ecx, dword [ebp - 0x27c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x3d0]
mov ecx, dword [eax + 0x4c]
push ecx
call fcn.0043e8b0
add esp, 0xc
mov edx, dword [ebp - 0x3d0]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp - 0x3d0]
cmp dword [ecx + 8], 0
jne 0x4234d9
mov edx, dword [ebp - 0x3d0]
mov eax, dword [edx + 0x4c]
mov ecx, dword [ebp - 0x278]
add eax, dword [ecx + 0x3c]
mov edx, dword [ebp - 0x3d0]
mov dword [edx + 0x88], eax
jmp 0x4234f7
mov eax, dword [ebp - 0x3d0]
mov ecx, dword [eax + 0x4c]
mov edx, dword [ebp - 0x278]
add ecx, dword [edx + 0x3c]
mov eax, dword [ebp - 0x3d0]
mov dword [eax + 0x8c], ecx
lea ecx, [ebp - 0x264]
call fcn.00402780
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x240], ecx
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x254], edx
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x268], 0
je 0x42358d
mov ecx, dword [ebp - 0x268]
mov edx, dword [ebp - 0x27c]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0x268]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x288]
imul eax, dword [ebp - 0x268]
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x3d0]
cmp dword [ecx + 8], 0
je 0x4235b3
mov edx, dword [ebp - 0x284]
mov dword [ebp - 0x25c], edx
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x258], eax
jmp 0x4235bf
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x24c], 0
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x248], edx
push 0x4602cc
lea ecx, [ebp - 0x264]
call fcn.00402970
mov dword [ebp - 0x240], 0x40000000
lea eax, [ebp - 0x264]
push eax
mov ecx, dword [ebp - 0x3d0]
add ecx, 0x94
call fcn.004283b0
mov dword [ebp - 0x23c], 0
mov ecx, dword [ebp - 0x3d0]
cmp dword [ecx + 8], 0
je 0x423639
mov edx, dword [ebp - 0x274]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x274]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x23c], edx
jmp 0x423653
mov eax, dword [ebp - 0x230]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 0x230]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x28c], 0
jmp 0x42366e
mov ecx, dword [ebp - 0x28c]
add ecx, 1
mov dword [ebp - 0x28c], ecx
mov edx, dword [ebp - 0x28c]
cmp edx, dword [ebp - 0x270]
jge 0x423898
lea ecx, [ebp - 0x2b4]
call fcn.00402780
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x290], eax
xor ecx, ecx
mov dword [ebp - 0x2c0], ecx
mov dword [ebp - 0x2bc], ecx
mov byte [ebp - 0x2b8], cl
push 9
push 0
lea edx, [ebp - 0x2c0]
push edx
call fcn.0043f140
add esp, 0xc
push 8
mov eax, dword [ebp - 0x28c]
imul eax, eax, 0x28
add eax, dword [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x2c0]
push ecx
call fcn.0043e8b0
add esp, 0xc
lea edx, [ebp - 0x2c0]
push edx
call fcn.0043f8c0
add esp, 4
test eax, eax
jbe 0x42376a
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x3cc]
call fcn.0040e020
mov dword [ebp - 0x3d4], eax
mov ecx, dword [ebp - 0x3d4]
mov dword [ebp - 0x3d8], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3d8]
call fcn.0043c600
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00402970
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3cc]
call fcn.0040e060
mov edx, dword [ebp - 0x28c]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax + edx + 8]
mov dword [ebp - 0x2a0], ecx
mov edx, dword [ebp - 0x2a0]
mov dword [ebp - 0x2a4], edx
cmp dword [ebp - 0x268], 0
je 0x4237d6
mov eax, dword [ebp - 0x28c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx + eax + 8]
mov eax, dword [ebp - 0x268]
lea eax, [edx + eax - 1]
xor edx, edx
div dword [ebp - 0x268]
mov dword [ebp - 0x2c4], eax
mov ecx, dword [ebp - 0x2c4]
imul ecx, dword [ebp - 0x268]
mov dword [ebp - 0x2a4], ecx
mov edx, dword [ebp - 0x3d0]
cmp dword [edx + 8], 0
je 0x4237fc
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 0x2a8], ecx
jmp 0x423808
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x2ac], edx
mov eax, dword [ebp - 0x28c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x29c], edx
mov eax, dword [ebp - 0x28c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx + eax + 0x10]
mov dword [ebp - 0x298], edx
mov eax, dword [ebp - 0x28c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx + eax + 0x14]
mov dword [ebp - 0x294], edx
mov eax, dword [ebp - 0x28c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx + eax + 0x24]
mov dword [ebp - 0x290], edx
lea eax, [ebp - 0x2b4]
push eax
mov ecx, dword [ebp - 0x3d0]
add ecx, 0x94
call fcn.004283b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2b4]
call fcn.00427cb0
jmp 0x42365f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.00427cb0
xor ecx, ecx
jne 0x423185
cmp dword [ebp - 0x228], 0
je 0x4238c7
mov edx, dword [ebp - 0x228]
push edx
call fcn.00422470
cmp dword [ebp - 0x14], 0
je 0x4238d6
mov eax, dword [ebp - 0x14]
push eax
call fcn.00422470
cmp dword [ebp - 0x10], 0
je 0x4238e5
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00422450
mov ecx, dword [ebp - 0x3d0]
add ecx, 0x94
call fcn.0041b790
cmp eax, 2
jb 0x423905
mov dword [ebp - 0x22c], 1
mov ecx, dword [ebp - 0x3d0]
add ecx, 0x94
call fcn.0041b790
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0043ec15
mov esp, ebp
pop ebp
ret 4