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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc1c5
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x70c0f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x30], 0
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.00447720
mov ecx, dword [ebp + 0xc]
add ecx, 0x18
call fcn.00447720
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x32], 0
mov ecx, dword [ebp + 0xc]
call fcn.00447720
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x34], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
call fcn.00448400
mov eax, dword [ebp + 0xc]
add eax, 0x32
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00447710
push eax
call fcn.0052bef0
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x52d406
mov eax, dword [ebp - 0x28]
jmp 0x52d81a
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + 0x32]
mov byte [edx + 0x33], cl
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0052b460
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x52d433
mov eax, dword [ebp - 0x2c]
jmp 0x52d81a
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 0xc]
add ecx, 0x18
call fcn.00553b70
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0xdc]
test ecx, ecx
je 0x52d483
mov edx, dword [ebp + 0xc]
add edx, 0x30
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00447710
push eax
call fcn.0052d830
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x52d483
mov eax, dword [ebp - 0x30]
jmp 0x52d81a
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x30]
test edx, edx
je 0x52d64c
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 0x14]
add ecx, 8
call fcn.00447710
test eax, eax
je 0x52d64c
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x14]
add ecx, 8
call fcn.00447710
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x52d4ed
mov eax, dword [ebp - 0x38]
jmp 0x52d81a
cmp dword [ebp - 0x3c], 1
jne 0x52d64c
lea ecx, [ebp - 0x7c]
call fcn.00448fd0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
call fcn.00447710
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x7c]
push ecx
push 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x52d54f
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00449000
mov eax, dword [ebp - 0x60]
jmp 0x52d81a
movzx edx, word [ebp - 0x7c]
cmp edx, 8
jne 0x52d56f
cmp dword [ebp - 0x74], 0
je 0x52d56f
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.00553610
jmp 0x52d595
movzx ecx, word [ebp - 0x7c]
test ecx, ecx
je 0x52d595
mov dword [ebp - 0x64], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00449000
mov eax, dword [ebp - 0x64]
jmp 0x52d81a
mov byte [ebp - 0xd], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x52d5c2
mov ecx, dword [ebp + 0xc]
add ecx, 0x18
call fcn.00447720
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x33], 1
jmp 0x52d63d
mov eax, dword [ebp + 0xc]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0052b460
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x52d5fb
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x68], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00449000
mov eax, dword [ebp - 0x68]
jmp 0x52d81a
mov eax, dword [ebp + 0xc]
add eax, 0x33
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00447710
push eax
call fcn.0052bef0
add esp, 0xc
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x52d63d
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00449000
mov eax, dword [ebp - 0x6c]
jmp 0x52d81a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00449000
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x31]
test ecx, ecx
jne 0x52d663
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x52d6f0
mov ecx, dword [ebp + 0xc]
call fcn.00447710
push eax
call fcn.0052b3f0
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x52d6f0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x18
call fcn.00447890
mov ecx, dword [ebp - 0x20]
add ecx, 1
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00447750
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.00553ad0
cmp dword [ebp - 0x20], 0
je 0x52d6d9
mov ecx, dword [ebp + 0xc]
call fcn.00447710
mov edx, dword [ebp - 0x20]
mov ax, word [eax + edx*2 - 2]
movzx ecx, ax
push ecx
call fcn.00448cc0
add esp, 4
movzx edx, al
test edx, edx
jne 0x52d6d9
mov dword [ebp - 0x50], 0
jmp 0x52d6e0
mov dword [ebp - 0x50], 1
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0x50]
mov byte [eax + 0x33], cl
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x30], 1
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x38]
test ecx, ecx
je 0x52d802
mov edx, dword [ebp + 0xc]
add edx, 0xc
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.0052b820
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x52d72a
mov eax, dword [ebp - 0x58]
jmp 0x52d81a
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x31]
test ecx, ecx
jne 0x52d741
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x52d800
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
call fcn.0044aa70
movzx eax, al
test eax, eax
jne 0x52d800
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
call fcn.00448500
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
call fcn.00447710
push eax
call fcn.0052b3f0
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x52d7ef
mov ecx, dword [ebp - 0x18]
add ecx, 1
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.00447750
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.00553ad0
cmp dword [ebp - 0x18], 0
je 0x52d7cc
mov ecx, dword [ebp - 0x24]
call fcn.00447710
mov edx, dword [ebp - 0x18]
mov ax, word [eax + edx*2 - 2]
movzx ecx, ax
push ecx
call fcn.00448cc0
add esp, 4
movzx edx, al
test edx, edx
jne 0x52d7cc
mov dword [ebp - 0x5c], 0
jmp 0x52d7d3
mov dword [ebp - 0x5c], 1
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0x5c]
mov byte [eax + 0x33], cl
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x30], 1
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.00447890
cmp dword [ebp - 0x18], 0
jne 0x52d800
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
call fcn.0044a850
jmp 0x52d818
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x18
push edx
call fcn.00555ea0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8