Function at 0x561620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404d48
mov esi, dword [ebp + 8]
add esi, 0xffffffe8
xor eax, eax
push ebp
push 0x561931
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
xor edx, edx
mov eax, edi
call fcn.00560d2c
pop ecx
mov dl, 1
mov eax, dword [0x4241c8]
call fcn.0042aebc
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x394]
mov edx, dword [eax + 0x34]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x394]
mov edx, dword [eax + 0x30]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x394]
mov eax, dword [eax + 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x394]
mov ecx, dword [eax + 0x34]
xor edx, edx
xor eax, eax
call fcn.00418574
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0055bea8
mov eax, dword [eax + 0x14]
call fcn.00425970
push eax
mov eax, ebx
call fcn.0042b484
mov eax, dword [eax + 0x14]
pop edx
call fcn.00425978
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
sub eax, 2
call fcn.0055c2b0
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
sub eax, 2
call fcn.0055c2b0
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00418574
mov edx, dword [esi]
add edx, dword [esi + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x394]
sub edx, dword [eax + 0x34]
sar edx, 1
jns 0x56173f
adc edx, 0
mov eax, dword [esi]
call fcn.0055c6ec
mov dword [ebp - 0x2c], eax
mov edx, dword [esi + 4]
add edx, dword [esi + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x394]
sub edx, dword [eax + 0x30]
sar edx, 1
jns 0x561765
adc edx, 0
mov eax, dword [esi + 4]
call fcn.0055c6ec
mov dword [ebp - 0x28], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [esi + 8]
sub edx, dword [esi]
call fcn.0055c2b0
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [esi + 0xc]
sub edx, dword [esi + 4]
call fcn.0055c2b0
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x394]
cmp byte [eax + 0x40], 3
jne 0x5617d3
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0055bea8
push eax
mov eax, ebx
call fcn.0042b484
lea edx, [ebp - 0x1c]
pop ecx
call fcn.00425ea8
jmp 0x5617e2
mov eax, ebx
call fcn.0042b484
lea edx, [ebp - 0x3c]
call fcn.00426058
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x84]
test al, al
jne 0x56188a
mov eax, edi
mov edx, dword [0x47bcac]
call fcn.00403be8
test al, al
je 0x56183a
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x58]
test eax, eax
jl 0x56183a
push 0
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x58]
push eax
push 1
mov eax, ebx
call fcn.0042b484
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x394]
xor ecx, ecx
call fcn.0045b99c
jmp 0x56188a
mov eax, edi
mov edx, dword [0x47c410]
call fcn.00403be8
test al, al
je 0x56188a
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x54]
fcomp dword [0x561940]
fnstsw ax
sahf
jb 0x56188a
push 0
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x54]
call fcn.00402d38
push eax
push 1
mov eax, ebx
call fcn.0042b484
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x394]
xor ecx, ecx
call fcn.0045b99c
mov dword [ebp - 8], 1
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
mov edx, 0x56194c
mov eax, dword [ebp - 4]
call fcn.004e8820
mov eax, dword [ebp - 0xc]
mov edx, 0x561958
call fcn.00404ca4
jne 0x5618cb
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0055bea8
lea edx, [ebp - 0x2c]
mov ecx, ebx
call fcn.0042626c
jmp 0x5618eb
lea eax, [ebp - 0x1c]
push eax
mov eax, ebx
call fcn.0042b484
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0055bea8
lea edx, [ebp - 0x2c]
pop ecx
call fcn.00425ea8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp byte [eax + 0x3e5], 0
je 0x56190c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0055bea8
mov edx, esi
call fcn.005546cc
mov eax, ebx
call fcn.00403a5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x561938
lea eax, [ebp - 0xc]
call fcn.004048a8
lea eax, [ebp - 4]
call fcn.004048a8
ret