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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x4c03a0]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
xor esi, esi
cmp dword [0x4c985c], esi
je 0x49ce46
cmp dword [0x4c9864], esi
jne 0x49ce46
call fcn.0049b9b0
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049e626
add esp, 0x4c
ret
mov eax, dword [0x4c9400]
push ebx
push ebp
push edi
mov dword [0x4c93f8], esi
mov dword [0x4c9868], esi
mov dword [0x4c93ec], esi
cmp eax, esi
je 0x49d929
cmp byte [eax], 0
je 0x49d929
mov ecx, dword [0x4c93fc]
push esi
push 0x4b1948
push ecx
push eax
call fcn.00430430
mov ebp, eax
cmp ebp, esi
je 0x49d929
push 0x1004
call fcn.0049e6ff
mov edi, eax
add esp, 4
cmp edi, esi
je 0x49d9d4
push 2
lea ebx, [edi + 0x1000]
mov dword [esp + 0x14], esi
mov esi, ebx
push 0xfffff000
push ebp
mov byte [esi + 1], 0
mov byte [esi + 2], 0
mov byte [esi + 3], 0
call fcn.004a0425
add esp, 0xc
test eax, eax
jne 0x49d088
push ebp
call fcn.004a032f
add esp, 4
add eax, 0x1000
mov dword [0x4c93f8], eax
jmp 0x49cef5
mov eax, dword [0x4c93f8]
cmp eax, 0x1000
jb 0x49d094
sub eax, 0x1000
mov dword [0x4c93f8], eax
mov dl, byte [esi + 1]
push ebp
mov byte [ebx], dl
mov al, byte [esi + 2]
push 0x1000
mov byte [edi + 0x1001], al
mov cl, byte [esi + 3]
push 1
push edi
mov byte [edi + 0x1002], cl
call fcn.004a0179
push 1
push 0xffffe000
push ebp
call fcn.004a0425
lea esi, [edi + 0xfff]
add esp, 0x1c
cmp esi, edi
jb 0x49cef0
lea esp, [esp]
movzx edx, byte [esi + 3]
movzx eax, byte [esi + 2]
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
cmp edx, 0x6054b50
je 0x49cf80
dec esi
cmp esi, edi
jae 0x49cf50
jmp 0x49cef0
mov eax, dword [0x4c93f8]
sub esi, edi
add eax, esi
mov dword [0x4c93f8], eax
push 0
add eax, 4
push eax
push ebp
mov dword [esp + 0x1c], 1
call fcn.004a0425
add esp, 0xc
xor ebx, ebx
push edi
call fcn.0049e37d
add esp, 4
push ebp
cmp dword [esp + 0x14], ebx
je 0x49d9b4
push 1
lea eax, [esp + 0x24]
push 0x12
push eax
call fcn.004a0179
add esp, 0x10
cmp eax, 1
jne 0x49d9f5
movzx ecx, byte [esp + 0x21]
movzx edx, byte [esp + 0x20]
shl ecx, 8
or ecx, edx
cmp ecx, 0xffff
jne 0x49d026
movzx eax, byte [esp + 0x23]
movzx ecx, byte [esp + 0x22]
shl eax, 8
or eax, ecx
cmp eax, 0xffff
jne 0x49d026
push 0x3b7
call fcn.0045be10
mov edx, dword [0x4c9400]
push eax
push edx
call fcn.0048d240
add esp, 8
push 0x4b1914
call fcn.00499d80
movzx eax, byte [esp + 0x2d]
movzx ecx, byte [esp + 0x2c]
shl eax, 8
or eax, ecx
mov dword [0x4c93ec], eax
je 0x49d132
push eax
call fcn.0049e6ff
add esp, 4
mov dword [0x4c986c], eax
push ebp
cmp eax, ebx
je 0x49d9d5
mov edx, dword [0x4c93ec]
push 1
push edx
push eax
call fcn.004a0179
add esp, 0x10
cmp eax, 1
je 0x49d132
mov eax, dword [0x4c986c]
push eax
call fcn.0049e37d
mov dword [0x4c986c], ebx
jmp 0x49d983
mov dword [0x4c93f8], 0x1000
jmp 0x49d09c
test eax, eax
jbe 0x49cfa5
xor ebx, ebx
push ebx
push ebx
push ebp
call fcn.004a0425
mov ecx, dword [0x4c93f8]
push ebp
push ecx
push 1
push edi
call fcn.004a0179
movzx edx, byte [esi + 1]
mov byte [eax + edi], dl
mov cl, byte [esi + 2]
mov byte [eax + edi + 1], cl
movzx edx, byte [esi + 3]
mov byte [eax + edi + 2], dl
lea eax, [eax + edi - 1]
add esp, 0x1c
cmp eax, edi
jb 0x49cfa7
jmp 0x49d0e0
movzx ecx, byte [eax + 3]
movzx edx, byte [eax + 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax]
shl ecx, 8
or ecx, edx
cmp ecx, 0x6054b50
je 0x49d110
dec eax
cmp eax, edi
jae 0x49d0e0
jmp 0x49cfa7
sub eax, edi
mov dword [0x4c93f8], eax
push ebx
add eax, 4
push eax
push ebp
mov dword [esp + 0x1c], 1
call fcn.004a0425
add esp, 0xc
jmp 0x49cfa7
movzx ecx, byte [esp + 0x27]
movzx edx, byte [esp + 0x26]
movzx eax, byte [esp + 0x25]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0x24]
shl ecx, 8
or ecx, eax
mov eax, dword [0x4c93f8]
shl ecx, 8
or ecx, edx
sub eax, ecx
mov dword [0x4c93f4], eax
cmp dword [0x4c9864], ebx
je 0x49d196
movzx edx, byte [esp + 0x2b]
movzx ecx, byte [esp + 0x2a]
shl edx, 8
or edx, ecx
movzx ecx, byte [esp + 0x29]
shl edx, 8
or edx, ecx
movzx ecx, byte [esp + 0x28]
shl edx, 8
or edx, ecx
mov ecx, eax
sub ecx, edx
mov dword [esp + 0x10], ecx
jmp 0x49d19a
mov dword [esp + 0x10], ebx
lea edx, [eax + 0x13]
cmp edx, 0x12
ja 0x49d1a9
xor eax, eax
mov dword [0x4c93f4], eax
push ebx
push eax
push ebp
call fcn.004a0425
add esp, 0xc
push ebp
test eax, eax
jne 0x49d9b4
push 1
lea eax, [esp + 0x24]
push 4
push eax
mov dword [esp + 0x24], 0x4c9868
mov dword [0x4c93f0], ebx
call fcn.004a0179
add esp, 0x10
cmp eax, 1
jne 0x49d9f5
movzx ecx, byte [esp + 0x1f]
movzx edx, byte [esp + 0x1e]
movzx eax, byte [esp + 0x1d]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0x1c]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, edx
cmp ecx, 0x2014b50
jne 0x49d4b0
push ebp
push 1
lea eax, [esp + 0x24]
push 0x2a
push eax
call fcn.004a0179
add esp, 0x10
cmp eax, 1
jne 0x49d9f5
push 0x5c
call fcn.0049e6ff
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x49d9d4
movzx cx, byte [esp + 0x1d]
movzx dx, byte [esp + 0x1c]
shl cx, 8
or cx, dx
mov word [esi], cx
lea eax, [esi + 2]
lea ecx, [esp + 0x1e]
sub ecx, eax
mov edi, 0x16
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
sub edi, 1
jne 0x49d267
movzx eax, byte [esp + 0x35]
movzx ecx, byte [esp + 0x34]
shl eax, 8
or eax, ecx
mov dword [esi + 0x18], eax
movzx edx, byte [esp + 0x37]
movzx eax, byte [esp + 0x36]
shl edx, 8
or edx, eax
mov dword [esi + 0x20], edx
movzx ecx, byte [esp + 0x39]
movzx edx, byte [esp + 0x38]
shl ecx, 8
or ecx, edx
mov dword [esi + 0x24], ecx
movzx eax, byte [esp + 0x3b]
movzx cx, byte [esp + 0x3a]
shl ax, 8
or ax, cx
mov word [esi + 0x28], ax
movzx dx, byte [esp + 0x3d]
movzx eax, byte [esp + 0x3c]
shl dx, 8
or dx, ax
mov word [esi + 0x2a], dx
movzx ecx, byte [esp + 0x41]
movzx edx, byte [esp + 0x40]
movzx eax, byte [esp + 0x3f]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0x3e]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, edx
mov dword [esi + 0x30], ecx
movzx eax, byte [esp + 0x45]
movzx ecx, byte [esp + 0x44]
movzx edx, byte [esp + 0x43]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x42]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
add eax, dword [esp + 0x10]
cmp dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x34], eax
jne 0x49d34e
push 0x3b7
call fcn.0045be10
mov edx, dword [0x4c9400]
push eax
push edx
call fcn.0048d240
add esp, 8
push 0x4b1914
call fcn.00499d80
mov eax, dword [esp + 0x14]
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x4c], ebx
mov dword [eax], esi
lea eax, [esi + 0x58]
mov dword [eax], ebx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x49d9b3
cmp eax, 0x400
jae 0x49d9b3
inc eax
push eax
call fcn.0049e6ff
add esp, 4
mov dword [esi + 0x48], eax
cmp eax, ebx
je 0x49d9d4
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x49d3b5
push eax
call fcn.0049e6ff
add esp, 4
mov dword [esi + 0x40], eax
cmp eax, ebx
je 0x49d9d4
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x49d3d0
push eax
call fcn.0049e6ff
add esp, 4
mov dword [esi + 0x44], eax
cmp eax, ebx
je 0x49d9d4
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x48]
push ebp
push 1
push ecx
push edx
call fcn.004a0179
add esp, 0x10
cmp eax, 1
jne 0x49d9f5
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x49d40c
push ebp
push 1
push eax
mov eax, dword [esi + 0x40]
push eax
call fcn.004a0179
add esp, 0x10
cmp eax, 1
jne 0x49d9f5
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x49d42c
mov ecx, dword [esi + 0x44]
push ebp
push 1
push eax
push ecx
call fcn.004a0179
add esp, 0x10
cmp eax, 1
jne 0x49d9f5
mov eax, dword [esi + 0x18]
cmp eax, 0x400
jb 0x49d43b
mov eax, 0x3ff
mov edx, dword [esi + 0x48]
mov byte [eax + edx], 0
cmp dword [esi + 0x18], 0x400
jae 0x49d9bc
mov esi, dword [esi + 0x34]
cmp esi, dword [0x4c93f8]
jae 0x49d460
mov dword [0x4c93f8], esi
inc dword [0x4c93f0]
push ebp
push 1
lea eax, [esp + 0x24]
push 4
push eax
call fcn.004a0179
add esp, 0x10
cmp eax, 1
jne 0x49d9f5
movzx ecx, byte [esp + 0x1f]
movzx edx, byte [esp + 0x1e]
movzx eax, byte [esp + 0x1d]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0x1c]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, edx
cmp ecx, 0x2014b50
je 0x49d214
mov esi, dword [0x4c9868]
cmp esi, ebx
je 0x49d8c8
mov edi, edi
mov eax, dword [esi + 0x34]
push 0
push eax
push ebp
call fcn.004a0425
add esp, 0xc
test eax, eax
jne 0x49d9f5
push ebp
push 1
lea ecx, [esp + 0x24]
push 4
push ecx
call fcn.004a0179
add esp, 0x10
cmp eax, 1
jne 0x49d9f5
movzx edx, byte [esp + 0x1f]
movzx eax, byte [esp + 0x1e]
movzx ecx, byte [esp + 0x1d]
shl edx, 8
or edx, eax
movzx eax, byte [esp + 0x1c]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
push ebp
cmp edx, 0x4034b50
jne 0x49d9b4
push 1
lea ecx, [esp + 0x24]
push 0x1a
push ecx
call fcn.004a0179
add esp, 0x10
cmp eax, 1
jne 0x49d9f5
movzx dx, byte [esp + 0x1f]
movzx ax, byte [esp + 0x1e]
shl dx, 8
or dx, ax
mov word [esi + 0x2c], dx
movzx eax, byte [esp + 0x33]
movzx ecx, byte [esp + 0x32]
movzx edx, byte [esp + 0x35]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x34]
shl edx, 8
or edx, ecx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], edx
cmp eax, ecx
jne 0x49d9b3
push ecx
call fcn.0049e6ff
mov edi, eax
add esp, 4
test edi, edi
je 0x49d9dd
mov edx, dword [esi + 0x18]
push ebp
push 1
push edx
push edi
call fcn.004a0179
add esp, 0x10
cmp eax, 1
jne 0x49d93e
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x48]
mov edx, edi
call fcn.0049cdc0
push edi
test eax, eax
jne 0x49d946
call fcn.0049e37d
mov eax, dword [esi + 0x1c]
add esp, 4
test eax, eax
je 0x49d65d
push eax
call fcn.0049e6ff
add esp, 4
mov dword [esi + 0x3c], eax
push ebp
test eax, eax
je 0x49d9d5
mov ecx, dword [esi + 0x1c]
push 1
push ecx
push eax
call fcn.004a0179
add esp, 0x10
cmp eax, 1
jne 0x49d96c
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jne 0x49d65d
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
mov edi, edx
cmp eax, 4
jb 0x49d62a
mov ebx, dword [edi]
cmp ebx, dword [ecx]
jne 0x49d65d
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x49d616
test eax, eax
je 0x49d64e
mov bl, byte [ecx]
cmp bl, byte [edi]
jne 0x49d65d
cmp eax, 1
jbe 0x49d64e
mov bl, byte [ecx + 1]
cmp bl, byte [edi + 1]
jne 0x49d65d
cmp eax, 2
jbe 0x49d64e
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x49d65d
push edx
call fcn.0049e37d
mov ecx, dword [esi + 0x40]
add esp, 4
mov dword [esi + 0x3c], ecx
test byte [esi + 0x2c], 8
je 0x49d72f
movzx eax, byte [esp + 0x2d]
movzx edx, byte [esp + 0x2c]
movzx ecx, byte [esp + 0x2b]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x2a]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
jne 0x49d6ab
movzx eax, byte [esi + 0x13]
movzx ecx, byte [esi + 0x12]
movzx edx, byte [esi + 0x11]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x10]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
mov edx, dword [esi + 0x1c]
add edx, dword [esi + 0x34]
push 0
add edx, eax
mov eax, dword [esi + 0x18]
lea ecx, [edx + eax + 0x1e]
push ecx
push ebp
call fcn.004a0425
add esp, 0xc
test eax, eax
jne 0x49d9f5
push ebp
push 1
lea edx, [esp + 0x50]
push 0x10
push edx
call fcn.004a0179
add esp, 0x10
cmp eax, 1
jne 0x49d9f5
movzx eax, byte [esp + 0x4b]
movzx ecx, byte [esp + 0x4a]
movzx edx, byte [esp + 0x49]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x48]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
cmp eax, 0x8074b50
jne 0x49d9b3
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x26], edx
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], ecx
mov cl, byte [esi + 5]
movzx di, byte [esi + 4]
lea eax, [esi + 2]
movzx dx, cl
shl dx, 8
or dx, di
movzx edx, dx
and cl, 0x1f
mov dword [esp + 0x18], edx
mov byte [eax + 3], cl
and byte [esp + 0x1f], 0x1f
xor ecx, ecx
mov edx, eax
lea edi, [esp + 0x1c]
sub edx, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jmp 0x49d774
mov edx, dword [esp + 0x14]
mov bl, byte [esp + ecx + 0x1c]
lea edi, [esp + ecx + 0x1c]
cmp bl, byte [edi + edx]
mov edx, dword [esp + 0x10]
je 0x49d792
test edx, edx
jne 0x49d792
mov edx, 1
mov dword [esp + 0x10], edx
mov bl, byte [edi + 1]
cmp bl, byte [eax + ecx + 1]
je 0x49d7a8
test edx, edx
jne 0x49d7a8
mov edx, 1
mov dword [esp + 0x10], edx
add ecx, 2
cmp ecx, 0x16
jb 0x49d770
xor edi, edi
cmp edx, edi
je 0x49d7c2
cmp dword [0x4c9864], edi
je 0x49d9b3
movzx ecx, byte [eax + 0x15]
movzx edx, byte [eax + 0x14]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0x13]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0x12]
shl ecx, 8
or ecx, edx
mov dword [esi + 0x14], ecx
movzx ecx, byte [eax + 0x11]
movzx edx, byte [eax + 0x10]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0xf]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0xe]
shl ecx, 8
or ecx, edx
mov dword [esi + 0x10], ecx
movzx ecx, byte [eax + 0xd]
movzx edx, byte [eax + 0xc]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0xb]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0xa]
shl ecx, 8
or ecx, edx
mov dword [esi + 0xc], ecx
movzx ecx, byte [eax + 9]
movzx edx, byte [eax + 8]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 7]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 6]
shl ecx, 8
or ecx, edx
mov dword [esi + 8], ecx
movzx cx, byte [eax + 5]
movzx edx, byte [eax + 4]
shl cx, 8
or cx, dx
mov word [esi + 6], cx
mov ecx, dword [esp + 0x18]
mov word [esi + 4], cx
movzx edx, byte [eax + 1]
movzx bx, byte [eax]
shl dx, 8
or dx, bx
mov word [eax], dx
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
test ecx, 0x800
jne 0x49d8a1
movzx eax, word [esi]
push eax
shr eax, 8
push eax
call fcn.0049b6f0
test al, al
je 0x49d8a1
mov eax, dword [esi + 0x48]
push eax
push eax
call sub.USER32.dll_OemToCharA
mov eax, dword [esi + 0x48]
push eax
call fcn.004aca5d
add esp, 4
mov dword [esi + 0x4c], eax
cmp eax, edi
je 0x49d9d4
mov dword [esi + 0x38], eax
mov esi, dword [esi + 0x58]
cmp esi, edi
jne 0x49d4c0
xor ebx, ebx
push ebp
call fcn.0049fba6
mov eax, dword [0x4c93f0]
add esp, 4
cmp eax, ebx
je 0x49d929
lea edx, [eax*4]
push edx
call fcn.0049e6ff
add esp, 4
mov dword [0x4c93e8], eax
cmp eax, ebx
je 0x49d9dd
mov ecx, dword [0x4c9868]
cmp ecx, ebx
je 0x49d912
mov dword [eax], ecx
mov ecx, dword [ecx + 0x58]
add eax, 4
cmp ecx, ebx
jne 0x49d901
mov eax, dword [0x4c93e8]
mov ecx, dword [0x4c93f0]
push 0x49b730
push 4
push ecx
push eax
call fcn.004a1570
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049e626
add esp, 0x4c
ret
push edi
call fcn.0049e37d
jmp 0x49d983
call fcn.0049e37d
push ebp
call fcn.0049fba6
add esp, 8
pop edi
pop ebp
pop ebx
mov eax, 3
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049e626
add esp, 0x4c
ret
mov ecx, dword [esi + 0x3c]
push ecx
call fcn.0049e37d
mov dword [esi + 0x1c], 0
mov dword [esi + 0x3c], 0
push ebp
call fcn.004a1804
mov esi, eax
neg esi
sbb esi, esi
and esi, 9
push ebp
add esi, 2
call fcn.0049fba6
add esp, 0xc
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049e626
add esp, 0x4c
ret
push ebp
call fcn.0049fba6
add esp, 4
pop edi
pop ebp
pop ebx
mov eax, 3
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049e626
add esp, 0x4c
ret
push ebp
call fcn.0049fba6
add esp, 4
pop edi
pop ebp
pop ebx
mov eax, 4
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049e626
add esp, 0x4c
ret
push ebp
call fcn.004a1804
mov esi, eax
neg esi
sbb esi, esi
and esi, 9
push ebp
add esi, 2
call fcn.0049fba6
mov ecx, dword [esp + 0x60]
add esp, 8
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
xor ecx, esp
call fcn.0049e626
add esp, 0x4c
ret