Function at 0x49c690
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 0x49c6c6
cmp dword [0x4c981c], esi
jne 0x49c6c6
call fcn.0049b250
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049dea6
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 0x49d1a9
cmp byte [eax], 0
je 0x49d1a9
mov ecx, dword [0x4c93b4]
push esi
push 0x4b1948
push ecx
push eax
call fcn.004300f0
mov ebp, eax
cmp ebp, esi
je 0x49d1a9
push 0x1004
call fcn.0049df7f
mov edi, eax
add esp, 4
cmp edi, esi
je 0x49d254
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.0049fca5
add esp, 0xc
test eax, eax
jne 0x49c908
push ebp
call fcn.0049fbaf
add esp, 4
add eax, 0x1000
mov dword [0x4c93b0], eax
jmp 0x49c775
mov eax, dword [0x4c93b0]
cmp eax, 0x1000
jb 0x49c914
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.0049f9f9
push 1
push 0xffffe000
push ebp
call fcn.0049fca5
lea esi, [edi + 0xfff]
add esp, 0x1c
cmp esi, edi
jb 0x49c770
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 0x49c800
dec esi
cmp esi, edi
jae 0x49c7d0
jmp 0x49c770
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.0049fca5
add esp, 0xc
xor ebx, ebx
push edi
call fcn.0049dbfd
add esp, 4
push ebp
cmp dword [esp + 0x14], ebx
je 0x49d234
push 1
lea eax, [esp + 0x24]
push 0x12
push eax
call fcn.0049f9f9
add esp, 0x10
cmp eax, 1
jne 0x49d275
movzx ecx, byte [esp + 0x21]
movzx edx, byte [esp + 0x20]
shl ecx, 8
or ecx, edx
cmp ecx, 0xffff
jne 0x49c8a6
movzx eax, byte [esp + 0x23]
movzx ecx, byte [esp + 0x22]
shl eax, 8
or eax, ecx
cmp eax, 0xffff
jne 0x49c8a6
push 0x3b7
call fcn.0045bde0
mov edx, dword [0x4c93b8]
push eax
push edx
call fcn.00445390
add esp, 8
push 0x4b1914
call fcn.00499630
movzx eax, byte [esp + 0x2d]
movzx ecx, byte [esp + 0x2c]
shl eax, 8
or eax, ecx
mov dword [0x4c93a4], eax
je 0x49c9b2
push eax
call fcn.0049df7f
add esp, 4
mov dword [0x4c9824], eax
push ebp
cmp eax, ebx
je 0x49d255
mov edx, dword [0x4c93a4]
push 1
push edx
push eax
call fcn.0049f9f9
add esp, 0x10
cmp eax, 1
je 0x49c9b2
mov eax, dword [0x4c9824]
push eax
call fcn.0049dbfd
mov dword [0x4c9824], ebx
jmp 0x49d203
mov dword [0x4c93b0], 0x1000
jmp 0x49c91c
test eax, eax
jbe 0x49c825
xor ebx, ebx
push ebx
push ebx
push ebp
call fcn.0049fca5
mov ecx, dword [0x4c93b0]
push ebp
push ecx
push 1
push edi
call fcn.0049f9f9
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 0x49c827
jmp 0x49c960
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 0x49c990
dec eax
cmp eax, edi
jae 0x49c960
jmp 0x49c827
sub eax, edi
mov dword [0x4c93b0], eax
push ebx
add eax, 4
push eax
push ebp
mov dword [esp + 0x1c], 1
call fcn.0049fca5
add esp, 0xc
jmp 0x49c827
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 0x49ca16
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 0x49ca1a
mov dword [esp + 0x10], ebx
lea edx, [eax + 0x13]
cmp edx, 0x12
ja 0x49ca29
xor eax, eax
mov dword [0x4c93ac], eax
push ebx
push eax
push ebp
call fcn.0049fca5
add esp, 0xc
push ebp
test eax, eax
jne 0x49d234
push 1
lea eax, [esp + 0x24]
push 4
push eax
mov dword [esp + 0x24], 0x4c9820
mov dword [0x4c93a8], ebx
call fcn.0049f9f9
add esp, 0x10
cmp eax, 1
jne 0x49d275
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 0x49cd30
push ebp
push 1
lea eax, [esp + 0x24]
push 0x2a
push eax
call fcn.0049f9f9
add esp, 0x10
cmp eax, 1
jne 0x49d275
push 0x5c
call fcn.0049df7f
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x49d254
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 0x49cae7
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 0x49cbce
push 0x3b7
call fcn.0045bde0
mov edx, dword [0x4c93b8]
push eax
push edx
call fcn.00445390
add esp, 8
push 0x4b1914
call fcn.00499630
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 0x49d233
cmp eax, 0x400
jae 0x49d233
inc eax
push eax
call fcn.0049df7f
add esp, 4
mov dword [esi + 0x48], eax
cmp eax, ebx
je 0x49d254
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x49cc35
push eax
call fcn.0049df7f
add esp, 4
mov dword [esi + 0x40], eax
cmp eax, ebx
je 0x49d254
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x49cc50
push eax
call fcn.0049df7f
add esp, 4
mov dword [esi + 0x44], eax
cmp eax, ebx
je 0x49d254
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x48]
push ebp
push 1
push ecx
push edx
call fcn.0049f9f9
add esp, 0x10
cmp eax, 1
jne 0x49d275
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x49cc8c
push ebp
push 1
push eax
mov eax, dword [esi + 0x40]
push eax
call fcn.0049f9f9
add esp, 0x10
cmp eax, 1
jne 0x49d275
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x49ccac
mov ecx, dword [esi + 0x44]
push ebp
push 1
push eax
push ecx
call fcn.0049f9f9
add esp, 0x10
cmp eax, 1
jne 0x49d275
mov eax, dword [esi + 0x18]
cmp eax, 0x400
jb 0x49ccbb
mov eax, 0x3ff
mov edx, dword [esi + 0x48]
mov byte [eax + edx], 0
cmp dword [esi + 0x18], 0x400
jae 0x49d23c
mov esi, dword [esi + 0x34]
cmp esi, dword [0x4c93b0]
jae 0x49cce0
mov dword [0x4c93b0], esi
inc dword [0x4c93a8]
push ebp
push 1
lea eax, [esp + 0x24]
push 4
push eax
call fcn.0049f9f9
add esp, 0x10
cmp eax, 1
jne 0x49d275
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 0x49ca94
mov esi, dword [0x4c9820]
cmp esi, ebx
je 0x49d148
mov edi, edi
mov eax, dword [esi + 0x34]
push 0
push eax
push ebp
call fcn.0049fca5
add esp, 0xc
test eax, eax
jne 0x49d275
push ebp
push 1
lea ecx, [esp + 0x24]
push 4
push ecx
call fcn.0049f9f9
add esp, 0x10
cmp eax, 1
jne 0x49d275
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 0x49d234
push 1
lea ecx, [esp + 0x24]
push 0x1a
push ecx
call fcn.0049f9f9
add esp, 0x10
cmp eax, 1
jne 0x49d275
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 0x49d233
push ecx
call fcn.0049df7f
mov edi, eax
add esp, 4
test edi, edi
je 0x49d25d
mov edx, dword [esi + 0x18]
push ebp
push 1
push edx
push edi
call fcn.0049f9f9
add esp, 0x10
cmp eax, 1
jne 0x49d1be
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x48]
mov edx, edi
call fcn.0049c640
push edi
test eax, eax
jne 0x49d1c6
call fcn.0049dbfd
mov eax, dword [esi + 0x1c]
add esp, 4
test eax, eax
je 0x49cedd
push eax
call fcn.0049df7f
add esp, 4
mov dword [esi + 0x3c], eax
push ebp
test eax, eax
je 0x49d255
mov ecx, dword [esi + 0x1c]
push 1
push ecx
push eax
call fcn.0049f9f9
add esp, 0x10
cmp eax, 1
jne 0x49d1ec
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jne 0x49cedd
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
mov edi, edx
cmp eax, 4
jb 0x49ceaa
mov ebx, dword [edi]
cmp ebx, dword [ecx]
jne 0x49cedd
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x49ce96
test eax, eax
je 0x49cece
mov bl, byte [ecx]
cmp bl, byte [edi]
jne 0x49cedd
cmp eax, 1
jbe 0x49cece
mov bl, byte [ecx + 1]
cmp bl, byte [edi + 1]
jne 0x49cedd
cmp eax, 2
jbe 0x49cece
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x49cedd
push edx
call fcn.0049dbfd
mov ecx, dword [esi + 0x40]
add esp, 4
mov dword [esi + 0x3c], ecx
test byte [esi + 0x2c], 8
je 0x49cfaf
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 0x49cf2b
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.0049fca5
add esp, 0xc
test eax, eax
jne 0x49d275
push ebp
push 1
lea edx, [esp + 0x50]
push 0x10
push edx
call fcn.0049f9f9
add esp, 0x10
cmp eax, 1
jne 0x49d275
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 0x49d233
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 0x49cff4
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 0x49d012
test edx, edx
jne 0x49d012
mov edx, 1
mov dword [esp + 0x10], edx
mov bl, byte [edi + 1]
cmp bl, byte [eax + ecx + 1]
je 0x49d028
test edx, edx
jne 0x49d028
mov edx, 1
mov dword [esp + 0x10], edx
add ecx, 2
cmp ecx, 0x16
jb 0x49cff0
xor edi, edi
cmp edx, edi
je 0x49d042
cmp dword [0x4c981c], edi
je 0x49d233
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 0x49d121
movzx eax, word [esi]
push eax
shr eax, 8
push eax
call fcn.0049afa0
test al, al
je 0x49d121
mov eax, dword [esi + 0x48]
push eax
push eax
call sub.USER32.dll_OemToCharA
mov eax, dword [esi + 0x48]
push eax
call fcn.004ac2cd
add esp, 4
mov dword [esi + 0x4c], eax
cmp eax, edi
je 0x49d254
mov dword [esi + 0x38], eax
mov esi, dword [esi + 0x58]
cmp esi, edi
jne 0x49cd40
xor ebx, ebx
push ebp
call fcn.0049f426
mov eax, dword [0x4c93a8]
add esp, 4
cmp eax, ebx
je 0x49d1a9
lea edx, [eax*4]
push edx
call fcn.0049df7f
add esp, 4
mov dword [0x4c93a0], eax
cmp eax, ebx
je 0x49d25d
mov ecx, dword [0x4c9820]
cmp ecx, ebx
je 0x49d192
mov dword [eax], ecx
mov ecx, dword [ecx + 0x58]
add eax, 4
cmp ecx, ebx
jne 0x49d181
mov eax, dword [0x4c93a0]
mov ecx, dword [0x4c93a8]
push 0x49afd0
push 4
push ecx
push eax
call fcn.004a0d30
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049dea6
add esp, 0x4c
ret
push edi
call fcn.0049dbfd
jmp 0x49d203
call fcn.0049dbfd
push ebp
call fcn.0049f426
add esp, 8
pop edi
pop ebp
pop ebx
mov eax, 3
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049dea6
add esp, 0x4c
ret
mov ecx, dword [esi + 0x3c]
push ecx
call fcn.0049dbfd
mov dword [esi + 0x1c], 0
mov dword [esi + 0x3c], 0
push ebp
call fcn.004a0fc4
mov esi, eax
neg esi
sbb esi, esi
and esi, 9
push ebp
add esi, 2
call fcn.0049f426
add esp, 0xc
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049dea6
add esp, 0x4c
ret
push ebp
call fcn.0049f426
add esp, 4
pop edi
pop ebp
pop ebx
mov eax, 3
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049dea6
add esp, 0x4c
ret
push ebp
call fcn.0049f426
add esp, 4
pop edi
pop ebp
pop ebx
mov eax, 4
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049dea6
add esp, 0x4c
ret
push ebp
call fcn.004a0fc4
mov esi, eax
neg esi
sbb esi, esi
and esi, 9
push ebp
add esi, 2
call fcn.0049f426
mov ecx, dword [esp + 0x60]
add esp, 8
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
xor ecx, esp
call fcn.0049dea6
add esp, 0x4c
ret