Function at 0x481bd0
Capabilities:
Check for peb beingdebugged flag
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4c9036
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
push ebp
push esi
xor ebp, ebp
mov ebx, 7
mov eax, edx
push edi
mov edi, ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebp
mov word [esp + 0x20], bp
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x481c10
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x24]
call fcn.004028c0
mov dword [esp + 0xd0], ebp
mov eax, edi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], bp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x481c43
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x5c]
call fcn.004028c0
mov byte [esp + 0xd0], 1
push ebp
push 0x4d3040
lea esi, [esp + 0x40]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebp
mov word [esp + 0x44], bp
call fcn.004028c0
mov byte [esp + 0xd0], 2
mov edi, dword [esp + 0x20]
mov esi, 8
cmp dword [esp + 0x34], esi
jae 0x481c9c
lea edi, [esp + 0x20]
push edi
call dword [0x4cf440]
test eax, eax
je 0x481d00
push edi
call dword [0x4cf378]
cmp eax, 0xffffffff
je 0x481d00
test al, 0x10
jne 0x481d00
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x20]
call fcn.004bb880
add esp, 4
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xd8], 3
call fcn.00402780
mov byte [esp + 0xd0], 2
cmp dword [esp + 0xc4], esi
jb 0x481d00
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.00493b60
add esp, 4
xor eax, eax
lea edx, [esp + 0x18]
push edx
lea edi, [esp + 0x18]
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call fcn.004b9050
add esp, 4
cmp dword [esp + 0x10], 6
jne 0x481dd9
push 6
push ebp
call dword [0x4cf770]
push 0x38
lea eax, [esp + 0x78]
push ebp
push eax
mov dword [esp + 0x7c], 0x3c
call fcn.0049d900
add esp, 0xc
cmp dword [esp + 0x34], esi
mov dword [esp + 0x7c], str.open
mov dword [esp + 0x74], 0x100040
jb 0x481d72
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x80], ecx
jmp 0x481d7d
lea edx, [esp + 0x20]
mov dword [esp + 0x80], edx
cmp dword [esp + 0x6c], esi
jb 0x481d90
mov eax, dword [esp + 0x58]
mov dword [esp + 0x84], eax
jmp 0x481d9b
lea ecx, [esp + 0x58]
mov dword [esp + 0x84], ecx
cmp dword [esp + 0x50], esi
mov dword [esp + 0x8c], 1
jb 0x481db9
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x88], edx
jmp 0x481dc4
lea eax, [esp + 0x3c]
mov dword [esp + 0x88], eax
lea ecx, [esp + 0x70]
push ecx
call dword [0x4cf3ec]
mov edi, eax
call dword [0x4cf764]
jmp 0x481e1f
cmp dword [esp + 0x50], esi
mov edx, dword [esp + 0x3c]
jae 0x481de7
lea edx, [esp + 0x3c]
cmp dword [esp + 0x6c], esi
mov ecx, dword [esp + 0x58]
jae 0x481df5
lea ecx, [esp + 0x58]
cmp dword [esp + 0x34], esi
mov eax, dword [esp + 0x20]
jae 0x481e03
lea eax, [esp + 0x20]
push 1
push edx
push ecx
push eax
push str.open
push ebp
call dword [0x4cf3f0]
mov edx, 0x20
cmp edx, eax
sbb edi, edi
neg edi
cmp dword [esp + 0x50], esi
jb 0x481e32
mov eax, dword [esp + 0x3c]
push eax
call fcn.00493b60
add esp, 4
cmp dword [esp + 0x6c], esi
mov ebx, 7
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], bp
jb 0x481e57
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00493b60
add esp, 4
cmp dword [esp + 0x34], esi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], bp
jb 0x481e77
mov edx, dword [esp + 0x20]
push edx
call fcn.00493b60
add esp, 4
mov ecx, dword [esp + 0xc8]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc4
ret