Function at 0x5ba214
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004042f8
xor eax, eax
push ebp
push 0x5ba583
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00403ec4
mov dword [ebp - 0x1c], 0xa
mov ecx, dword [0x730ea4]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x44e7e0]
call fcn.004516fc
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5ba55e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00452f40
mov eax, dword [eax + 0xc]
mov edx, 0x5ba598
call fcn.0041df14
mov eax, dword [ebp - 0xc]
call fcn.00452f40
mov eax, dword [eax + 0xc]
mov edx, 8
call fcn.0041df8c
mov dl, 3
mov eax, dword [ebp - 0xc]
call fcn.00452c84
mov edx, dword [0x735b00]
mov eax, dword [ebp - 0xc]
call fcn.00439054
mov edx, 0x14d
mov eax, dword [ebp - 0xc]
call fcn.00452464
mov edx, 0x87
mov eax, dword [ebp - 0xc]
call fcn.00452494
mov dl, 4
mov eax, dword [ebp - 0xc]
call fcn.004532d8
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x428d34]
call fcn.0042e390
mov esi, eax
mov edx, dword [ebp - 0xc]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov dl, 1
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov edx, 0x14
mov eax, esi
call fcn.00438818
mov edx, 0xc
mov eax, esi
call fcn.00438838
mov edx, dword [0x735b04]
mov eax, esi
call fcn.00439054
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x42955c]
call fcn.0042e948
mov ebx, eax
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [esi + 0x30]
mov eax, ebx
call fcn.00438818
mov edx, 0x20
mov eax, ebx
call fcn.00438838
mov edx, 0x125
mov eax, ebx
call fcn.0043885c
mov edx, 0x11d
mov eax, ebx
call fcn.0042ea70
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00439054
mov eax, ebx
call fcn.0042ed9c
mov dword [ebp - 0x10], 0x50
mov dword [ebp - 0x14], 0x4b
mov dword [ebp - 0x18], 0x19
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4d5a18]
call fcn.004d7ab0
mov esi, eax
mov edx, dword [ebp - 0xc]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov dl, 1
mov eax, esi
call fcn.004d7fa4
mov edx, 0x5ba5b0
mov eax, esi
call fcn.00439054
mov dword [esi + 0x1fc], 1
mov dl, 1
mov eax, esi
call fcn.00431148
mov byte [esi + 0x1f9], 1
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x25
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0x7c]
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4d5a18]
call fcn.004d7ab0
mov esi, eax
mov edx, dword [ebp - 0xc]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov dl, 2
mov eax, esi
call fcn.004d7fa4
mov edx, dword [0x735aac]
mov eax, esi
call fcn.00439054
mov dword [esi + 0x1fc], 2
mov byte [esi + 0x1f9], 1
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x81
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0x7c]
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4d5a18]
call fcn.004d7ab0
mov esi, eax
mov edx, dword [ebp - 0xc]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov dl, 3
mov eax, esi
call fcn.004d7fa4
mov edx, dword [0x735ab0]
mov eax, esi
call fcn.00439054
mov byte [esi + 0x1f9], 0
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x1fc], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, 0xdd
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0x7c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0xd8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x234]
cmp eax, dword [ebp - 0x1c]
jne 0x5ba4fe
push 0
mov eax, dword [ebp + 8]
lea edx, [eax - 4]
mov eax, dword [0x730ea4]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov ecx, 1
call fcn.005a9ce0
test al, al
je 0x5ba4fe
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.005ba214
pop ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
call fcn.00403f5c
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x234], 1
jne 0x5ba534
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00439024
cmp dword [ebp - 4], 0
je 0x5ba525
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00403f18
mov eax, dword [ebp - 0xc]
call fcn.004554dc
call fcn.0040395c
jmp 0x5ba565
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x234], 2
jne 0x5ba548
mov eax, dword [ebp - 8]
call fcn.00403ec4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ba565
mov eax, dword [ebp - 0xc]
call fcn.00403124
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ba58a
lea eax, [ebp - 0x20]
call fcn.00403ec4
lea eax, [ebp - 4]
call fcn.00403ec4
ret