Function at 0x511110
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e4487
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov al, byte [esp + 3]
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov byte [ebx], al
xor eax, eax
mov dword [esp + 0x30], ebx
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov cl, byte [esp + 0x13]
lea ebp, [ebx + 0x10]
mov dword [esp + 0x144], eax
mov byte [ebp], cl
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dl, byte [esp + 0x13]
mov dword [ebx + 0x24], eax
mov byte [ebx + 0x20], dl
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x40], al
mov byte [ebx + 0x41], al
mov eax, dword [esp + 0x14c]
mov dword [ebx + 0x38], 1
mov cl, 0x3a
mov dl, byte [eax + 1]
mov byte [esp + 0x144], 2
cmp dl, cl
jne 0x5111b9
cmp byte [eax + 2], 0x5c
jne 0x5111b9
mov dl, byte [eax + 3]
lea edi, [eax + 3]
cmp dl, 0x5c
jne 0x5111b9
mov al, byte [eax]
mov byte [esp + 0x39], cl
mov byte [esp + 0x38], al
lea edx, [esp + 0x3a]
jmp 0x5111bf
lea edx, [esp + 0x38]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x6620dc
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
push ecx
call fcn.0055bc33
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x1c], esi
je 0x511500
push 0
push 0
push esi
call fcn.0055c4be
push esi
push 1
push 8
push 0x688048
call fcn.0055f47c
add esp, 0x1c
cmp eax, 1
jne 0x5114f7
mov eax, dword [0x688048]
cmp ax, 0x4d4d
je 0x51123b
cmp ax, 0x4949
je 0x51123b
mov byte [ebx + 0x41], 1
jmp 0x511500
and eax, 0xffff
push eax
call fcn.00511980
add esp, 4
test eax, eax
je 0x511264
push 0x68804a
call fcn.00511e40
push 0x68804c
call fcn.00511e60
add esp, 8
mov ecx, dword [0x68804c]
mov dword [esp + 0x18], 0
test ecx, ecx
je 0x5114f0
jmp 0x511280
mov ecx, dword [esp + 0x24]
lea eax, [ebx + 0x3c]
lea edi, [ebx + 0x34]
push eax
lea esi, [ebx + 0x38]
push edi
lea edx, [esp + 0x3c]
push esi
push edx
lea eax, [esp + 0x30]
lea edx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x44], 0
call fcn.00511aa0
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x58]
add esp, 0x24
cmp eax, 3
jne 0x5112e9
fld dword [esp + 0x14]
fmul dword [0x5fcc08]
fstp dword [esp + 0x14]
fld dword [esp + 0x20]
fmul dword [0x5fcc08]
fstp dword [esp + 0x20]
jmp 0x5112ee
cmp eax, 1
je 0x5112ff
fld dword [esp + 0x14]
fcomp dword [0x5f9310]
fnstsw ax
test ah, 0x41
je 0x511307
mov dword [esp + 0x14], 0x42c00000
mov eax, dword [ebx + 8]
lea edx, [esp + 0x14]
push edx
push 1
push eax
mov ecx, ebx
call fcn.00511520
mov edx, dword [esi]
mov eax, dword [ebx + 0x28]
cmp edx, 1
lea edx, [esp + 0x13]
sete cl
mov byte [esp + 0x13], cl
lea ecx, [ebx + 0x20]
push edx
push 1
push eax
call fcn.00511730
cmp dword [esi], 1
jne 0x511351
cmp dword [edi], 0
jne 0x511351
mov eax, dword [ebx + 0x3c]
mov byte [esp + 0x13], 1
cmp eax, 0x8005
je 0x511356
mov byte [esp + 0x13], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub ecx, eax
mov esi, eax
cmp ecx, 1
jae 0x51143a
mov edx, dword [ebp + 4]
test edx, edx
je 0x511379
mov ecx, eax
sub ecx, edx
cmp ecx, 1
ja 0x51137e
mov ecx, 1
test edx, edx
jne 0x511386
xor eax, eax
jmp 0x511388
sub eax, edx
add eax, ecx
test eax, eax
mov dword [esp + 0x28], eax
jge 0x511394
xor eax, eax
push eax
call fcn.0059dece
mov edi, dword [ebp + 4]
add esp, 4
cmp edi, esi
mov dword [esp + 0x2c], eax
mov ebx, eax
je 0x5113ba
push edi
push ebx
call fcn.00511960
add esp, 8
inc ebx
inc edi
cmp edi, esi
jne 0x5113aa
lea edx, [esp + 0x13]
push edx
push ebx
call fcn.00511960
mov edi, dword [ebp + 8]
add esp, 8
cmp esi, edi
je 0x5113e0
inc ebx
push esi
push ebx
call fcn.00511960
add esp, 8
inc esi
inc ebx
cmp esi, edi
jne 0x5113d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
push eax
push ecx
mov ecx, ebp
call fcn.005063c0
mov edx, dword [ebp + 4]
push edx
call fcn.0059def7
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add esp, 4
lea edx, [eax + ecx]
mov dword [ebp + 0xc], edx
mov edx, dword [ebp + 4]
test edx, edx
jne 0x511425
mov ebx, dword [esp + 0x30]
xor ecx, ecx
mov dword [ebp + 4], eax
lea ecx, [ecx + eax + 1]
mov dword [ebp + 8], ecx
jmp 0x5114b5
mov ecx, dword [ebp + 8]
mov ebx, dword [esp + 0x30]
sub ecx, edx
mov dword [ebp + 4], eax
lea ecx, [ecx + eax + 1]
mov dword [ebp + 8], ecx
jmp 0x5114b5
mov ecx, eax
sub ecx, esi
cmp ecx, 1
jae 0x51147a
lea edx, [esi + 1]
mov ecx, ebp
push edx
push eax
push esi
call fcn.00511900
mov eax, dword [ebp + 8]
mov edx, esi
sub edx, eax
lea ecx, [esp + 0x13]
inc edx
push ecx
push edx
push eax
mov ecx, ebp
call fcn.00511930
mov eax, dword [ebp + 8]
cmp esi, eax
je 0x5114b2
mov cl, byte [esp + 0x13]
mov byte [esi], cl
inc esi
cmp esi, eax
jne 0x51146d
jmp 0x5114b2
lea ecx, [eax - 1]
push eax
push eax
mov dword [esp + 0x30], ecx
push ecx
mov ecx, ebp
call fcn.00511900
mov edi, dword [ebp + 8]
lea eax, [edi - 1]
cmp esi, eax
je 0x5114a0
mov dl, byte [eax - 1]
dec eax
dec edi
cmp eax, esi
mov byte [edi], dl
jne 0x511495
lea eax, [esi + 1]
cmp esi, eax
je 0x5114b2
mov cl, byte [esp + 0x13]
mov byte [esi], cl
inc esi
cmp esi, eax
jne 0x5114a7
inc dword [ebp + 8]
mov al, byte [esp + 0x150]
test al, al
jne 0x5114d7
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
inc ecx
test eax, eax
mov dword [esp + 0x18], ecx
jne 0x51127c
jmp 0x5114ec
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
test ecx, ecx
setne dl
inc eax
mov byte [ebx + 0x40], dl
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x30], eax
push esi
call fcn.0055bb49
add esp, 4
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret 8