Function at 0x4ca090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x527fd9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x568fd0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x44]
xor esi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x18], esi
mov eax, dword [0x56cf78]
mov edx, dword [eax + 0xc]
mov ecx, 0x56cf78
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x38], esi
push 0x1000
mov dword [esp + 0x1c], 1
call fcn.004f0933
mov ebp, dword [esp + 0x44]
mov ebx, dword [ebp]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov esi, eax
add esp, 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
lea esp, [esp]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp]
test ebx, ebx
je 0x4ca122
cmp ebx, eax
je 0x4ca127
call fcn.00501daa
cmp esi, dword [esp + 0x2c]
je 0x4ca28c
mov dword [esp + 0x1c], 0x800
test ebx, ebx
jne 0x4ca241
call fcn.00501daa
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x4ca152
call fcn.00501daa
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.0043a0d0
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x44]
mov ebp, dword [edx]
mov eax, dword [eax]
add esp, 4
test ebx, ebx
je 0x4ca179
cmp ebx, eax
je 0x4ca17e
call fcn.00501daa
cmp esi, ebp
je 0x4ca1d1
mov eax, dword [edi]
mov ebp, dword [eax - 0xc]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
lea esi, [ebp + 1]
sub edx, esi
or ecx, edx
jge 0x4ca1a4
mov ecx, esi
mov eax, edi
call fcn.0040afa0
mov eax, dword [edi]
mov ecx, 0x26
mov word [eax + ebp*2], cx
test esi, esi
jl 0x4ca282
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x4ca282
mov dword [eax - 0xc], esi
mov edx, dword [edi]
xor eax, eax
mov word [edx + esi*2], ax
mov esi, dword [esp + 0x24]
test ebx, ebx
jne 0x4ca248
call fcn.00501daa
cmp esi, dword [ebx + 0x18]
jne 0x4ca1e4
call fcn.00501daa
mov eax, dword [esi + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push edi
call fcn.0042deb0
mov eax, dword [edi]
mov ebx, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea esi, [ebx + 1]
sub eax, esi
or edx, eax
jge 0x4ca214
mov ecx, esi
mov eax, edi
call fcn.0040afa0
mov ecx, dword [edi]
mov edx, 0x3d
mov word [ecx + ebx*2], dx
test esi, esi
jl 0x4ca282
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x4ca282
mov edx, dword [esp + 0x14]
mov dword [eax - 0xc], esi
mov eax, dword [edi]
xor ecx, ecx
mov word [eax + esi*2], cx
test edx, edx
jne 0x4ca24c
xor eax, eax
jmp 0x4ca260
mov eax, dword [ebx]
jmp 0x4ca148
mov ebx, dword [ebx]
jmp 0x4ca1da
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ca251
sub eax, esi
sar eax, 1
push eax
push edx
push edi
call fcn.0042deb0
lea esi, [esp + 0x20]
call fcn.0044e400
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x40]
jmp 0x4ca110
push 0x80070057
call fcn.0040b300
mov edx, dword [esp + 0x14]
push edx
call fcn.005026cd
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8