Function at 0x4be010
Capabilities:
Enumerate pe sections
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x24], eax
cmp dword [0x520388], 2
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
je 0x4be1fa
mov ebp, dword [edi + 0x28]
mov eax, dword [edi + 0x34]
mov ebx, dword [edi + 0x30]
mov dword [esp + 0x14], eax
cmp ebp, dword [0x520408]
je 0x4be064
mov eax, dword [0x5203f0]
test eax, eax
je 0x4be064
push eax
call fcn.004c3d02
add esp, 4
mov dword [0x5203f0], 0
mov ecx, dword [0x5203f4]
push ebp
push ecx
mov dword [0x520408], ebp
call fcn.0043eda0
mov esi, eax
mov eax, dword [0x5203f0]
test eax, eax
jne 0x4be114
push 0x4d9470
push esi
call fcn.004c4548
add esp, 8
mov dword [0x5203f0], eax
test eax, eax
jne 0x4be114
lea ecx, [ecx]
cmp dword [0x4e9608], 0
jne 0x4be0bd
push esi
push 0
mov ecx, 0x51ef08
call fcn.00433e20
push 0x12
call fcn.004b8280
push ebp
call fcn.0043f6f0
cmp eax, 9
je 0x4be17b
mov ecx, dword [0x520388]
cmp ecx, 1
je 0x4be0dc
cmp ecx, 2
jne 0x4be0e5
cmp eax, 3
je 0x4be1e0
push esi
call fcn.004c1aa4
mov edx, dword [0x5203f4]
add esp, 4
push ebp
push edx
call fcn.0043eda0
mov esi, eax
push 0x4d9470
push esi
call fcn.004c4548
add esp, 8
mov dword [0x5203f0], eax
test eax, eax
je 0x4be0a0
xor ebp, ebp
cmp esi, ebp
je 0x4be128
push esi
call fcn.004c1aa4
mov eax, dword [0x5203f0]
add esp, 4
mov ecx, dword [esp + 0x14]
push ebp
push ecx
push ebx
push eax
call fcn.004c4a1e
add esp, 0x10
test eax, eax
je 0x4be195
mov edx, dword [0x5203f0]
push edx
call fcn.004c3d02
mov eax, dword [0x51ef64]
add esp, 4
push eax
mov ecx, 0x51ef08
mov dword [0x5203f0], ebp
call fcn.00433fb0
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c1302
add esp, 0x28
ret 4
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c1302
add esp, 0x28
ret 4
cmp dword [0x520388], 2
je 0x4be1fa
mov eax, dword [0x5203f0]
push 0x4dfa9c
call fcn.004bba60
test eax, eax
jne 0x4be1fa
mov ecx, dword [0x5203f0]
push ecx
call fcn.004c3d02
add esp, 4
push 0x2ae
mov dword [0x5203f0], ebp
call fcn.00475570
mov edx, dword [0x51ef64]
push eax
push edx
call fcn.004ad680
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c1302
add esp, 0x28
ret 4
mov eax, dword [0x5203f0]
push eax
push 1
lea ecx, [esp + 0x20]
push 0x1a
push ecx
call fcn.004c4965
add esp, 0x10
cmp eax, 1
je 0x4be274
mov edx, dword [0x5203f0]
push edx
call fcn.004c4691
add esp, 4
cmp dword [0x520388], 2
mov esi, eax
je 0x4be23e
mov eax, dword [0x5203f0]
push eax
call fcn.004c3d02
add esp, 4
test esi, esi
je 0x4be253
mov ecx, dword [0x51ef64]
push ecx
mov ecx, 0x51ef08
call fcn.00433fb0
mov eax, esi
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 9
pop ebp
add eax, 2
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c1302
add esp, 0x28
ret 4
push 0x80
call fcn.004c23a7
mov esi, eax
xor ebp, ebp
add esp, 4
cmp esi, ebp
jne 0x4be2bb
cmp dword [0x520388], 2
je 0x4be2a1
mov edx, dword [0x5203f0]
push edx
call fcn.004c3d02
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c1302
add esp, 0x28
ret 4
movzx eax, byte [esp + 0x19]
movzx ecx, byte [esp + 0x18]
shl ax, 8
or ax, cx
mov word [esi + 2], ax
movzx edx, byte [esp + 0x1b]
movzx eax, byte [esp + 0x1a]
shl dx, 8
or dx, ax
mov word [esi + 0x2e], dx
movzx ecx, byte [esp + 0x1d]
movzx edx, byte [esp + 0x1c]
shl cx, 8
or cx, dx
mov word [esi + 6], cx
movzx eax, byte [esp + 0x21]
movzx edx, byte [esp + 0x20]
shl ax, 8
movzx ecx, ax
movzx eax, byte [esp + 0x1f]
or ecx, edx
shl ecx, 0x10
shl ax, 8
movzx edx, ax
movzx eax, byte [esp + 0x1e]
or ecx, edx
or ecx, eax
mov dword [esi + 8], ecx
movzx ecx, byte [esp + 0x25]
movzx eax, byte [esp + 0x24]
shl cx, 8
movzx edx, cx
movzx ecx, byte [esp + 0x23]
or edx, eax
shl cx, 8
movzx eax, cx
movzx ecx, byte [esp + 0x22]
shl edx, 0x10
or edx, eax
or edx, ecx
mov dword [esi + 0xc], edx
movzx edx, byte [esp + 0x2f]
movzx eax, byte [esp + 0x2e]
shl dx, 8
or dx, ax
mov word [esi + 0x20], dx
movzx ecx, byte [esp + 0x31]
movzx edx, byte [esp + 0x30]
shl cx, 8
or cx, dx
mov ebx, 2
mov word [esi + 0x22], cx
cmp dword [0x520388], ebx
jne 0x4be49c
movzx eax, byte [esp + 0x29]
movzx edx, byte [esp + 0x28]
shl ax, 8
movzx ecx, ax
movzx eax, byte [esp + 0x27]
or ecx, edx
shl ax, 8
shl ecx, 0x10
movzx edx, ax
movzx eax, byte [esp + 0x26]
or ecx, edx
or ecx, eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ebp
movzx ecx, byte [esp + 0x2d]
movzx eax, byte [esp + 0x2c]
shl cx, 8
movzx edx, cx
movzx ecx, byte [esp + 0x2b]
or edx, eax
shl cx, 8
movzx eax, cx
movzx ecx, byte [esp + 0x2a]
shl edx, 0x10
or edx, eax
or edx, ecx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ebp
cmp dword [0x520388], ebx
jne 0x4be49c
movzx eax, word [esi + 2]
movzx ecx, al
and eax, 0xff00
cmp eax, 0x2800
jbe 0x4be44d
mov edx, dword [edi + 0x4c]
push edx
call fcn.0047f020
push eax
push 0x342
call fcn.00475570
push eax
mov eax, dword [0x51ef64]
push eax
call fcn.004ad680
add esp, 0xc
pop edi
pop esi
pop ebp
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c1302
add esp, 0x28
ret 4
cmp cx, 0x64
jbe 0x4be491
mov ecx, dword [edi + 0x4c]
push ecx
call fcn.0047f020
push eax
push 0x342
call fcn.00475570
mov edx, dword [0x51ef64]
push eax
push edx
call fcn.004ad680
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c1302
add esp, 0x28
ret 4
mov eax, 0xc8
cmp word [esi + 6], ax
ja 0x4be453
movzx eax, word [esi + 0x20]
inc eax
push eax
mov dword [esi + 0x40], ebp
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x50], ebp
mov dword [esi + 0x54], ebp
mov dword [esi + 0x58], ebp
call fcn.004c23a7
add esp, 4
mov dword [esi + 0x4c], eax
cmp eax, ebp
je 0x4be2a1
movzx eax, word [esi + 0x22]
cmp ax, bp
je 0x4be4e7
movzx ecx, ax
push ecx
call fcn.004c23a7
add esp, 4
mov dword [esi + 0x40], eax
cmp eax, ebp
je 0x4be2a1
mov edx, dword [0x5203f0]
movzx eax, word [esi + 0x20]
mov ecx, dword [esi + 0x4c]
push edx
push 1
push eax
push ecx
call fcn.004c4965
add esp, 0x10
cmp eax, 1
jne 0x4beb81
movzx eax, word [esi + 0x22]
cmp ax, bp
je 0x4be535
mov edx, dword [0x5203f0]
mov ecx, dword [esi + 0x40]
push edx
movzx eax, ax
push 1
push eax
push ecx
call fcn.004c4965
add esp, 0x10
cmp eax, 1
jne 0x4beb81
movzx edx, word [esi + 0x20]
mov eax, dword [esi + 0x4c]
mov byte [edx + eax], 0
movzx ecx, word [esi + 0x20]
inc ecx
push ecx
call fcn.004c23a7
add esp, 4
mov dword [esi + 0x3c], eax
cmp eax, ebp
je 0x4be2a1
mov ecx, dword [esi + 0x4c]
mov edx, eax
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4be560
call fcn.004badd0
xor edx, edx
mov dword [0x5203d4], eax
mov word [esi], dx
cmp dword [0x520388], ebx
je 0x4be5e1
mov ax, word [edi]
mov ecx, 0x800
mov word [esi], ax
test word [edi + 4], cx
je 0x4be5bf
mov eax, dword [esi + 0x4c]
push eax
mov dword [esi + 0x58], eax
call fcn.0043f450
cmp eax, ebp
jne 0x4be5ba
mov edx, dword [esi + 0x58]
push edx
call fcn.004d194b
add esp, 4
mov dword [esi + 0x4c], eax
cmp eax, ebp
jne 0x4be5c5
jmp 0x4be2a1
mov dword [esi + 0x4c], eax
jmp 0x4be5c5
push esi
call fcn.004bab00
mov eax, 0xff00
test word [edi], ax
jne 0x4be5d9
mov eax, dword [esi + 0x4c]
push eax
push eax
call fcn.004c12e0
cmp dword [0x520388], ebx
jne 0x4be615
mov dword [esi + 0x60], ebp
mov dword [esi + 0x64], ebp
mov dword [esi + 0x68], ebp
mov dword [edi + 0x60], ebp
mov dword [edi + 0x64], ebp
mov dword [edi + 0x68], ebp
mov cx, word [esi + 0x2e]
mov word [edi + 4], cx
mov edx, dword [esi + 0x18]
mov dword [edi + 0x18], edx
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov ecx, dword [esi + 0x10]
mov dword [edi + 0x10], ecx
mov edx, dword [esi + 0x14]
mov dword [edi + 0x14], edx
jmp 0x4be62d
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x10], edx
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
cmp dword [0x520388], 3
jne 0x4be694
mov eax, dword [edi + 0x4c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4be640
sub eax, edx
mov word [edi + 0x20], ax
mov ecx, dword [esi + 0x4c]
push ecx
mov word [esi + 0x20], ax
call fcn.004c1aa4
mov edx, dword [edi + 0x4c]
push edx
call fcn.004d194b
add esp, 8
mov dword [esi + 0x4c], eax
cmp eax, ebp
je 0x4be2a1
mov eax, dword [esi + 0x58]
push eax
call fcn.004c1aa4
mov eax, dword [edi + 0x58]
add esp, 4
cmp eax, ebp
jne 0x4be688
xor eax, eax
jmp 0x4be691
push eax
call fcn.004d194b
add esp, 4
mov dword [esi + 0x58], eax
mov ecx, dword [0x52041c]
mov dword [edi + 0x28], ecx
mov edx, dword [0x520458]
mov dword [edi + 0x30], edx
mov eax, dword [0x52045c]
mov dword [edi + 0x34], eax
cmp dword [0x520388], ebx
je 0x4be6dc
movzx eax, word [edi + 4]
test al, 1
jne 0x4be6dc
and eax, 0xfff7
mov word [edi + 4], ax
mov ecx, 0xfff7
and word [esi + 0x2e], cx
mov word [esi + 4], ax
movzx eax, word [esi + 0x2e]
mov word [edi + 0x2e], ax
mov bl, 8
xor eax, eax
test byte [edi + 0x2e], bl
je 0x4be6f5
cmp dword [0x5203d4], ebp
setne al
lea eax, [eax*8 + 0x10]
movzx ecx, word [esi + 0x20]
movzx edx, word [esi + 0x22]
lea edx, [edx + ecx + 0x1a]
xor ecx, ecx
xor ebp, ebp
add edx, eax
adc ecx, ebp
add edx, dword [edi + 0x10]
adc ecx, dword [edi + 0x14]
add edx, 4
adc ecx, ebp
add dword [0x51ef68], edx
adc dword [0x51ef6c], ecx
cmp dword [0x520388], 2
jne 0x4be751
mov edx, dword [esi + 0x4c]
push edx
call fcn.004d194b
add esp, 4
mov dword [edi + 0x54], eax
cmp eax, ebp
je 0x4be2a1
cmp dword [0x520388], 2
jne 0x4be751
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
jmp 0x4be757
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xc], ecx
push ebp
push esi
call fcn.004bd130
test eax, eax
je 0x4be77c
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c1302
add esp, 0x28
ret 4
cmp dword [0x520388], 2
jne 0x4be790
test byte [esi + 0x2e], bl
je 0x4be790
push 0xffffffffffffffff
push 0xfffffffffffffffe
jmp 0x4be798
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push edx
push eax
call fcn.0043f7e0
mov dword [esp + 0x10], eax
cmp eax, 9
jne 0x4be802
cmp word [esi + 0x22], bp
je 0x4be7b8
mov ecx, dword [esi + 0x40]
push ecx
call fcn.004c1aa4
add esp, 4
cmp word [esi + 0x20], bp
je 0x4be7dc
mov edx, dword [esi + 0x4c]
push edx
call fcn.004c1aa4
add esp, 4
cmp word [esi + 0x20], bp
je 0x4be7dc
mov eax, dword [esi + 0x3c]
push eax
call fcn.004c1aa4
add esp, 4
mov eax, dword [esi + 0x58]
cmp eax, ebp
je 0x4be7ec
push eax
call fcn.004c1aa4
add esp, 4
push esi
call fcn.004c1aa4
add esp, 4
push 9
call fcn.004b8280
mov eax, dword [esp + 0x10]
jmp 0x4be80b
cmp eax, 2
je 0x4bea9a
cmp dword [0x5203a8], ebp
jne 0x4bea9a
cmp dword [0x520388], 2
jne 0x4be85d
test byte [edi + 4], bl
je 0x4be868
cmp dword [0x5203ac], ebp
je 0x4be99f
mov ecx, dword [0x5203b0]
mov dword [esi + 0xc], ecx
mov edx, dword [0x5203b8]
mov dword [esi + 0x10], edx
mov eax, dword [0x5203bc]
mov dword [esi + 0x14], eax
mov ecx, dword [0x5203c0]
mov dword [esi + 0x18], ecx
mov edx, dword [0x5203c4]
mov dword [esi + 0x1c], edx
test byte [edi + 4], bl
je 0x4be868
push esi
call fcn.004bd730
cmp dword [0x520460], 1
jne 0x4be8a6
mov eax, dword [0x520418]
cmp eax, dword [0x52041c]
je 0x4be8a6
mov ecx, dword [0x52043c]
mov edx, dword [0x520448]
push ecx
push edx
push eax
call fcn.0043f000
mov eax, dword [0x52043c]
push eax
mov dword [0x520448], ebp
call fcn.004c1aa4
add esp, 4
cmp dword [0x520388], 2
jne 0x4bea08
mov cx, word [esi + 2]
mov word [edi + 2], cx
movzx edx, word [esi + 6]
mov word [edi + 6], dx
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov ecx, dword [esi + 0xc]
mov dword [edi + 0xc], ecx
movzx edx, word [esi + 0x2e]
mov word [edi + 0x2e], dx
movzx eax, word [esi + 0x2e]
mov word [edi + 4], ax
mov ecx, dword [esi + 0x18]
mov dword [edi + 0x18], ecx
mov edx, dword [esi + 0x1c]
mov dword [edi + 0x1c], edx
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov ecx, dword [esi + 0x14]
mov dword [edi + 0x14], ecx
movzx edx, word [esi + 0x20]
mov word [edi + 0x20], dx
movzx eax, word [esi + 0x22]
mov word [edi + 0x22], ax
mov ecx, dword [esi + 0x40]
mov dword [edi + 0x40], ecx
movzx edx, word [esi + 0x22]
mov word [edi + 0x24], dx
mov dword [edi + 0x44], ebp
movzx eax, word [esi + 0x22]
cmp ax, bp
je 0x4be94a
movzx eax, ax
inc eax
push eax
call fcn.004c23a7
add esp, 4
mov dword [edi + 0x44], eax
cmp eax, ebp
je 0x4be2a1
mov ecx, dword [esi + 0x40]
mov edx, eax
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4be940
xor ecx, ecx
mov word [edi + 0x26], cx
xor edx, edx
mov word [edi + 0x2c], dx
mov dword [edi + 0x38], ebp
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
mov ecx, dword [esi + 0x4c]
mov dword [edi + 0x4c], ecx
mov edx, dword [esi + 0x58]
mov dword [edi + 0x58], edx
movzx eax, word [esi + 0x20]
inc eax
push eax
call fcn.004c23a7
add esp, 4
mov dword [edi + 0x50], eax
cmp eax, ebp
je 0x4be2a1
mov edi, dword [edi + 0x4c]
mov ecx, eax
lea esp, [esp]
mov al, byte [edi]
mov byte [ecx], al
inc edi
inc ecx
test al, al
jne 0x4be990
jmp 0x4bea57
cmp word [esi + 0x22], bp
je 0x4be9b1
mov eax, dword [esi + 0x40]
push eax
call fcn.004c1aa4
add esp, 4
cmp word [esi + 0x20], bp
je 0x4be9d5
mov ecx, dword [esi + 0x4c]
push ecx
call fcn.004c1aa4
add esp, 4
cmp word [esi + 0x20], bp
je 0x4be9d5
mov edx, dword [esi + 0x3c]
push edx
call fcn.004c1aa4
add esp, 4
mov eax, dword [esi + 0x58]
cmp eax, ebp
je 0x4be9e5
push eax
call fcn.004c1aa4
add esp, 4
push esi
call fcn.004c1aa4
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c1302
add esp, 0x28
ret 4
cmp word [esi + 0x22], bp
je 0x4bea1a
mov ecx, dword [esi + 0x40]
push ecx
call fcn.004c1aa4
add esp, 4
cmp word [esi + 0x20], bp
je 0x4bea3e
mov edx, dword [esi + 0x4c]
push edx
call fcn.004c1aa4
add esp, 4
cmp word [esi + 0x20], bp
je 0x4bea3e
mov eax, dword [esi + 0x3c]
push eax
call fcn.004c1aa4
add esp, 4
mov eax, dword [esi + 0x58]
cmp eax, ebp
je 0x4bea4e
push eax
call fcn.004c1aa4
add esp, 4
push esi
call fcn.004c1aa4
add esp, 4
cmp dword [0x520388], 2
jne 0x4bea81
cmp dword [esp + 0x10], 0xb
jne 0x4bea81
push 0x2ae
call fcn.00475570
mov ecx, dword [0x51ef64]
push eax
push ecx
call fcn.004ad680
add esp, 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c1302
add esp, 0x28
ret 4
cmp eax, ebp
jne 0x4beaa6
mov dword [esp + 0x10], 3
cmp dword [0x520388], 2
jne 0x4beb19
mov edx, dword [0x520454]
mov eax, dword [0x520450]
mov ecx, dword [0x5203ec]
push ebp
push edx
push eax
push ecx
mov dword [0x5203a8], ebp
call fcn.004c4a1e
add esp, 0x10
test eax, eax
je 0x4beaf8
mov edx, dword [0x51ef64]
push edx
push 0x205
call fcn.00475570
push eax
push ebp
call fcn.004ad680
add esp, 0xc
push 0xe
call fcn.004b8280
mov eax, dword [0x520450]
mov ecx, dword [0x520454]
mov dword [0x520458], eax
mov dword [0x52045c], ecx
mov dword [0x51ef68], eax
mov dword [0x51ef6c], ecx
cmp word [esi + 0x22], bp
je 0x4beb2b
mov eax, dword [esi + 0x40]
push eax
call fcn.004c1aa4
add esp, 4
cmp word [esi + 0x20], bp
je 0x4beb4f
mov ecx, dword [esi + 0x4c]
push ecx
call fcn.004c1aa4
add esp, 4
cmp word [esi + 0x20], bp
je 0x4beb4f
mov edx, dword [esi + 0x3c]
push edx
call fcn.004c1aa4
add esp, 4
mov eax, dword [esi + 0x58]
cmp eax, ebp
je 0x4beb5f
push eax
call fcn.004c1aa4
add esp, 4
push esi
call fcn.004c1aa4
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c1302
add esp, 0x28
ret 4
mov eax, dword [0x5203f0]
push eax
call fcn.004c4691
add esp, 4
mov esi, eax
neg esi
sbb esi, esi
and esi, 9
add esi, ebx
je 0x4bebad
mov ecx, dword [0x51ef64]
push ecx
mov ecx, 0x51ef08
call fcn.00433fb0
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c1302
add esp, 0x28
ret 4