Function at 0x4ba114
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004a1744
test al, al
je 0x4ba152
mov eax, ebx
call fcn.00402a64
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0045d6cc
jmp 0x4ba183
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004a17d8
test al, al
je 0x4ba17d
mov eax, ebx
call fcn.00402a64
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0045d7b0
jmp 0x4ba183
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x4a52a0]
call fcn.004a598c
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4ba30d
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004a5aa0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4ba1be
mov dword [ebp - 0xc], 0x5008
cmp dword [ebp - 0xc], 0x5008
jne 0x4ba2e7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
cmp dword [eax + 0xc], 0
je 0x4ba2e7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx + 0x30]
dec eax
jl 0x4ba2e7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx + 0x30]
dec eax
jle 0x4ba2cb
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b2610]
call fcn.004b3d50
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x4ba2c4
push dword fs:[edx]
mov dword fs:[edx], esp
mov dx, word [0x4ba320]
mov eax, dword [ebp - 0x1c]
call fcn.004b3dfc
mov eax, dword [ebp - 0x1c]
mov dl, byte [0x4ba324]
mov byte [eax + 0x32], dl
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx + 0x30]
mov esi, eax
dec esi
test esi, esi
jl 0x4ba2ae
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [eax + 0x10c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x34]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x1c]
call fcn.004b3b80
inc eax
jne 0x4ba2aa
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4ba2ae
inc ebx
dec esi
jne 0x4ba257
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ba2e7
mov eax, dword [ebp - 0x1c]
call fcn.0040355c
ret
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ba314
lea eax, [ebp - 0x10]
call fcn.0045fc88
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
je 0x4ba30c
mov eax, dword [ebp - 0x14]
call fcn.00402a94
ret