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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
xor esi, esi
cmp dword [0x4c9814], esi
je 0x49c8e6
cmp dword [0x4c981c], esi
jne 0x49c8e6
call fcn.0049b450
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049e0c6
add esp, 0x4c
ret
mov eax, dword [0x4c93b8]
push ebx
push ebp
push edi
mov dword [0x4c93b0], esi
mov dword [0x4c9820], esi
mov dword [0x4c93a4], esi
cmp eax, esi
je 0x49d3c9
cmp byte [eax], 0
je 0x49d3c9
mov ecx, dword [0x4c93b4]
push esi
push 0x4b1948
push ecx
push eax
call fcn.00430040
mov ebp, eax
cmp ebp, esi
je 0x49d3c9
push 0x1004
call fcn.0049e19f
mov edi, eax
add esp, 4
cmp edi, esi
je 0x49d474
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.0049fec5
add esp, 0xc
test eax, eax
jne 0x49cb28
push ebp
call fcn.0049fdcf
add esp, 4
add eax, 0x1000
mov dword [0x4c93b0], eax
jmp 0x49c995
mov eax, dword [0x4c93b0]
cmp eax, 0x1000
jb 0x49cb34
sub eax, 0x1000
mov dword [0x4c93b0], 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.0049fc19
push 1
push 0xffffe000
push ebp
call fcn.0049fec5
lea esi, [edi + 0xfff]
add esp, 0x1c
cmp esi, edi
jb 0x49c990
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 0x49ca20
dec esi
cmp esi, edi
jae 0x49c9f0
jmp 0x49c990
mov eax, dword [0x4c93b0]
sub esi, edi
add eax, esi
mov dword [0x4c93b0], eax
push 0
add eax, 4
push eax
push ebp
mov dword [esp + 0x1c], 1
call fcn.0049fec5
add esp, 0xc
xor ebx, ebx
push edi
call fcn.0049de1d
add esp, 4
push ebp
cmp dword [esp + 0x14], ebx
je 0x49d454
push 1
lea eax, [esp + 0x24]
push 0x12
push eax
call fcn.0049fc19
add esp, 0x10
cmp eax, 1
jne 0x49d495
movzx ecx, byte [esp + 0x21]
movzx edx, byte [esp + 0x20]
shl ecx, 8
or ecx, edx
cmp ecx, 0xffff
jne 0x49cac6
movzx eax, byte [esp + 0x23]
movzx ecx, byte [esp + 0x22]
shl eax, 8
or eax, ecx
cmp eax, 0xffff
jne 0x49cac6
push 0x3b7
call fcn.0045b8f0
mov edx, dword [0x4c93b8]
push eax
push edx
call fcn.0048cce0
add esp, 8
push 0x4b1914
call fcn.00499820
movzx eax, byte [esp + 0x2d]
movzx ecx, byte [esp + 0x2c]
shl eax, 8
or eax, ecx
mov dword [0x4c93a4], eax
je 0x49cbd2
push eax
call fcn.0049e19f
add esp, 4
mov dword [0x4c9824], eax
push ebp
cmp eax, ebx
je 0x49d475
mov edx, dword [0x4c93a4]
push 1
push edx
push eax
call fcn.0049fc19
add esp, 0x10
cmp eax, 1
je 0x49cbd2
mov eax, dword [0x4c9824]
push eax
call fcn.0049de1d
mov dword [0x4c9824], ebx
jmp 0x49d423
mov dword [0x4c93b0], 0x1000
jmp 0x49cb3c
test eax, eax
jbe 0x49ca45
xor ebx, ebx
push ebx
push ebx
push ebp
call fcn.0049fec5
mov ecx, dword [0x4c93b0]
push ebp
push ecx
push 1
push edi
call fcn.0049fc19
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 0x49ca47
jmp 0x49cb80
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 0x49cbb0
dec eax
cmp eax, edi
jae 0x49cb80
jmp 0x49ca47
sub eax, edi
mov dword [0x4c93b0], eax
push ebx
add eax, 4
push eax
push ebp
mov dword [esp + 0x1c], 1
call fcn.0049fec5
add esp, 0xc
jmp 0x49ca47
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 [0x4c93b0]
shl ecx, 8
or ecx, edx
sub eax, ecx
mov dword [0x4c93ac], eax
cmp dword [0x4c981c], ebx
je 0x49cc36
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 0x49cc3a
mov dword [esp + 0x10], ebx
lea edx, [eax + 0x13]
cmp edx, 0x12
ja 0x49cc49
xor eax, eax
mov dword [0x4c93ac], eax
push ebx
push eax
push ebp
call fcn.0049fec5
add esp, 0xc
push ebp
test eax, eax
jne 0x49d454
push 1
lea eax, [esp + 0x24]
push 4
push eax
mov dword [esp + 0x24], 0x4c9820
mov dword [0x4c93a8], ebx
call fcn.0049fc19
add esp, 0x10
cmp eax, 1
jne 0x49d495
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 0x49cf50
push ebp
push 1
lea eax, [esp + 0x24]
push 0x2a
push eax
call fcn.0049fc19
add esp, 0x10
cmp eax, 1
jne 0x49d495
push 0x5c
call fcn.0049e19f
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x49d474
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 0x49cd07
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 0x49cdee
push 0x3b7
call fcn.0045b8f0
mov edx, dword [0x4c93b8]
push eax
push edx
call fcn.0048cce0
add esp, 8
push 0x4b1914
call fcn.00499820
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 0x49d453
cmp eax, 0x400
jae 0x49d453
inc eax
push eax
call fcn.0049e19f
add esp, 4
mov dword [esi + 0x48], eax
cmp eax, ebx
je 0x49d474
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x49ce55
push eax
call fcn.0049e19f
add esp, 4
mov dword [esi + 0x40], eax
cmp eax, ebx
je 0x49d474
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x49ce70
push eax
call fcn.0049e19f
add esp, 4
mov dword [esi + 0x44], eax
cmp eax, ebx
je 0x49d474
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x48]
push ebp
push 1
push ecx
push edx
call fcn.0049fc19
add esp, 0x10
cmp eax, 1
jne 0x49d495
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x49ceac
push ebp
push 1
push eax
mov eax, dword [esi + 0x40]
push eax
call fcn.0049fc19
add esp, 0x10
cmp eax, 1
jne 0x49d495
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x49cecc
mov ecx, dword [esi + 0x44]
push ebp
push 1
push eax
push ecx
call fcn.0049fc19
add esp, 0x10
cmp eax, 1
jne 0x49d495
mov eax, dword [esi + 0x18]
cmp eax, 0x400
jb 0x49cedb
mov eax, 0x3ff
mov edx, dword [esi + 0x48]
mov byte [eax + edx], 0
cmp dword [esi + 0x18], 0x400
jae 0x49d45c
mov esi, dword [esi + 0x34]
cmp esi, dword [0x4c93b0]
jae 0x49cf00
mov dword [0x4c93b0], esi
inc dword [0x4c93a8]
push ebp
push 1
lea eax, [esp + 0x24]
push 4
push eax
call fcn.0049fc19
add esp, 0x10
cmp eax, 1
jne 0x49d495
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 0x49ccb4
mov esi, dword [0x4c9820]
cmp esi, ebx
je 0x49d368
mov edi, edi
mov eax, dword [esi + 0x34]
push 0
push eax
push ebp
call fcn.0049fec5
add esp, 0xc
test eax, eax
jne 0x49d495
push ebp
push 1
lea ecx, [esp + 0x24]
push 4
push ecx
call fcn.0049fc19
add esp, 0x10
cmp eax, 1
jne 0x49d495
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 0x49d454
push 1
lea ecx, [esp + 0x24]
push 0x1a
push ecx
call fcn.0049fc19
add esp, 0x10
cmp eax, 1
jne 0x49d495
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 0x49d453
push ecx
call fcn.0049e19f
mov edi, eax
add esp, 4
test edi, edi
je 0x49d47d
mov edx, dword [esi + 0x18]
push ebp
push 1
push edx
push edi
call fcn.0049fc19
add esp, 0x10
cmp eax, 1
jne 0x49d3de
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x48]
mov edx, edi
call fcn.0049c860
push edi
test eax, eax
jne 0x49d3e6
call fcn.0049de1d
mov eax, dword [esi + 0x1c]
add esp, 4
test eax, eax
je 0x49d0fd
push eax
call fcn.0049e19f
add esp, 4
mov dword [esi + 0x3c], eax
push ebp
test eax, eax
je 0x49d475
mov ecx, dword [esi + 0x1c]
push 1
push ecx
push eax
call fcn.0049fc19
add esp, 0x10
cmp eax, 1
jne 0x49d40c
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jne 0x49d0fd
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
mov edi, edx
cmp eax, 4
jb 0x49d0ca
mov ebx, dword [edi]
cmp ebx, dword [ecx]
jne 0x49d0fd
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x49d0b6
test eax, eax
je 0x49d0ee
mov bl, byte [ecx]
cmp bl, byte [edi]
jne 0x49d0fd
cmp eax, 1
jbe 0x49d0ee
mov bl, byte [ecx + 1]
cmp bl, byte [edi + 1]
jne 0x49d0fd
cmp eax, 2
jbe 0x49d0ee
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x49d0fd
push edx
call fcn.0049de1d
mov ecx, dword [esi + 0x40]
add esp, 4
mov dword [esi + 0x3c], ecx
test byte [esi + 0x2c], 8
je 0x49d1cf
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 0x49d14b
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.0049fec5
add esp, 0xc
test eax, eax
jne 0x49d495
push ebp
push 1
lea edx, [esp + 0x50]
push 0x10
push edx
call fcn.0049fc19
add esp, 0x10
cmp eax, 1
jne 0x49d495
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 0x49d453
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 0x49d214
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 0x49d232
test edx, edx
jne 0x49d232
mov edx, 1
mov dword [esp + 0x10], edx
mov bl, byte [edi + 1]
cmp bl, byte [eax + ecx + 1]
je 0x49d248
test edx, edx
jne 0x49d248
mov edx, 1
mov dword [esp + 0x10], edx
add ecx, 2
cmp ecx, 0x16
jb 0x49d210
xor edi, edi
cmp edx, edi
je 0x49d262
cmp dword [0x4c981c], edi
je 0x49d453
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 0x49d341
movzx eax, word [esi]
push eax
shr eax, 8
push eax
call fcn.0049b190
test al, al
je 0x49d341
mov eax, dword [esi + 0x48]
push eax
push eax
call sub.USER32.dll_OemToCharA
mov eax, dword [esi + 0x48]
push eax
call fcn.004ac4fd
add esp, 4
mov dword [esi + 0x4c], eax
cmp eax, edi
je 0x49d474
mov dword [esi + 0x38], eax
mov esi, dword [esi + 0x58]
cmp esi, edi
jne 0x49cf60
xor ebx, ebx
push ebp
call fcn.0049f646
mov eax, dword [0x4c93a8]
add esp, 4
cmp eax, ebx
je 0x49d3c9
lea edx, [eax*4]
push edx
call fcn.0049e19f
add esp, 4
mov dword [0x4c93a0], eax
cmp eax, ebx
je 0x49d47d
mov ecx, dword [0x4c9820]
cmp ecx, ebx
je 0x49d3b2
mov dword [eax], ecx
mov ecx, dword [ecx + 0x58]
add eax, 4
cmp ecx, ebx
jne 0x49d3a1
mov eax, dword [0x4c93a0]
mov ecx, dword [0x4c93a8]
push 0x49b1d0
push 4
push ecx
push eax
call fcn.004a0f60
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049e0c6
add esp, 0x4c
ret
push edi
call fcn.0049de1d
jmp 0x49d423
call fcn.0049de1d
push ebp
call fcn.0049f646
add esp, 8
pop edi
pop ebp
pop ebx
mov eax, 3
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049e0c6
add esp, 0x4c
ret
mov ecx, dword [esi + 0x3c]
push ecx
call fcn.0049de1d
mov dword [esi + 0x1c], 0
mov dword [esi + 0x3c], 0
push ebp
call fcn.004a11f4
mov esi, eax
neg esi
sbb esi, esi
and esi, 9
push ebp
add esi, 2
call fcn.0049f646
add esp, 0xc
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049e0c6
add esp, 0x4c
ret
push ebp
call fcn.0049f646
add esp, 4
pop edi
pop ebp
pop ebx
mov eax, 3
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049e0c6
add esp, 0x4c
ret
push ebp
call fcn.0049f646
add esp, 4
pop edi
pop ebp
pop ebx
mov eax, 4
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049e0c6
add esp, 0x4c
ret
push ebp
call fcn.004a11f4
mov esi, eax
neg esi
sbb esi, esi
and esi, 9
push ebp
add esi, 2
call fcn.0049f646
mov ecx, dword [esp + 0x60]
add esp, 8
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
xor ecx, esp
call fcn.0049e0c6
add esp, 0x4c
ret