Function at 0x49b180
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [eax], 0
sete cl
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x49b1f1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
movzx edx, word [ecx + 0xb80]
cmp edx, 0x2655
je 0x49b1ef
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb94], 0xd30f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb94], 0xd30f
xor eax, eax
jmp 0x49ba69
jmp 0x49b213
push 0x40
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
add edx, 0xb58
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 4
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.004f0c20
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x49b31b
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x49b245
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], 0
jne 0x49b24c
xor eax, eax
jmp 0x49ba69
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x28], 1
jmp 0x49b265
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 4
jge 0x49b27e
mov ecx, dword [ebp - 0x28]
shl ecx, 3
mov eax, dword [ebp - 0x20]
shr eax, cl
xor eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
jmp 0x49b25c
mov dword [ebp - 0x28], 0
jmp 0x49b290
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 4
jge 0x49b2a9
mov ecx, dword [ebp - 0x28]
shl ecx, 3
mov edx, dword [ebp - 0x1c]
shr edx, cl
xor edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
jmp 0x49b287
mov eax, dword [ebp - 0xc]
and eax, 0x7f
mov ecx, dword [ebp - 0x20]
and ecx, 0x7f
cmp eax, ecx
je 0x49b316
cmp dword [ebp + 8], 0
je 0x49b30e
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0
je 0x49b2dd
xor eax, eax
je 0x49b2dd
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x2c], edx
jmp 0x49b2e4
mov dword [ebp - 0x2c], 0xffffffd4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x80], ecx
push 0
push 0xff
push 0
push 0
push 0x21d
push 0xffffffffffffffd4
mov edx, dword [ebp + 8]
push edx
call fcn.00488110
add esp, 0x1c
or eax, 0xffffffff
jmp 0x49ba69
jmp 0x49b3dd
mov eax, dword [ebp - 0x18]
xor eax, 0xa3ef0000
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
and edx, 0xffff
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x18]
and eax, 0xffff
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x20]
and edx, 0x7f
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
and eax, 0xffffff80
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0xc], 0
jne 0x49b374
lea ecx, [ebp - 0x24]
push ecx
call fcn.004f0da0
add esp, 4
cmp dword [ebp - 8], eax
je 0x49b3dd
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0xffffff3f
je 0x49b3d5
cmp dword [ebp + 8], 0
je 0x49b3d5
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x49b3a7
xor ecx, ecx
je 0x49b3a7
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x30], eax
jmp 0x49b3ae
mov dword [ebp - 0x30], 0xffffffd4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0x80], edx
push 0
push 0xff
push 0
push 0
push 0x31
push 0xffffffffffffffd4
mov eax, dword [ebp + 8]
push eax
call fcn.00488110
add esp, 0x1c
or eax, 0xffffffff
jmp 0x49ba69
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x80000000
jbe 0x49b412
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
movzx edx, cx
and edx, 0xff
movzx eax, dl
cmp eax, 4
jge 0x49b412
mov dword [ebp - 0x34], 1
jmp 0x49b419
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x1c]
and edx, 0x40000000
je 0x49b430
cmp dword [ebp - 0x14], 0
je 0x49b448
cmp dword [ebp - 0x14], 0
je 0x49ba0a
mov eax, dword [ebp - 0x1c]
and eax, 0x400000
je 0x49ba0a
cmp dword [ebp - 4], 0
je 0x49b485
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb94], 0xd30f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb94], 0xd30f
xor eax, eax
jmp 0x49ba69
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
cmp dword [edx + 0x1db0], 0
je 0x49b511
mov eax, dword [ebp - 0x20]
and eax, 0x100
jne 0x49b511
cmp dword [ebp + 8], 0
je 0x49b4f9
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x49b4c5
xor edx, edx
je 0x49b4c5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x38], ecx
jmp 0x49b4cc
mov dword [ebp - 0x38], 0xffffff3f
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x38]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x5215
push 0xffffff3f
mov ecx, dword [ebp + 8]
push ecx
call fcn.00488110
add esp, 0x1c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov byte [eax + 0x1db8], 0
or eax, 0xffffffff
jmp 0x49ba69
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
cmp dword [edx + 0x1db4], 0x64
jne 0x49b54f
mov eax, dword [ebp - 0x20]
and eax, 0x100
jne 0x49b53f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov byte [edx + 0x1db8], 0
jmp 0x49b54f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov byte [ecx + 0x1db8], 1
mov edx, dword [ebp - 0x20]
and edx, 0x200
je 0x49b56d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov dword [ecx + 0x1fcc], 1
mov edx, dword [ebp - 0x24]
and edx, 0x100000
je 0x49b595
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb80], 0x2655
jmp 0x49b62a
mov eax, dword [ebp - 0x18]
and eax, 0xffff
push eax
push 0x575d0c
push str.a001
call sub.MSVCR90.dll_sprintf
add esp, 0xc
push 0
push str.a001
call fcn.0048a480
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00489930
add esp, 0xc
test eax, eax
je 0x49b62a
cmp dword [ebp + 8], 0
je 0x49b622
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0
je 0x49b5f4
xor eax, eax
je 0x49b5f4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x3c], edx
jmp 0x49b5fb
mov dword [ebp - 0x3c], 0xffffffce
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x80], ecx
push 0
push 0xff
push 0
push 0
push 0x33
push 0xffffffffffffffce
mov edx, dword [ebp + 8]
push edx
call fcn.00488110
add esp, 0x1c
or eax, 0xffffffff
jmp 0x49ba69
mov eax, dword [ebp - 0x24]
and eax, 2
je 0x49b64a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb5a], 0x20
mov ecx, dword [ebp - 0x24]
and ecx, 4
je 0x49b66a
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb5c], 0x3e1
mov edx, dword [ebp - 0x24]
and edx, 8
je 0x49b68a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb5e], 0xabcd
mov eax, dword [ebp - 0x24]
and eax, 0x10
je 0x49b6aa
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb60], 0x54
mov ecx, dword [ebp - 0x24]
and ecx, 0x20
je 0x49b6ca
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb62], 0x5e
mov edx, dword [ebp - 0x24]
and edx, 0x800
je 0x49b6ed
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb6e], 0xdcba
mov eax, dword [ebp - 0x24]
and eax, 0x40
je 0x49b70d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb64], 0x7f
mov ecx, dword [ebp - 0x24]
and ecx, 0x80
je 0x49b730
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb66], 0x4e9b
mov edx, dword [ebp - 0x24]
and edx, 0x4000
je 0x49b753
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb74], 0xdead
mov eax, dword [ebp - 0x24]
and eax, 0x8000
je 0x49b775
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb76], 0xfeef
mov ecx, dword [ebp - 0x24]
and ecx, 0x100
je 0x49b798
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb68], 0xc7
mov edx, dword [ebp - 0x24]
and edx, 0x200
je 0x49b7bb
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb6a], 0x1538
mov eax, dword [ebp - 0x24]
and eax, 0x800
je 0x49b7dd
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb6e], 0xc
mov ecx, dword [ebp - 0x24]
and ecx, 0x800
je 0x49b800
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb6e], 0xdcba
mov edx, dword [ebp - 0x24]
and edx, 0x1000
je 0x49b823
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb70], 0x3ce
mov eax, dword [ebp - 0x24]
and eax, 0x2000
je 0x49b845
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb72], 0x22b
mov ecx, dword [ebp - 0x24]
and ecx, 0x10000
je 0x49b868
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb78], 0x46
mov edx, dword [ebp - 0x24]
and edx, 0x20000
je 0x49b88b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb7a], 0xdd
mov eax, dword [ebp - 0x24]
and eax, 0x40000
je 0x49b8ad
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb7c], 0x70
mov ecx, dword [ebp - 0x24]
and ecx, 0x80000
je 0x49b8d0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb7e], 0x15a6
mov edx, dword [ebp - 0x24]
and edx, 0x200000
je 0x49b8f3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb82], 0x511
mov eax, dword [ebp - 0x24]
and eax, 0x400000
je 0x49b915
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb84], 0x1204
mov ecx, dword [ebp - 0x24]
and ecx, 0x800000
je 0x49b938
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb86], 0x2a34
mov edx, dword [ebp - 0x24]
and edx, 0x1000000
je 0x49b95b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb88], 0x12ef
mov eax, dword [ebp - 0x24]
and eax, 0x2000000
je 0x49b97d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb8a], 0x9320
mov ecx, dword [ebp - 0x24]
and ecx, 0x4000000
je 0x49b9a0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb8c], 0x7032
mov edx, dword [ebp - 0x24]
and edx, 0x8000000
je 0x49b9c3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb8e], 0x836a
mov eax, dword [ebp - 0x24]
and eax, 0x10000000
je 0x49b9e5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb90], 0x336
mov ecx, dword [ebp - 0x24]
and ecx, 0x20000000
je 0x49ba08
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb92], 0x9969
jmp 0x49ba67
cmp dword [ebp - 4], 0
jne 0x49ba67
cmp dword [ebp + 8], 0
je 0x49ba62
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0
je 0x49ba34
xor eax, eax
je 0x49ba34
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x40], edx
jmp 0x49ba3b
mov dword [ebp - 0x40], 0xffffffd0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x80], ecx
push 0
push 0xff
push 0
push 0
push 0x34
push 0xffffffffffffffd0
mov edx, dword [ebp + 8]
push edx
call fcn.00488110
add esp, 0x1c
or eax, 0xffffffff
jmp 0x49ba69
xor eax, eax
mov esp, ebp
pop ebp
ret