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

Disassembly:
sub esp, 0x28
mov eax, dword [0x4d98f0]
xor eax, esp
mov dword [esp + 0x24], eax
cmp dword [0x508768], 2
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
je 0x4ac98c
mov ebp, dword [edi + 0x28]
mov eax, dword [edi + 0x34]
mov ebx, dword [edi + 0x30]
mov dword [esp + 0x14], eax
cmp ebp, dword [0x5087e8]
je 0x4ac7f4
mov eax, dword [0x5087d0]
test eax, eax
je 0x4ac7f4
push eax
call fcn.004b2d6e
add esp, 4
mov dword [0x5087d0], 0
mov ecx, dword [0x5087d4]
push ebp
push ecx
mov dword [0x5087e8], ebp
call fcn.004380b0
mov esi, eax
mov eax, dword [0x5087d0]
test eax, eax
jne 0x4ac8a4
push 0x4c8110
push esi
call fcn.004b2eb0
add esp, 8
mov dword [0x5087d0], eax
test eax, eax
jne 0x4ac8a4
lea ecx, [ecx]
cmp dword [0x4d7f40], 0
jne 0x4ac84d
push esi
push 0
mov ecx, 0x5072f4
call fcn.0042d280
push 0x12
call fcn.004a68d0
push ebp
call fcn.00438a00
cmp eax, 9
je 0x4ac90e
mov ecx, dword [0x508768]
cmp ecx, 1
je 0x4ac86c
cmp ecx, 2
jne 0x4ac875
cmp eax, 3
je 0x4ac972
push esi
call fcn.004b01c1
mov edx, dword [0x5087d4]
add esp, 4
push ebp
push edx
call fcn.004380b0
mov esi, eax
push 0x4c8110
push esi
call fcn.004b2eb0
add esp, 8
mov dword [0x5087d0], eax
test eax, eax
je 0x4ac830
xor ebp, ebp
cmp esi, ebp
je 0x4ac8b8
push esi
call fcn.004b01c1
mov eax, dword [0x5087d0]
add esp, 4
mov ecx, dword [esp + 0x14]
push ebp
push ecx
push ebx
push eax
call fcn.004b2f63
add esp, 0x10
test eax, eax
je 0x4ac928
mov edx, dword [0x5087d0]
push edx
call fcn.004b2d6e
mov eax, dword [0x507344]
add esp, 4
push eax
push ebp
push eax
push ebp
mov ecx, 0x5072f4
mov dword [0x5087d0], ebp
call fcn.0042d090
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004affec
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.004affec
add esp, 0x28
ret 4
cmp dword [0x508768], 2
je 0x4ac98c
mov eax, dword [0x5087d0]
push 0x4ce538
call fcn.004aa150
test eax, eax
jne 0x4ac98c
mov eax, dword [0x5087d0]
push eax
call fcn.004b2d6e
add esp, 4
push 0x2ad
mov dword [0x5087d0], ebp
call fcn.00466860
mov ecx, dword [0x507344]
push eax
push ecx
call fcn.00499df0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004affec
add esp, 0x28
ret 4
mov edx, dword [0x5087d0]
push edx
push 1
lea eax, [esp + 0x20]
push 0x1a
push eax
call fcn.004b2cda
add esp, 0x10
cmp eax, 1
je 0x4aca0c
mov ecx, dword [0x5087d0]
push ecx
call fcn.004b2822
add esp, 4
cmp dword [0x508768], 2
mov esi, eax
je 0x4ac9d2
mov edx, dword [0x5087d0]
push edx
call fcn.004b2d6e
add esp, 4
test esi, esi
je 0x4ac9eb
mov eax, dword [0x507344]
push eax
push 0
push eax
push 0
mov ecx, 0x5072f4
call fcn.0042d090
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.004affec
add esp, 0x28
ret 4
push 0x80
call fcn.004b00f7
mov esi, eax
xor ebp, ebp
add esp, 4
cmp esi, ebp
jne 0x4aca52
cmp dword [0x508768], 2
je 0x4aca38
mov eax, dword [0x5087d0]
push eax
call fcn.004b2d6e
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004affec
add esp, 0x28
ret 4
movzx ecx, byte [esp + 0x19]
movzx edx, byte [esp + 0x18]
shl cx, 8
or cx, dx
mov word [esi + 2], cx
movzx eax, byte [esp + 0x1b]
movzx ecx, byte [esp + 0x1a]
shl ax, 8
or ax, cx
mov word [esi + 0x2e], ax
movzx edx, byte [esp + 0x1d]
movzx eax, byte [esp + 0x1c]
shl dx, 8
or dx, ax
mov word [esi + 6], dx
movzx ecx, byte [esp + 0x21]
movzx eax, byte [esp + 0x20]
shl cx, 8
movzx edx, cx
movzx ecx, byte [esp + 0x1f]
or edx, eax
shl edx, 0x10
shl cx, 8
movzx eax, cx
movzx ecx, byte [esp + 0x1e]
or edx, eax
or edx, ecx
mov dword [esi + 8], edx
movzx edx, byte [esp + 0x25]
movzx ecx, byte [esp + 0x24]
shl dx, 8
movzx eax, dx
movzx edx, byte [esp + 0x23]
or eax, ecx
shl dx, 8
movzx ecx, dx
movzx edx, byte [esp + 0x22]
shl eax, 0x10
or eax, ecx
or eax, edx
mov dword [esi + 0xc], eax
movzx eax, byte [esp + 0x2f]
movzx ecx, byte [esp + 0x2e]
shl ax, 8
or ax, cx
mov word [esi + 0x20], ax
movzx edx, byte [esp + 0x31]
movzx eax, byte [esp + 0x30]
shl dx, 8
or dx, ax
mov ebx, 2
mov word [esi + 0x22], dx
cmp dword [0x508768], ebx
jne 0x4acc2d
movzx ecx, byte [esp + 0x29]
movzx eax, byte [esp + 0x28]
shl cx, 8
movzx edx, cx
movzx ecx, byte [esp + 0x27]
or edx, eax
shl cx, 8
shl edx, 0x10
movzx eax, cx
movzx ecx, byte [esp + 0x26]
or edx, eax
or edx, ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], ebp
movzx edx, byte [esp + 0x2d]
movzx ecx, byte [esp + 0x2c]
shl dx, 8
movzx eax, dx
movzx edx, byte [esp + 0x2b]
or eax, ecx
shl dx, 8
movzx ecx, dx
movzx edx, byte [esp + 0x2a]
shl eax, 0x10
or eax, ecx
or eax, edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebp
cmp dword [0x508768], ebx
jne 0x4acc2d
movzx eax, word [esi + 2]
mov cx, ax
shr cx, 8
movzx ecx, cx
sub eax, ecx
movzx eax, ax
cmp cx, 0x28
jbe 0x4acbe4
mov edx, dword [edi + 0x4c]
push edx
push 0x342
call fcn.00466860
push eax
mov eax, dword [0x507344]
push eax
call fcn.00499df0
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.004affec
add esp, 0x28
ret 4
cmp ax, 0x64
jbe 0x4acc22
mov ecx, dword [edi + 0x4c]
push ecx
push 0x342
call fcn.00466860
mov edx, dword [0x507344]
push eax
push edx
call fcn.00499df0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004affec
add esp, 0x28
ret 4
mov eax, 0xc8
cmp word [esi + 6], ax
ja 0x4acbea
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.004b00f7
add esp, 4
mov dword [esi + 0x4c], eax
cmp eax, ebp
je 0x4aca38
movzx eax, word [esi + 0x22]
cmp ax, bp
je 0x4acc78
movzx ecx, ax
push ecx
call fcn.004b00f7
add esp, 4
mov dword [esi + 0x40], eax
cmp eax, ebp
je 0x4aca38
mov edx, dword [0x5087d0]
movzx eax, word [esi + 0x20]
mov ecx, dword [esi + 0x4c]
push edx
push 1
push eax
push ecx
call fcn.004b2cda
add esp, 0x10
cmp eax, 1
jne 0x4ad311
movzx eax, word [esi + 0x22]
cmp ax, bp
je 0x4accc6
mov edx, dword [0x5087d0]
mov ecx, dword [esi + 0x40]
push edx
movzx eax, ax
push 1
push eax
push ecx
call fcn.004b2cda
add esp, 0x10
cmp eax, 1
jne 0x4ad311
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.004b00f7
add esp, 4
mov dword [esi + 0x3c], eax
cmp eax, ebp
je 0x4aca38
mov ecx, dword [esi + 0x4c]
mov edx, eax
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4accf0
call fcn.004a94c0
xor edx, edx
mov dword [0x5087b4], eax
mov word [esi], dx
cmp dword [0x508768], ebx
je 0x4acd71
mov ax, word [edi]
mov ecx, 0x800
mov word [esi], ax
test word [edi + 4], cx
je 0x4acd4f
mov eax, dword [esi + 0x4c]
push eax
mov dword [esi + 0x58], eax
call fcn.00438760
cmp eax, ebp
jne 0x4acd4a
mov edx, dword [esi + 0x58]
push edx
call fcn.004c1387
add esp, 4
mov dword [esi + 0x4c], eax
cmp eax, ebp
jne 0x4acd55
jmp 0x4aca38
mov dword [esi + 0x4c], eax
jmp 0x4acd55
push esi
call fcn.004a91f0
mov eax, 0xff00
test word [edi], ax
jne 0x4acd69
mov eax, dword [esi + 0x4c]
push eax
push eax
call fcn.004af980
cmp dword [0x508768], ebx
jne 0x4acda5
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 0x4acdbd
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 [0x508768], 3
jne 0x4ace24
mov eax, dword [edi + 0x4c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4acdd0
sub eax, edx
mov word [edi + 0x20], ax
mov ecx, dword [esi + 0x4c]
push ecx
mov word [esi + 0x20], ax
call fcn.004b01c1
mov edx, dword [edi + 0x4c]
push edx
call fcn.004c1387
add esp, 8
mov dword [esi + 0x4c], eax
cmp eax, ebp
je 0x4aca38
mov eax, dword [esi + 0x58]
push eax
call fcn.004b01c1
mov eax, dword [edi + 0x58]
add esp, 4
cmp eax, ebp
jne 0x4ace18
xor eax, eax
jmp 0x4ace21
push eax
call fcn.004c1387
add esp, 4
mov dword [esi + 0x58], eax
mov ecx, dword [0x5087fc]
mov dword [edi + 0x28], ecx
mov edx, dword [0x508838]
mov dword [edi + 0x30], edx
mov eax, dword [0x50883c]
mov dword [edi + 0x34], eax
cmp dword [0x508768], ebx
je 0x4ace6c
movzx eax, word [edi + 4]
test al, 1
jne 0x4ace6c
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 0x4ace85
cmp dword [0x5087b4], 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 [0x507348], edx
adc dword [0x50734c], ecx
cmp dword [0x508768], 2
jne 0x4acee1
mov edx, dword [esi + 0x4c]
push edx
call fcn.004c1387
add esp, 4
mov dword [edi + 0x54], eax
cmp eax, ebp
je 0x4aca38
cmp dword [0x508768], 2
jne 0x4acee1
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
jmp 0x4acee7
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xc], ecx
push ebp
push esi
call fcn.004ab8c0
test eax, eax
je 0x4acf0c
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004affec
add esp, 0x28
ret 4
cmp dword [0x508768], 2
jne 0x4acf20
test byte [esi + 0x2e], bl
je 0x4acf20
push 0xffffffffffffffff
push 0xfffffffffffffffe
jmp 0x4acf28
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push edx
push eax
call fcn.00438af0
mov dword [esp + 0x10], eax
cmp eax, 9
jne 0x4acf92
cmp word [esi + 0x22], bp
je 0x4acf48
mov ecx, dword [esi + 0x40]
push ecx
call fcn.004b01c1
add esp, 4
cmp word [esi + 0x20], bp
je 0x4acf6c
mov edx, dword [esi + 0x4c]
push edx
call fcn.004b01c1
add esp, 4
cmp word [esi + 0x20], bp
je 0x4acf6c
mov eax, dword [esi + 0x3c]
push eax
call fcn.004b01c1
add esp, 4
mov eax, dword [esi + 0x58]
cmp eax, ebp
je 0x4acf7c
push eax
call fcn.004b01c1
add esp, 4
push esi
call fcn.004b01c1
add esp, 4
push 9
call fcn.004a68d0
mov eax, dword [esp + 0x10]
jmp 0x4acf9b
cmp eax, 2
je 0x4ad22a
cmp dword [0x508788], ebp
jne 0x4ad22a
cmp dword [0x508768], 2
jne 0x4acfed
test byte [edi + 4], bl
je 0x4acff8
cmp dword [0x50878c], ebp
je 0x4ad12f
mov ecx, dword [0x508790]
mov dword [esi + 0xc], ecx
mov edx, dword [0x508798]
mov dword [esi + 0x10], edx
mov eax, dword [0x50879c]
mov dword [esi + 0x14], eax
mov ecx, dword [0x5087a0]
mov dword [esi + 0x18], ecx
mov edx, dword [0x5087a4]
mov dword [esi + 0x1c], edx
test byte [edi + 4], bl
je 0x4acff8
push esi
call fcn.004abec0
cmp dword [0x508840], 1
jne 0x4ad036
mov eax, dword [0x5087f8]
cmp eax, dword [0x5087fc]
je 0x4ad036
mov ecx, dword [0x50881c]
mov edx, dword [0x508828]
push ecx
push edx
push eax
call fcn.00438310
mov eax, dword [0x50881c]
push eax
mov dword [0x508828], ebp
call fcn.004b01c1
add esp, 4
cmp dword [0x508768], 2
jne 0x4ad198
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 0x4ad0da
movzx eax, ax
inc eax
push eax
call fcn.004b00f7
add esp, 4
mov dword [edi + 0x44], eax
cmp eax, ebp
je 0x4aca38
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 0x4ad0d0
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.004b00f7
add esp, 4
mov dword [edi + 0x50], eax
cmp eax, ebp
je 0x4aca38
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 0x4ad120
jmp 0x4ad1e7
cmp word [esi + 0x22], bp
je 0x4ad141
mov eax, dword [esi + 0x40]
push eax
call fcn.004b01c1
add esp, 4
cmp word [esi + 0x20], bp
je 0x4ad165
mov ecx, dword [esi + 0x4c]
push ecx
call fcn.004b01c1
add esp, 4
cmp word [esi + 0x20], bp
je 0x4ad165
mov edx, dword [esi + 0x3c]
push edx
call fcn.004b01c1
add esp, 4
mov eax, dword [esi + 0x58]
cmp eax, ebp
je 0x4ad175
push eax
call fcn.004b01c1
add esp, 4
push esi
call fcn.004b01c1
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004affec
add esp, 0x28
ret 4
cmp word [esi + 0x22], bp
je 0x4ad1aa
mov ecx, dword [esi + 0x40]
push ecx
call fcn.004b01c1
add esp, 4
cmp word [esi + 0x20], bp
je 0x4ad1ce
mov edx, dword [esi + 0x4c]
push edx
call fcn.004b01c1
add esp, 4
cmp word [esi + 0x20], bp
je 0x4ad1ce
mov eax, dword [esi + 0x3c]
push eax
call fcn.004b01c1
add esp, 4
mov eax, dword [esi + 0x58]
cmp eax, ebp
je 0x4ad1de
push eax
call fcn.004b01c1
add esp, 4
push esi
call fcn.004b01c1
add esp, 4
cmp dword [0x508768], 2
jne 0x4ad211
cmp dword [esp + 0x10], 0xb
jne 0x4ad211
push 0x2ad
call fcn.00466860
mov ecx, dword [0x507344]
push eax
push ecx
call fcn.00499df0
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.004affec
add esp, 0x28
ret 4
cmp eax, ebp
jne 0x4ad236
mov dword [esp + 0x10], 3
cmp dword [0x508768], 2
jne 0x4ad2a9
mov edx, dword [0x508834]
mov eax, dword [0x508830]
mov ecx, dword [0x5087cc]
push ebp
push edx
push eax
push ecx
mov dword [0x508788], ebp
call fcn.004b2f63
add esp, 0x10
test eax, eax
je 0x4ad288
mov edx, dword [0x507344]
push edx
push 0x204
call fcn.00466860
push eax
push ebp
call fcn.00499df0
add esp, 0xc
push 0xe
call fcn.004a68d0
mov eax, dword [0x508830]
mov ecx, dword [0x508834]
mov dword [0x508838], eax
mov dword [0x50883c], ecx
mov dword [0x507348], eax
mov dword [0x50734c], ecx
cmp word [esi + 0x22], bp
je 0x4ad2bb
mov eax, dword [esi + 0x40]
push eax
call fcn.004b01c1
add esp, 4
cmp word [esi + 0x20], bp
je 0x4ad2df
mov ecx, dword [esi + 0x4c]
push ecx
call fcn.004b01c1
add esp, 4
cmp word [esi + 0x20], bp
je 0x4ad2df
mov edx, dword [esi + 0x3c]
push edx
call fcn.004b01c1
add esp, 4
mov eax, dword [esi + 0x58]
cmp eax, ebp
je 0x4ad2ef
push eax
call fcn.004b01c1
add esp, 4
push esi
call fcn.004b01c1
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.004affec
add esp, 0x28
ret 4
mov eax, dword [0x5087d0]
push eax
call fcn.004b2822
add esp, 4
mov esi, eax
neg esi
sbb esi, esi
and esi, 9
add esi, ebx
je 0x4ad33f
mov eax, dword [0x507344]
push eax
push ebp
push eax
push ebp
mov ecx, 0x5072f4
call fcn.0042d090
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004affec
add esp, 0x28
ret 4