Function at 0x49d290
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 0x49d2c6
cmp dword [0x4c981c], esi
jne 0x49d2c6
call fcn.0049be50
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049eaa6
add esp, 0x4c
ret
mov eax, dword [0x4c93b8]
push ebx
push ebp
push edi
mov dword [case.0x49aaaa.2], esi
mov dword [0x4c9820], esi
mov dword [0x4c93a4], esi
cmp eax, esi
je 0x49dda9
cmp byte [eax], 0
je 0x49dda9
mov ecx, dword [0x4c93b4]
push esi
push 0x4b1948
push ecx
push eax
call fcn.00430cf0
mov ebp, eax
cmp ebp, esi
je 0x49dda9
push 0x1004
call fcn.0049eb7f
mov edi, eax
add esp, 4
cmp edi, esi
je 0x49de54
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.004a08a5
add esp, 0xc
test eax, eax
jne 0x49d508
push ebp
call fcn.004a07af
add esp, 4
add eax, 0x1000
mov dword [case.0x49aaaa.2], eax
jmp 0x49d375
mov eax, dword [case.0x49aaaa.2]
cmp eax, 0x1000
jb 0x49d514
sub eax, 0x1000
mov dword [case.0x49aaaa.2], 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.004a05f9
push 1
push 0xffffe000
push ebp
call fcn.004a08a5
lea esi, [edi + 0xfff]
add esp, 0x1c
cmp esi, edi
jb 0x49d370
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 0x49d400
dec esi
cmp esi, edi
jae 0x49d3d0
jmp 0x49d370
mov eax, dword [case.0x49aaaa.2]
sub esi, edi
add eax, esi
mov dword [case.0x49aaaa.2], eax
push 0
add eax, 4
push eax
push ebp
mov dword [esp + 0x1c], 1
call fcn.004a08a5
add esp, 0xc
xor ebx, ebx
push edi
call fcn.0049e7fd
add esp, 4
push ebp
cmp dword [esp + 0x14], ebx
je 0x49de34
push 1
lea eax, [esp + 0x24]
push 0x12
push eax
call fcn.004a05f9
add esp, 0x10
cmp eax, 1
jne 0x49de75
movzx ecx, byte [esp + 0x21]
movzx edx, byte [esp + 0x20]
shl ecx, 8
or ecx, edx
cmp ecx, 0xffff
jne 0x49d4a6
movzx eax, byte [esp + 0x23]
movzx ecx, byte [esp + 0x22]
shl eax, 8
or eax, ecx
cmp eax, 0xffff
jne 0x49d4a6
push 0x3b7
call fcn.0045c9e0
mov edx, dword [0x4c93b8]
push eax
push edx
call fcn.00445f90
add esp, 8
push 0x4b1914
call fcn.0049a230
movzx eax, byte [esp + 0x2d]
movzx ecx, byte [esp + 0x2c]
shl eax, 8
or eax, ecx
mov dword [0x4c93a4], eax
je 0x49d5b2
push eax
call fcn.0049eb7f
add esp, 4
mov dword [0x4c9824], eax
push ebp
cmp eax, ebx
je 0x49de55
mov edx, dword [0x4c93a4]
push 1
push edx
push eax
call fcn.004a05f9
add esp, 0x10
cmp eax, 1
je 0x49d5b2
mov eax, dword [0x4c9824]
push eax
call fcn.0049e7fd
mov dword [0x4c9824], ebx
jmp 0x49de03
mov dword [case.0x49aaaa.2], 0x1000
jmp 0x49d51c
test eax, eax
jbe 0x49d425
xor ebx, ebx
push ebx
push ebx
push ebp
call fcn.004a08a5
mov ecx, dword [case.0x49aaaa.2]
push ebp
push ecx
push 1
push edi
call fcn.004a05f9
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 0x49d427
jmp 0x49d560
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 0x49d590
dec eax
cmp eax, edi
jae 0x49d560
jmp 0x49d427
sub eax, edi
mov dword [case.0x49aaaa.2], eax
push ebx
add eax, 4
push eax
push ebp
mov dword [esp + 0x1c], 1
call fcn.004a08a5
add esp, 0xc
jmp 0x49d427
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 [case.0x49aaaa.2]
shl ecx, 8
or ecx, edx
sub eax, ecx
mov dword [0x4c93ac], eax
cmp dword [0x4c981c], ebx
je 0x49d616
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 0x49d61a
mov dword [esp + 0x10], ebx
lea edx, [eax + 0x13]
cmp edx, 0x12
ja 0x49d629
xor eax, eax
mov dword [0x4c93ac], eax
push ebx
push eax
push ebp
call fcn.004a08a5
add esp, 0xc
push ebp
test eax, eax
jne 0x49de34
push 1
lea eax, [esp + 0x24]
push 4
push eax
mov dword [esp + 0x24], 0x4c9820
mov dword [0x4c93a8], ebx
call fcn.004a05f9
add esp, 0x10
cmp eax, 1
jne 0x49de75
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 0x49d930
push ebp
push 1
lea eax, [esp + 0x24]
push 0x2a
push eax
call fcn.004a05f9
add esp, 0x10
cmp eax, 1
jne 0x49de75
push 0x5c
call fcn.0049eb7f
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x49de54
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 0x49d6e7
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 0x49d7ce
push 0x3b7
call fcn.0045c9e0
mov edx, dword [0x4c93b8]
push eax
push edx
call fcn.00445f90
add esp, 8
push 0x4b1914
call fcn.0049a230
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 0x49de33
cmp eax, 0x400
jae 0x49de33
inc eax
push eax
call fcn.0049eb7f
add esp, 4
mov dword [esi + 0x48], eax
cmp eax, ebx
je 0x49de54
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x49d835
push eax
call fcn.0049eb7f
add esp, 4
mov dword [esi + 0x40], eax
cmp eax, ebx
je 0x49de54
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x49d850
push eax
call fcn.0049eb7f
add esp, 4
mov dword [esi + 0x44], eax
cmp eax, ebx
je 0x49de54
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x48]
push ebp
push 1
push ecx
push edx
call fcn.004a05f9
add esp, 0x10
cmp eax, 1
jne 0x49de75
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x49d88c
push ebp
push 1
push eax
mov eax, dword [esi + 0x40]
push eax
call fcn.004a05f9
add esp, 0x10
cmp eax, 1
jne 0x49de75
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x49d8ac
mov ecx, dword [esi + 0x44]
push ebp
push 1
push eax
push ecx
call fcn.004a05f9
add esp, 0x10
cmp eax, 1
jne 0x49de75
mov eax, dword [esi + 0x18]
cmp eax, 0x400
jb 0x49d8bb
mov eax, 0x3ff
mov edx, dword [esi + 0x48]
mov byte [eax + edx], 0
cmp dword [esi + 0x18], 0x400
jae 0x49de3c
mov esi, dword [esi + 0x34]
cmp esi, dword [case.0x49aaaa.2]
jae 0x49d8e0
mov dword [case.0x49aaaa.2], esi
inc dword [0x4c93a8]
push ebp
push 1
lea eax, [esp + 0x24]
push 4
push eax
call fcn.004a05f9
add esp, 0x10
cmp eax, 1
jne 0x49de75
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 0x49d694
mov esi, dword [0x4c9820]
cmp esi, ebx
je 0x49dd48
mov edi, edi
mov eax, dword [esi + 0x34]
push 0
push eax
push ebp
call fcn.004a08a5
add esp, 0xc
test eax, eax
jne 0x49de75
push ebp
push 1
lea ecx, [esp + 0x24]
push 4
push ecx
call fcn.004a05f9
add esp, 0x10
cmp eax, 1
jne 0x49de75
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 0x49de34
push 1
lea ecx, [esp + 0x24]
push 0x1a
push ecx
call fcn.004a05f9
add esp, 0x10
cmp eax, 1
jne 0x49de75
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 0x49de33
push ecx
call fcn.0049eb7f
mov edi, eax
add esp, 4
test edi, edi
je 0x49de5d
mov edx, dword [esi + 0x18]
push ebp
push 1
push edx
push edi
call fcn.004a05f9
add esp, 0x10
cmp eax, 1
jne 0x49ddbe
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x48]
mov edx, edi
call fcn.0049d240
push edi
test eax, eax
jne 0x49ddc6
call fcn.0049e7fd
mov eax, dword [esi + 0x1c]
add esp, 4
test eax, eax
je 0x49dadd
push eax
call fcn.0049eb7f
add esp, 4
mov dword [esi + 0x3c], eax
push ebp
test eax, eax
je 0x49de55
mov ecx, dword [esi + 0x1c]
push 1
push ecx
push eax
call fcn.004a05f9
add esp, 0x10
cmp eax, 1
jne 0x49ddec
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jne 0x49dadd
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
mov edi, edx
cmp eax, 4
jb 0x49daaa
mov ebx, dword [edi]
cmp ebx, dword [ecx]
jne 0x49dadd
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x49da96
test eax, eax
je 0x49dace
mov bl, byte [ecx]
cmp bl, byte [edi]
jne 0x49dadd
cmp eax, 1
jbe 0x49dace
mov bl, byte [ecx + 1]
cmp bl, byte [edi + 1]
jne 0x49dadd
cmp eax, 2
jbe 0x49dace
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x49dadd
push edx
call fcn.0049e7fd
mov ecx, dword [esi + 0x40]
add esp, 4
mov dword [esi + 0x3c], ecx
test byte [esi + 0x2c], 8
je 0x49dbaf
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 0x49db2b
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.004a08a5
add esp, 0xc
test eax, eax
jne 0x49de75
push ebp
push 1
lea edx, [esp + 0x50]
push 0x10
push edx
call fcn.004a05f9
add esp, 0x10
cmp eax, 1
jne 0x49de75
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 0x49de33
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 0x49dbf4
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 0x49dc12
test edx, edx
jne 0x49dc12
mov edx, 1
mov dword [esp + 0x10], edx
mov bl, byte [edi + 1]
cmp bl, byte [eax + ecx + 1]
je 0x49dc28
test edx, edx
jne 0x49dc28
mov edx, 1
mov dword [esp + 0x10], edx
add ecx, 2
cmp ecx, 0x16
jb 0x49dbf0
xor edi, edi
cmp edx, edi
je 0x49dc42
cmp dword [0x4c981c], edi
je 0x49de33
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 0x49dd21
movzx eax, word [esi]
push eax
shr eax, 8
push eax
call fcn.0049bba0
test al, al
je 0x49dd21
mov eax, dword [esi + 0x48]
push eax
push eax
call fcn.00465c00
mov eax, dword [esi + 0x48]
push eax
call fcn.004acecd
add esp, 4
mov dword [esi + 0x4c], eax
cmp eax, edi
je 0x49de54
mov dword [esi + 0x38], eax
mov esi, dword [esi + 0x58]
cmp esi, edi
jne 0x49d940
xor ebx, ebx
push ebp
call fcn.004a0026
mov eax, dword [0x4c93a8]
add esp, 4
cmp eax, ebx
je 0x49dda9
lea edx, [eax*4]
push edx
call fcn.0049eb7f
add esp, 4
mov dword [0x4c93a0], eax
cmp eax, ebx
je 0x49de5d
mov ecx, dword [0x4c9820]
cmp ecx, ebx
je 0x49dd92
mov dword [eax], ecx
mov ecx, dword [ecx + 0x58]
add eax, 4
cmp ecx, ebx
jne 0x49dd81
mov eax, dword [0x4c93a0]
mov ecx, dword [0x4c93a8]
push 0x49afd0
push 4
push ecx
push eax
call fcn.004a1930
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049eaa6
add esp, 0x4c
ret
push edi
call fcn.0049e7fd
jmp 0x49de03
call fcn.0049e7fd
push ebp
call fcn.004a0026
add esp, 8
pop edi
pop ebp
pop ebx
mov eax, 3
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049eaa6
add esp, 0x4c
ret
mov ecx, dword [esi + 0x3c]
push ecx
call fcn.0049e7fd
mov dword [esi + 0x1c], 0
mov dword [esi + 0x3c], 0
push ebp
call fcn.004a1bc4
mov esi, eax
neg esi
sbb esi, esi
and esi, 9
push ebp
add esi, 2
call fcn.004a0026
add esp, 0xc
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049eaa6
add esp, 0x4c
ret
push ebp
call fcn.004a0026
add esp, 4
pop edi
pop ebp
pop ebx
mov eax, 3
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049eaa6
add esp, 0x4c
ret
push ebp
call fcn.004a0026
add esp, 4
pop edi
pop ebp
pop ebx
mov eax, 4
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0049eaa6
add esp, 0x4c
ret
push ebp
call fcn.004a1bc4
mov esi, eax
neg esi
sbb esi, esi
and esi, 9
push ebp
add esi, 2
call fcn.004a0026
mov ecx, dword [esp + 0x60]
add esp, 8
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
xor ecx, esp
call fcn.0049eaa6
add esp, 0x4c
ret