Function at 0x523cf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2c0], 0
je 0x523f27
mov dl, 1
mov eax, dword [0x41cbec]
call fcn.00403b78
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x523f20
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x268]
mov edx, dword [eax]
call dword [edx + 0xc]
dec eax
test eax, eax
jl 0x523d87
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x268]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
cmp eax, dword [ebp - 0x14]
jle 0x523d7f
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x14], eax
inc dword [ebp - 0xc]
dec dword [ebp - 0x2c]
jne 0x523d57
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
dec eax
test eax, eax
jl 0x523db3
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0
xor edx, edx
mov eax, dword [ebp - 0x24]
call fcn.0041f328
inc dword [ebp - 0xc]
dec dword [ebp - 0x2c]
jne 0x523da1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x268]
mov edx, dword [eax]
call dword [edx + 0xc]
dec eax
test eax, eax
jl 0x523e38
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x268]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x2c], 0
je 0x523e30
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 0x24]
call fcn.0041f4d4
test eax, eax
jne 0x523e30
mov dl, 1
mov eax, dword [0x521e64]
call fcn.00403b78
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
lea esi, [eax + 0x1c]
lea edi, [edx + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x30]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.0041f620
inc dword [ebp - 0xc]
dec dword [ebp - 0x2c]
jne 0x523dd1
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
cdq
idiv dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x268]
mov edx, dword [eax]
call dword [edx + 0xc]
dec eax
test eax, eax
jl 0x523edc
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x268]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x2c], 0
je 0x523ed4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
add eax, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x20]
lea esi, [eax + 0x1c]
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 0x24]
call fcn.0041f4d4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x1c]
lea esi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc dword [ebp - 0xc]
dec dword [ebp - 0x2c]
jne 0x523e67
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523f27
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x523f17
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
call fcn.0041f4d4
call fcn.00403ba8
inc dword [ebp - 0xc]
dec dword [ebp - 0x2c]
jne 0x523eff
mov eax, dword [ebp - 0x24]
call fcn.00403ba8
ret
pop edi
pop esi
mov esp, ebp
pop ebp
ret