Function at 0x515c6c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
test dl, dl
je 0x515c90
add esp, 0xfffffff0
call fcn.00404040
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x515f6a
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00403cac
cmp byte [ebp + 8], 0
je 0x515e23
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 6
mov eax, ebx
sub eax, 0x7002
je 0x515cd5
dec eax
je 0x515d01
dec eax
je 0x515d2a
jmp 0x515d53
mov eax, dword [ebp - 4]
mov dword [eax + 8], 8
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x5b6ec8]
mov edx, dword [edx]
call fcn.00404c94
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7002
jmp 0x515d8e
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x18
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x5b6e54]
mov edx, dword [edx]
call fcn.00404c94
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7003
jmp 0x515d8e
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x10
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x5b6f70]
mov edx, dword [edx]
call fcn.00404c94
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7004
jmp 0x515d8e
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.004095f4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x14]
push eax
push 0
lea edx, [ebp - 0x1c]
mov eax, 0x515a58
call fcn.00406db0
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x5158b4]
call fcn.0040dbc0
call fcn.00404590
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x7252
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0x7301
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0x14
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0x7101
mov eax, dword [ebp - 4]
add eax, 0x28
mov edx, 8
call fcn.00405370
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.00405140
mov edx, 8
call fcn.004c8ec0
mov eax, dword [ebp - 4]
mov byte [eax + 0x38], 1
mov dl, 1
mov eax, dword [0x4bf660]
call fcn.004c0174
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x515e1c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov byte [eax + 4], 0x30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515eef
lea eax, [ebp - 0xc]
call fcn.0040f6c4
ret
mov eax, ebx
sub eax, 0x7002
je 0x515e33
sub eax, 2
je 0x515e66
jmp 0x515e99
mov eax, dword [ebp - 4]
mov dword [eax + 8], 8
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x5b6ec8]
mov edx, dword [edx]
call fcn.00404c94
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7002
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 2
jmp 0x515ed4
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x10
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x5b6f70]
mov edx, dword [edx]
call fcn.00404c94
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7004
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 5
jmp 0x515ed4
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.004095f4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x14]
push eax
push 0
lea edx, [ebp - 0x24]
mov eax, 0x515a58
call fcn.00406db0
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x5158b4]
call fcn.0040dbc0
call fcn.00404590
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x7251
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0x7101
mov eax, dword [ebp - 4]
mov byte [eax + 0x38], 0
mov eax, dword [ebp - 4]
add eax, 0x2c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov edx, dword [edx*4 + 0x5b21ec]
call fcn.00404c94
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x800
mov eax, dword [ebp - 4]
add eax, 0x10
mov edx, 8
call fcn.00405370
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.00405140
mov edx, 8
call fcn.004c8ec0
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00516a14
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, 0x30
call fcn.00404c94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515f71
lea eax, [ebp - 0x28]
mov edx, 5
call fcn.00404c64
ret