Function at 0x43f840
Capabilities:
Enumerate pe sections
Inspect section memory permissions
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x104c
call fcn.00475650
mov eax, dword [0x5430a4]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [esp + 0x1054], eax
jne 0x43f87e
mov eax, 1
mov ecx, dword [esp + 0x1054]
call fcn.004754bd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [0x4ef0a4]
push 0x40
push edi
call esi
cmp eax, 1
je 0x43fd8c
cmp word [edi], 0x5a4d
jne 0x43fd8c
mov ebx, dword [edi + 0x3c]
push 0xf8
add ebx, edi
push ebx
call esi
cmp eax, 1
je 0x43fd74
cmp dword [ebx], 0x4550
jne 0x43fd74
cmp word [ebx + 0x14], 0xe0
jne 0x43fd5c
cmp word [ebx + 0x18], 0x10b
jne 0x43fd5c
mov ax, word [ebx + 6]
cmp ax, 1
jae 0x43f8f9
mov eax, 5
mov ecx, dword [esp + 0x1054]
call fcn.004754bd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, ax
lea esi, [ecx + ecx*4]
shl esi, 3
sub esi, edi
lea edx, [ebx + 0xf8]
add esi, edx
xor ecx, ecx
cmp ax, cx
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ecx
jbe 0x43f97a
movzx eax, ax
mov dword [esp + 0xc], ecx
add edx, 0xc
mov dword [esp + 0x14], eax
lea ecx, [ecx]
mov ecx, dword [edx + 4]
mov eax, dword [edx]
add eax, ecx
cmp dword [esp + 0x10], eax
jae 0x43f941
mov dword [esp + 0x10], eax
mov edi, str..rsrc
lea esi, [edx - 0xc]
mov ecx, 6
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x43f95c
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
inc esi
add edx, 0x28
dec eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], eax
jne 0x43f930
mov esi, dword [esp + 0x24]
mov edi, dword [ebp + 8]
lea edx, [esp + 0x2c]
push edx
call dword [0x4ef0a8]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
xor edx, edx
div ecx
test edx, edx
mov dword [esp + 0x20], eax
je 0x43f99e
inc eax
mov dword [esp + 0x20], eax
imul ecx, eax
push 0x40
push 0x1000
push ecx
push 0
call dword [0x4ef0ac]
test eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jne 0x43f9d2
mov eax, 6
mov ecx, dword [esp + 0x1054]
call fcn.004754bd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push eax
call dword [0x4ef5d8]
xor esi, esi
add esp, 0xc
cmp word [ebx + 6], si
jbe 0x43fa23
jmp 0x43f9f0
movzx eax, si
lea edx, [eax + eax*4]
lea eax, [ebx + 0xf8]
mov ecx, dword [eax + edx*8 + 0x10]
lea eax, [eax + edx*8]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
push ecx
mov ecx, dword [ebp + 0xc]
add edx, edi
push edx
add eax, dword [ecx]
push eax
call dword [0x4ef5d8]
add esp, 0xc
inc esi
cmp si, word [ebx + 6]
jb 0x43f9f0
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx]
mov eax, dword [ebx + 0x3c]
mov esi, dword [esp + 0x18]
add eax, ebx
test esi, esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
je 0x43fa69
call fcn.0043f7f0
cmp eax, 1
jne 0x43fa69
mov ecx, dword [esp + 0x10]
lea eax, [esi + esi*4]
mov edx, dword [ecx + eax*8 + 0x104]
lea eax, [ecx + eax*8 + 0xf8]
mov ecx, dword [eax + 0x14]
add edx, edi
add ecx, edi
mov dword [eax + 0xc], edx
mov dword [eax + 0x14], ecx
mov edx, dword [esp + 0x10]
mov esi, dword [edx + 0x80]
test esi, esi
jne 0x43fa9c
push 0x8000
push esi
push ebx
call dword [0x4ef0bc]
mov eax, 7
mov ecx, dword [esp + 0x1054]
call fcn.004754bd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add esi, ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0xd
lea ebx, [ebx]
mov eax, dword [esi + 4]
test eax, eax
jne 0x43fabe
mov eax, dword [esi + 0xc]
test eax, eax
je 0x43fb3d
mov edi, dword [esi + 0xc]
add edi, ebx
push edi
call dword [0x4ef0e4]
mov ebx, eax
test ebx, ebx
jne 0x43fad9
push edi
call dword [0x4ef0b0]
mov ebx, eax
mov ecx, dword [esp + 0x14]
inc ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
je 0x43fd33
mov edi, dword [esi]
mov eax, dword [esp + 0xc]
mov esi, dword [esi + 0x10]
add edi, eax
mov edx, eax
mov eax, dword [edi]
add esi, edx
test eax, eax
je 0x43fb27
jns 0x43fb09
and eax, 0xffff
push eax
jmp 0x43fb12
mov ecx, dword [esp + 0xc]
lea edx, [eax + ecx + 2]
push edx
push ebx
call dword [0x4ef0b4]
add edi, 4
mov dword [esi], eax
mov eax, dword [edi]
add esi, 4
test eax, eax
jne 0x43faff
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0xc]
add eax, 0x14
mov dword [esp + 0x18], eax
mov esi, eax
jmp 0x43fab0
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0xa0]
test edx, edx
je 0x43fba7
mov eax, dword [edx + ebx]
add edx, ebx
test eax, eax
je 0x43fba7
mov ecx, dword [edx + 4]
lea esi, [edx + 8]
add ecx, edx
cmp esi, ecx
jae 0x43fb9b
movzx eax, word [esi]
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x3000
jne 0x43fb8b
mov edi, dword [edx]
and eax, 0xfff
add eax, edi
mov edi, dword [esp + 0x10]
add eax, ebx
mov ecx, ebx
sub ecx, dword [edi + 0x34]
add dword [eax], ecx
jmp 0x43fb8f
test ecx, ecx
jne 0x43fbe2
mov eax, dword [edx + 4]
add esi, 2
add eax, edx
cmp esi, eax
jb 0x43fb60
mov ecx, dword [edx + 4]
mov eax, dword [edx + ecx]
add edx, ecx
test eax, eax
jne 0x43fb54
xor eax, eax
mov ecx, 0x400
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dx, word [ecx + 6]
add ecx, 0x108
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
cmp ax, dx
mov dword [esp + 0x28], edx
jne 0x43fc08
mov eax, dword [esp + 0x24]
xor esi, esi
mov ecx, 0x60000000
jmp 0x43fc10
push 0x8000
push 0
push ebx
call dword [0x4ef0bc]
mov eax, 0xc
mov ecx, dword [esp + 0x1054]
call fcn.004754bd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ecx - 4]
mov eax, dword [ecx]
mov ecx, dword [ecx + 0x14]
mov edi, dword [esp + 0x30]
xor edx, edx
lea eax, [eax + esi - 1]
div edi
xor edx, edx
mov dword [esp + 0xc], eax
mov eax, esi
div edi
mov edi, dword [esp + 0xc]
cmp eax, edi
ja 0x43fc64
mov edx, ecx
mov esi, ecx
and edx, 0x20000000
and esi, 0x40000000
and ecx, 0x80000000
test edx, edx
je 0x43fc4d
or byte [esp + eax + 0x50], 1
test esi, esi
je 0x43fc56
or byte [esp + eax + 0x50], 2
test ecx, ecx
je 0x43fc5f
or byte [esp + eax + 0x50], 4
inc eax
cmp eax, edi
jbe 0x43fc44
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
inc eax
add ecx, 0x28
cmp ax, dx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jbe 0x43fbd3
mov edi, ebx
xor esi, esi
lea esp, [esp]
movzx eax, byte [esp + esi + 0x50]
sub eax, 2
je 0x43fcba
dec eax
je 0x43fcb3
sub eax, 3
je 0x43fcac
mov dword [esp + 0x1c], 0x40
jmp 0x43fcd9
mov eax, 4
jmp 0x43fcbf
mov eax, 0x20
jmp 0x43fcbf
mov eax, 2
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
push ecx
push eax
push edx
push edi
mov dword [esp + 0x2c], eax
call dword [0x4ef0b8]
test eax, eax
je 0x43fd0d
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
add edi, edx
inc esi
cmp esi, eax
jbe 0x43fc90
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
push 0
push 1
push ebx
add ecx, ebx
call ecx
xor eax, eax
mov ecx, dword [esp + 0x1054]
call fcn.004754bd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push ebx
call dword [0x4ef0bc]
mov eax, 0xd
mov ecx, dword [esp + 0x1054]
call fcn.004754bd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
push 0x8000
push 0
push edx
call dword [0x4ef0bc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1054]
call fcn.004754bd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov ecx, dword [esp + 0x1054]
call fcn.004754bd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 3
mov ecx, dword [esp + 0x1054]
call fcn.004754bd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1054]
mov eax, 2
call fcn.004754bd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret