Function at 0x4850f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4b559e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x184
mov eax, dword [esp + 0x194]
push ebx
push ebp
mov ebp, ecx
xor ecx, ecx
add eax, 7
mov dword [esp + 0x1c], ecx
push esi
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x24], ecx
mov esi, eax
mov dword [esp + 0x28], ecx
add eax, 0x14
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
add eax, 4
push edi
mov byte [esp + 0x38], cl
mov dl, byte [eax]
mov ecx, 5
lea edi, [esp + 0x24]
inc eax
rep movsd dword es:[edi], dword [esi]
mov cl, byte [eax]
add eax, 2
mov byte [esp + 0x13], dl
mov byte [esp + 0x1b], cl
mov dx, word [eax]
mov cl, byte [eax + 2]
add eax, 2
mov word [esp + 0x54], dx
inc eax
mov byte [esp + 0x1a], cl
mov dword [esp + 0x20], ebx
mov dx, word [eax]
mov cx, word [eax + 2]
add eax, 2
mov word [esp + 0x50], dx
add eax, 2
mov word [esp + 0x3c], cx
mov dx, word [eax]
mov cx, word [eax + 2]
add eax, 2
mov word [esp + 0x48], dx
add eax, 2
mov word [esp + 0x40], cx
mov dl, byte [eax]
inc eax
mov byte [esp + 0x19], dl
lea edx, [esp + 0x114]
movsx cx, byte [eax]
mov eax, dword [eax + 1]
mov word [esp + 0x44], cx
push edx
lea ecx, [esp + 0x158]
lea edx, [esp + 0x60]
push ecx
push edx
mov dword [esp + 0x58], eax
push eax
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call fcn.004618f0
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x9c]
cmp ebx, 1
rep stosd dword es:[edi], eax
jne 0x48520b
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x9c]
push ecx
push 0x4c6030
push edx
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
jmp 0x485227
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x9c]
push eax
push ebx
push 0x4c6020
push ecx
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0x10
push 1
lea edx, [esp + 0xa0]
push 0xa
push edx
mov ecx, ebp
call fcn.004117a0
push 0
push 0
push 0x14
push 0x45
mov ecx, ebp
call fcn.00446e60
mov al, byte [esp + 0x13]
cmp al, 5
je 0x485255
cmp al, 6
jne 0x48528e
lea ecx, [ebp + 0x6f87c]
xor eax, eax
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
test edx, edx
je 0x48527d
lea esi, [edx + 4]
mov ecx, 5
lea edi, [esp + 0x24]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x4852c9
mov edx, dword [esp + 0x14]
inc eax
add edx, 4
cmp eax, 0x32
mov dword [esp + 0x14], edx
jl 0x485261
xor eax, eax
lea ebx, [ebp + 0x6f87c]
mov edx, dword [ebx]
test edx, edx
je 0x4852ae
lea esi, [edx + 4]
mov ecx, 5
lea edi, [esp + 0x24]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x4852fa
inc eax
add ebx, 4
cmp eax, 0x32
mov dword [esp + 0x14], 0x28
mov dword [esp + 0x1c], 0x1e
jl 0x485296
jmp 0x485313
mov ecx, dword [ebp + eax*4 + 0x6f87c]
lea edx, [eax + eax*2 + 0x1ca16]
mov dword [esp + 0x1c], 0
mov esi, dword [ecx + 0x44]
add esi, ebx
mov dword [ecx + 0x44], esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebp + edx*4]
call fcn.004a6fb0
jmp 0x48550a
mov eax, dword [ebp + eax*4 + 0x6f87c]
mov cx, word [eax + 0x24]
mov dx, word [eax + 0x26]
mov word [esp + 0x14], cx
mov word [esp + 0x1c], dx
mov eax, dword [ebp + 0x72e30]
xor ebx, ebx
cmp eax, ebx
je case.default.0x485331
mov eax, dword [ebp + 0x72e34]
mov dword [ebp + 0x72e30], ebx
dec eax
cmp eax, 5
ja case.default.0x485331
jmp dword [eax*4 + 0x485528]
mov eax, dword [ebp + 0x72ed4]
add eax, 0xffffffec
jmp 0x485362
mov eax, dword [ebp + 0x72ed4]
add eax, 0xffffffe2
jmp 0x485362
mov eax, dword [ebp + 0x72ed4]
add eax, 0xfffffff6
jmp 0x485362
mov eax, dword [ebp + 0x72ed4]
add eax, 0xfffffff1
mov dword [ebp + 0x72ed4], eax
lea eax, [ebp + 0x6f87c]
cmp dword [eax], 0
je 0x485381
inc ebx
add eax, 4
cmp ebx, 0x32
jl 0x48536e
jmp 0x48550a
push 0x4c
call fcn.004a71d4
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov dword [esp + 0x19c], 0
je 0x4853a7
mov ecx, eax
call fcn.004a4e90
jmp 0x4853a9
xor eax, eax
lea edi, [eax + 4]
mov ecx, 5
lea esi, [esp + 0x24]
mov dword [ebp + ebx*4 + 0x6f87c], eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + ebx*4 + 0x6f87c]
mov ecx, dword [esp + 0x20]
xor esi, esi
mov dword [esp + 0x19c], 0xffffffff
mov dword [eax + 0x44], ecx
mov edx, dword [ebp + ebx*4 + 0x6f87c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov word [edx + 0x24], ax
mov edx, dword [ebp + ebx*4 + 0x6f87c]
push esi
push esi
mov word [edx + 0x26], cx
push esi
movsx ecx, cx
movsx edx, ax
push ecx
push edx
push ebx
push esi
push 0x180ace0a
mov ecx, ebp
call fcn.00405900
mov eax, dword [ebp + ebx*4 + 0x6f87c]
mov cl, byte [esp + 0x13]
mov dword [esp + 0x20], esi
mov byte [eax + 0x19], cl
mov edx, dword [ebp + ebx*4 + 0x6f87c]
mov al, byte [esp + 0x1b]
lea ecx, [esp + 0x20]
mov byte [edx + 0x1a], al
lea edx, [ebx + ebx*2 + 0x1ca16]
push ecx
lea ecx, [ebp + edx*4]
call fcn.004a6fb0
lea ecx, [ebx + ebx*2 + 0x1c980]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], esi
lea ecx, [ebp + ecx*4]
call fcn.004a6fb0
mov edx, dword [ebp + ebx*4 + 0x6f87c]
mov ax, word [esp + 0x54]
mov word [edx + 0x1e], ax
mov ecx, dword [ebp + ebx*4 + 0x6f87c]
mov dl, byte [esp + 0x1a]
mov byte [ecx + 0x1d], dl
mov eax, dword [ebp + ebx*4 + 0x6f87c]
mov cx, word [esp + 0x50]
mov word [eax + 0x3a], cx
mov edx, dword [ebp + ebx*4 + 0x6f87c]
mov ax, word [esp + 0x3c]
mov word [edx + 0x40], ax
mov ecx, dword [ebp + ebx*4 + 0x6f87c]
mov dx, word [esp + 0x48]
mov word [ecx + 0x20], dx
mov eax, dword [ebp + ebx*4 + 0x6f87c]
mov cx, word [esp + 0x40]
mov word [eax + 0x22], cx
mov edx, dword [ebp + ebx*4 + 0x6f87c]
mov al, byte [esp + 0x19]
mov byte [edx + 0x1b], al
mov ecx, dword [ebp + ebx*4 + 0x6f87c]
mov dx, word [esp + 0x44]
mov word [ecx + 0x2a], dx
mov eax, dword [ebp + ebx*4 + 0x6f87c]
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0x48], ecx
mov ecx, ebp
call fcn.00449b30
xor eax, eax
cmp byte [eax + ebp + 0x7317a], 0xff
je 0x485503
inc eax
cmp eax, 0x32
jl 0x4854f1
jmp 0x48550a
mov byte [eax + ebp + 0x7317a], bl
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x190
ret 4