Function at 0x518bbc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x518fde
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x518c08
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x518c16
mov ebx, 0x2303
jmp 0x518fb2
mov eax, ebx
test eax, eax
je 0x518c21
sub eax, 4
mov eax, dword [eax]
test eax, eax
setne al
test al, al
je 0x518eb1
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0x7001
jne 0x518d1e
xor eax, eax
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
call fcn.00518230
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.00405370
lea eax, [ebp - 8]
call fcn.00405140
mov edx, eax
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00518230
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.00405370
lea edx, [ebp - 0x13c]
mov eax, ebx
call fcn.004c2a2c
lea eax, [ebp - 0x13c]
lea edx, [ebp - 0x10]
call fcn.004c81b0
lea edx, [ebp - 0x140]
mov eax, dword [ebp - 0x10]
call fcn.004c5f70
mov edx, dword [ebp - 0x140]
lea eax, [ebp - 0x12a]
call fcn.004d421c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 0xc
mov edx, dword [ebp - 0x20]
call fcn.00405370
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 0xc
call fcn.00405140
push eax
lea eax, [ebp - 8]
call fcn.00405140
mov edx, eax
lea eax, [ebp - 0x12a]
pop ecx
call fcn.004d424c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 8
call fcn.00404c40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 4
mov edx, dword [0x5b69a8]
mov edx, dword [edx]
call fcn.00404c94
jmp 0x518e6a
xor eax, eax
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
call fcn.00518230
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.00405370
lea eax, [ebp - 8]
call fcn.00405140
mov edx, eax
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00518230
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.00405370
push ebp
call fcn.00518b64
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x518d7b
mov ebx, 0x2303
jmp 0x518fb2
xor eax, eax
push ebp
push 0x518e51
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x518e40
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
push 0
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 8]
call fcn.00405140
mov edx, eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
call fcn.00516eec
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x24]
call fcn.00405370
lea eax, [ebp - 0xc]
call fcn.00405140
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 8]
call fcn.00405140
mov edx, eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
call fcn.00516eec
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x24]
call fcn.00405370
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 4
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + 0x2c]
call fcn.00404c94
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 8
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + 0x30]
call fcn.00404c94
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 0xc
mov edx, dword [ebp - 0xc]
call fcn.00404c94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518e47
lea eax, [ebp - 0x28]
call fcn.0040f6c4
ret
xor eax, eax
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
xor edx, edx
call fcn.005183e0
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x24]
call fcn.00405370
lea eax, [ebp - 0xc]
call fcn.00405140
mov edx, eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.005183e0
lea eax, [ebp - 0x14]
mov edx, 0x518ff8
call fcn.00404cd8
jmp 0x518ef6
xor eax, eax
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
call fcn.00518230
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x24]
call fcn.00405370
lea eax, [ebp - 0xc]
call fcn.00405140
mov edx, eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00518230
lea eax, [ebp - 0x14]
mov edx, 0x519018
call fcn.00404cd8
cmp byte [ebp + 8], 0
je 0x518f84
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
lea eax, [ebp - 0xc]
call fcn.00405140
xor ecx, ecx
mov edx, dword [ebp - 0x24]
call fcn.004fdad0
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.00405370
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
lea eax, [ebp - 8]
call fcn.00405140
push eax
lea eax, [ebp - 0xc]
call fcn.00405140
mov edx, dword [ebp - 0x24]
pop ecx
call fcn.004fdad0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x20]
jge 0x518f65
mov ebx, 0x2308
jmp 0x518f7a
lea eax, [ebp - 8]
call fcn.00405140
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
call fcn.004030c8
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
jmp 0x518fb2
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
jge 0x518f95
mov ebx, 0x2308
jmp 0x518faa
lea eax, [ebp - 0xc]
call fcn.00405140
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
call fcn.004030c8
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518fe5
lea eax, [ebp - 0x140]
mov edx, dword [0x4c5894]
call fcn.004061ec
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404c64
ret