Function at 0x42b300
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
push edi
mov ebx, ecx
push 0
push 0
mov edi, dword [ebx + 0x168]
push edi
mov dword [ebp - 0x18], edi
call fcn.004102ab
push edi
push 1
lea esi, [ebx + 0x18]
push 0x40
push esi
call fcn.00410562
mov eax, 0x5a4d
add esp, 0x1c
cmp word [esi], ax
jne 0x42b698
push 0
push dword [ebx + 0x54]
push edi
call fcn.004102ab
push edi
push 1
lea esi, [ebx + 0x58]
push 0xf8
push esi
call fcn.00410562
add esp, 0x1c
cmp dword [esi], 0x4550
jne 0x42b698
movzx eax, word [ebx + 0x5e]
lea esi, [ebx + 0x150]
push esi
push eax
mov ecx, esi
mov dword [ebp - 0xc], esi
call fcn.004028f0
mov esi, dword [esi]
mov eax, 0x66666667
mov ecx, dword [ebx + 0x154]
sub ecx, esi
imul ecx
push edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push 0x28
push esi
call fcn.00410562
add esp, 0x10
cmp dword [ebx + 0xdc], 0
je 0x42b470
push 0
push dword [ebx + 0xd8]
mov ecx, ebx
call fcn.0042b6b0
push eax
push edi
call fcn.004102ab
push edi
push 1
lea eax, [ebp - 0x30]
push 0x14
push eax
call fcn.00410562
mov eax, dword [ebp - 0x30]
add esp, 0x1c
test eax, eax
je 0x42b470
jmp 0x42b3f0
mov ecx, dword [ebx + 0x160]
cmp dword [ebx + 0x164], ecx
je 0x42b448
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0xf
mov byte [ecx + 0x14], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
add dword [ebx + 0x160], 0x38
jmp 0x42b458
lea eax, [ebp - 0x30]
push eax
push ecx
lea ecx, [ebx + 0x15c]
call fcn.00402530
push edi
push 1
lea eax, [ebp - 0x30]
push 0x14
push eax
call fcn.00410562
mov eax, dword [ebp - 0x30]
add esp, 0x10
test eax, eax
jne 0x42b3f0
mov eax, dword [ebx + 0x160]
mov esi, dword [ebx + 0x15c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], esi
cmp esi, eax
je 0x42b685
lea ebx, [esi + 0x30]
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
cmp eax, edx
je 0x42b4b5
mov esi, dword [ebx - 0x24]
nop
mov ecx, esi
sub ecx, dword [eax + 0xc]
cmp ecx, dword [eax + 0x10]
jb 0x42b578
add eax, 0x28
cmp eax, edx
jne 0x42b4a0
xor eax, eax
push 0
push eax
push edi
call fcn.004102ab
push edi
lea eax, [ebp - 0x130]
push 0x100
push eax
call fcn.0041038b
add esp, 0x18
test eax, eax
je 0x42b4fb
lea ecx, [ebp - 0x130]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42b4e2
sub ecx, edx
lea eax, [ebp - 0x130]
push ecx
push eax
lea ecx, [ebx - 0x1c]
call fcn.004018c0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
cmp eax, edx
je 0x42b521
mov esi, dword [ebx - 0x20]
lea ebx, [ebx]
mov ecx, esi
sub ecx, dword [eax + 0xc]
cmp ecx, dword [eax + 0x10]
jb 0x42b582
add eax, 0x28
cmp eax, edx
jne 0x42b510
xor eax, eax
push 0
push eax
push edi
call fcn.004102ab
push edi
push 1
lea eax, [ebp - 4]
push 4
push eax
call fcn.00410562
mov eax, dword [ebp - 4]
add esp, 0x1c
test eax, eax
je 0x42b5ae
mov ecx, dword [ebx]
cmp dword [ebx + 4], ecx
je 0x42b589
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0xf
mov byte [ecx + 0xc], 0
mov word [ecx + 0x24], ax
add dword [ebx], 0x28
jmp 0x42b596
mov eax, dword [eax + 0x14]
add eax, ecx
jmp 0x42b4b7
mov eax, dword [eax + 0x14]
add eax, ecx
jmp 0x42b523
lea eax, [ebp - 4]
push eax
push ecx
lea ecx, [ebx - 4]
call fcn.00402730
push edi
push 1
lea eax, [ebp - 4]
push 4
push eax
call fcn.00410562
mov eax, dword [ebp - 4]
add esp, 0x10
test eax, eax
jne 0x42b544
mov eax, dword [ebx]
mov esi, dword [ebx - 4]
mov ecx, dword [ebx - 0x20]
mov dword [ebp - 8], eax
cmp esi, eax
je 0x42b66d
mov ebx, eax
mov edx, dword [esi]
mov eax, ecx
mov dword [esi + 4], eax
add ecx, 4
mov eax, edx
mov dword [ebp - 8], ecx
shr eax, 0x1f
test al, al
je 0x42b5e1
movzx eax, dx
mov dword [esi + 8], eax
jmp 0x42b65f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
mov edi, dword [ecx + 4]
cmp eax, edi
je 0x42b605
lea ecx, [ecx]
mov ecx, edx
sub ecx, dword [eax + 0xc]
cmp ecx, dword [eax + 0x10]
jb 0x42b68e
add eax, 0x28
cmp eax, edi
jne 0x42b5f0
xor eax, eax
mov edi, dword [ebp - 0x18]
push 0
push eax
push edi
call fcn.004102ab
push edi
push 1
lea eax, [esi + 0x24]
push 2
push eax
call fcn.00410562
push edi
lea eax, [ebp - 0x130]
push 0x100
push eax
call fcn.0041038b
add esp, 0x28
test eax, eax
je 0x42b65c
lea ecx, [ebp - 0x130]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42b643
sub ecx, edx
lea eax, [ebp - 0x130]
push ecx
push eax
lea ecx, [esi + 0xc]
call fcn.004018c0
mov ecx, dword [ebp - 8]
add esi, 0x28
cmp esi, ebx
jne 0x42b5c3
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
add ebx, 0x38
add esi, 0x38
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
cmp esi, dword [ebp - 0x1c]
jne 0x42b490
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0x14]
add eax, ecx
jmp 0x42b607
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret