Function at 0x57da3c
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x57da44
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040568c
xor eax, eax
push ebp
push 0x57de21
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x57ddbd
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x57de38
call fcn.004057e0
test eax, eax
jle 0x57dadb
lea eax, [ebp - 0x20]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x57de38
call fcn.004057e0
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004056fc
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 8]
call fcn.0040c22c
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x57de38
call fcn.004057e0
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.0040549c
mov ecx, eax
mov eax, dword [ebp - 4]
pop edx
call fcn.004056fc
jmp 0x57dae8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x57ddc7
mov eax, dword [ebp - 8]
call fcn.0040549c
cmp eax, 4
jge 0x57db0c
mov eax, 0x57de44
call fcn.0043c004
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x57ddc7
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0040cba0
test al, al
jne 0x57db28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x57ddc7
cmp dword [ebp - 0x10], 1
jl 0x57db34
cmp dword [ebp - 0x10], 3
jle 0x57db41
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x57ddc7
mov eax, dword [0x5c5cd8]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x57dc65
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5c5cd8]
call fcn.004c02f0
mov ebx, eax
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp - 8]
call fcn.004055e8
jne 0x57dc59
xor eax, eax
mov al, byte [ebx + 4]
cmp eax, dword [ebp - 0x10]
je 0x57dc42
mov eax, dword [0x5c19b0]
mov eax, dword [eax]
mov eax, dword [eax + 0x358]
call fcn.004fcb5c
call fcn.0044bcfc
mov edi, eax
dec edi
test edi, edi
jl 0x57dc59
inc edi
xor esi, esi
mov eax, dword [0x5c19b0]
mov eax, dword [eax]
mov eax, dword [eax + 0x358]
call fcn.004fcb5c
mov edx, esi
call fcn.004fc5bc
lea edx, [ebp - 0x24]
call fcn.004fc41c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.00405464
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.004055e8
jne 0x57dc38
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
call fcn.005b13bc
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
call fcn.00405b50
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [0x5c19b0]
mov eax, dword [eax]
mov eax, dword [eax + 0x358]
call fcn.004fcb5c
mov edx, esi
call fcn.004fc5bc
mov eax, dword [eax + 0x30]
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov al, byte [ebp - 0x10]
mov byte [ebx + 4], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x57ddc7
inc esi
dec edi
jne 0x57dbb0
jmp 0x57dc59
mov eax, 0x57de60
call fcn.0043c004
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x57ddc7
inc dword [ebp - 0x14]
dec dword [ebp - 0x1c]
jne 0x57db5d
mov eax, 0x2c
call fcn.0040c16c
mov ebx, eax
call fcn.0040edd8
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0057ac30
mov dword [ebx], eax
mov al, byte [ebp - 0x10]
mov byte [ebx + 4], al
mov eax, dword [ebx]
mov dword [ebx + 8], eax
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 8]
call fcn.00405220
lea eax, [ebx + 0x18]
mov edx, 0x57de38
call fcn.00405220
xor eax, eax
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x20]
mov edx, 0x57de38
call fcn.00405220
mov byte [ebx + 0x1e], 0
lea edx, [ebp - 0x30]
mov eax, dword [ebx + 0x18]
call fcn.0040c22c
mov eax, dword [ebp - 0x30]
mov dl, 1
call fcn.005adf1c
mov word [ebx + 0x1c], ax
xor eax, eax
mov dword [ebx + 0x28], eax
mov edx, ebx
mov eax, dword [0x5c5cd8]
call fcn.004c0238
call fcn.0057d664
mov eax, dword [0x5c19b0]
mov eax, dword [eax]
mov eax, dword [eax + 0x358]
call fcn.004fcb5c
call fcn.004fc5a4
mov eax, dword [0x5c19b0]
mov eax, dword [eax]
mov eax, dword [eax + 0x358]
call fcn.004fcb5c
call fcn.0044bcfc
dec eax
push eax
mov eax, dword [0x5c19b0]
mov eax, dword [eax]
mov eax, dword [eax + 0x358]
call fcn.004fcb5c
pop edx
call fcn.004fc5bc
push eax
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 8]
call fcn.00405b50
mov edx, dword [ebp - 0x34]
pop eax
call fcn.004fc43c
lea edx, [ebp - 0x3c]
xor eax, eax
mov al, byte [ebx + 4]
call fcn.005b13bc
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
call fcn.00405b50
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [0x5c19b0]
mov eax, dword [eax]
mov eax, dword [eax + 0x358]
call fcn.004fcb5c
call fcn.0044bcfc
dec eax
push eax
mov eax, dword [0x5c19b0]
mov eax, dword [eax]
mov eax, dword [eax + 0x358]
call fcn.004fcb5c
pop edx
call fcn.004fc5bc
mov eax, dword [eax + 0x30]
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [0x5c19b0]
mov eax, dword [eax]
mov eax, dword [eax + 0x364]
xor edx, edx
call fcn.004f239c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x57ddc7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57de28
lea eax, [ebp - 0x3c]
call fcn.004051cc
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0040599c
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004051f0
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0040599c
lea eax, [ebp - 0x20]
call fcn.004051cc
lea eax, [ebp - 0x18]
call fcn.004051cc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004051f0
ret