Function at 0x10013a30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1003e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x10013a51
jmp 0x10013cd1
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x210], 0
pushal
mov eax, dword fs:[0x30]
mov dword [ebp - 0x208], eax
popal
mov eax, dword [ebp - 0x208]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x228], ecx
jmp 0x10013acf
mov edx, dword [ebp - 0x21c]
add edx, 1
mov dword [ebp - 0x21c], edx
cmp dword [ebp - 0x21c], 3
jge 0x10013c9f
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x10013b05
cmp dword [ebp - 0x224], 1
je 0x10013b2c
cmp dword [ebp - 0x224], 2
je 0x10013b53
jmp 0x10013b78
mov ecx, dword [ebp - 0x228]
add ecx, 0xc
mov dword [ebp - 0x20c], ecx
mov edx, dword [ebp - 0x20c]
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x218], 0
jmp 0x10013b78
mov eax, dword [ebp - 0x228]
add eax, 0x14
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x20c]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x218], 8
jmp 0x10013b78
mov edx, dword [ebp - 0x228]
add edx, 0x1c
mov dword [ebp - 0x20c], edx
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x218], 0x10
mov ecx, dword [ebp - 0x20c]
mov edx, dword [ecx]
cmp edx, dword [ebp - 0x220]
je 0x10013c9a
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
mov dword [ebp - 0x20c], ecx
mov edx, 0x24
sub edx, dword [ebp - 0x218]
add edx, dword [ebp - 0x20c]
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x210], 0
jmp 0x10013bcc
mov eax, dword [ebp - 0x210]
add eax, 1
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x22c]
movzx eax, word [ecx]
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x210], eax
jge 0x10013c0f
cmp dword [ebp - 0x210], 0x200
jge 0x10013c0f
mov edx, dword [ebp - 0x22c]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x210]
mov al, byte [eax + edx*2]
mov byte [ebp + ecx - 0x204], al
jmp 0x10013bbd
mov ecx, dword [ebp - 0x210]
mov dword [ebp - 0x230], ecx
cmp dword [ebp - 0x230], 0x200
jae 0x10013c29
jmp 0x10013c2e
call fcn.10016753
mov edx, dword [ebp - 0x230]
mov byte [ebp + edx - 0x204], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.10013810
add esp, 8
test eax, eax
je 0x10013c95
cmp dword [ebp - 0x214], 0
jne 0x10013c6e
mov edx, dword [ebp - 0x20c]
sub edx, dword [ebp - 0x218]
mov dword [ebp - 0x214], edx
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x20c]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x20c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
jmp 0x10013b78
jmp 0x10013ac0
cmp dword [ebp - 0x214], 0
je 0x10013cd1
mov edx, dword [ebp - 0x214]
mov eax, dword [edx + 0x40]
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx + 0x3c]
mov dword [eax], edx
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0x214]
mov eax, dword [edx + 0x40]
mov dword [ecx + 4], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100160a5
mov esp, ebp
pop ebp
ret