Function at 0x575049
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x108c
call fcn.005ae270
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x84]
push 0x36
push edx
push eax
mov dword [ecx], 0
mov dword [ebp - 0x14], 0x36
call fcn.00554880
add esp, 0xc
cmp eax, 0x36
jne case.0x5549fc.3
cmp byte [ebp - 0x84], 0x42
je 0x554996
cmp byte [ebp - 0x83], 0x4d
jne case.0x5549fc.3
mov eax, dword [ebp - 0x72]
mov ecx, dword [ebp - 0x7a]
cdq
mov edi, eax
mov eax, dword [ebp - 0x6e]
xor edi, edx
mov ebx, dword [ebp - 0x68]
sub edi, edx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x66]
mov word [ebp - 0x8a], bx
cdq
mov esi, eax
mov eax, dword [ebp - 0x56]
xor esi, edx
mov dword [ebp - 0x1c], eax
sub esi, edx
test ecx, ecx
jne case.0x5549fc.3
test eax, eax
jne 0x5549db
mov eax, 1
mov cl, bl
shl eax, cl
mov dword [ebp - 0x1c], eax
and ebx, 0xffff
mov dword [ebp - 0x18], 0
lea eax, [ebx - 1]
cmp eax, 0x1f
ja case.0x5549fc.3
xor edx, edx
mov dl, byte [eax + 0x554e34]
jmp dword [edx*4 + 0x554e28]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax*4]
push ecx
call fcn.005befbc
mov ecx, dword [ebp - 0x1c]
add esp, 4
test ecx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0
jle case.0x5549fc.2
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x84]
push 4
push edx
push eax
call fcn.00554880
add esp, 0xc
cmp eax, 4
jne 0x554a9c
mov eax, dword [ebp - 0x14]
mov cl, byte [ebp - 0x82]
add eax, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov byte [eax + 1], cl
mov dl, byte [ebp - 0x83]
mov byte [eax], dl
mov cl, byte [ebp - 0x84]
mov byte [eax - 1], cl
mov ecx, dword [ebp - 0x28]
add eax, 4
inc ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
mov dword [ebp - 0x28], ecx
jl 0x554a2e
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jle 0x554aa5
mov eax, dword [ebp - 0x18]
test eax, eax
je case.0x5549fc.3
jmp 0x554cdb
mov edx, dword [ebp - 0x30]
push edx
jmp 0x554cdc
jge 0x554adf
lea ecx, [ebp - 0x44]
call fcn.005bf8bc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
push 1
mov dword [ebp - 4], 0
mov edx, dword [eax]
mov eax, dword [ebp - 0x20]
sub eax, ecx
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 1
call dword [edx + 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.005bf8fa
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [edx], edi
mov dword [eax], esi
mov eax, esi
imul eax, edi
lea eax, [eax + eax*2]
push eax
call fcn.005befbc
shr ebx, 3
mov dword [ebp - 0x3c], ebx
imul ebx, edi
mov dword [ebp + 0x10], eax
add esp, 4
xor eax, eax
dec esi
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], esi
test esi, esi
jl 0x554df6
lea ecx, [edi + edi*2]
imul esi, ecx
mov cx, word [ebp - 0x8a]
cmp cx, 0x18
je 0x554cf7
cmp cx, 0x20
je 0x554cf7
mov ecx, dword [ebp - 0x8a]
mov ebx, 1
and ecx, 0xffff
xor edx, edx
shl ebx, cl
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x38], dl
mov dword [ebp - 0x30], edx
dec ebx
test edi, edi
jle 0x554c5f
mov ecx, dword [ebp + 0x10]
lea esi, [esi + ecx + 1]
test edx, edx
jg 0x554bc7
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2c]
cmp edx, eax
jl 0x554baa
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x109c]
push 0x1000
push eax
push ecx
call fcn.00554880
add esp, 0xc
mov dword [ebp - 0x2c], eax
test eax, eax
mov dword [ebp + 0xc], 0
jle 0x554c46
mov eax, dword [ebp + 0xc]
mov edx, 8
mov cl, byte [ebp + eax - 0x109c]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x14]
inc eax
mov byte [ebp - 0x38], cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x34]
add esi, 3
sub edx, eax
mov eax, dword [ebp - 0x38]
and eax, 0xff
mov cl, dl
shr eax, cl
mov ecx, dword [ebp - 0x18]
and eax, ebx
mov cl, byte [ecx + eax*4]
mov byte [esi - 2], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + eax*4 + 1]
mov byte [esi - 3], cl
mov ecx, dword [ebp - 0x18]
mov al, byte [ecx + eax*4 + 2]
mov byte [esi - 4], al
mov eax, dword [ebp - 0x30]
inc eax
cmp eax, edi
mov dword [ebp - 0x30], eax
jl 0x554b72
jmp 0x554c5f
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.005befe5
mov eax, dword [ebp - 0x18]
add esp, 4
test eax, eax
je case.0x5549fc.3
jmp 0x554cdb
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
sub edx, ecx
test dl, 3
je 0x554cb3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
cmp eax, ecx
jl 0x554c9c
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x109c]
push 0x1000
push ecx
push edx
call fcn.00554880
add esp, 0xc
mov dword [ebp - 0x2c], eax
test eax, eax
mov dword [ebp + 0xc], 0
jle 0x554cc8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
inc ebx
inc eax
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x14], eax
sub eax, edx
test al, 3
jne 0x554c6c
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
jmp 0x554b1b
mov eax, dword [ebp + 0x10]
push eax
call fcn.005befe5
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je case.0x5549fc.3
push eax
call fcn.005befe5
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x554d07
push ebx
call fcn.005befbc
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
push ebx
push eax
push ecx
call fcn.00554880
add esp, 0xc
cmp eax, ebx
je 0x554d30
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005befe5
mov eax, dword [ebp + 0x10]
push eax
call fcn.005befe5
add esp, 8
jmp 0x554cd4
mov ecx, dword [ebp + 0x10]
test edi, edi
lea eax, [esi + ecx]
jle 0x554d6f
mov esi, dword [ebp - 0x1c]
mov edx, esi
lea ecx, [esi + 1]
sub edx, ecx
add edx, 2
sub esi, ecx
mov dword [ebp - 0x34], edx
mov edx, edi
mov ebx, dword [ebp - 0x34]
inc eax
inc eax
mov bl, byte [ebx + ecx]
mov byte [eax - 2], bl
mov bl, byte [ecx]
mov byte [eax - 1], bl
mov bl, byte [esi + ecx]
mov byte [eax], bl
mov ebx, dword [ebp - 0x3c]
inc eax
add ecx, ebx
dec edx
jne 0x554d4e
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x4c]
add esi, ebx
mov dword [ebp - 0x14], esi
call fcn.005bf8bc
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x20]
mov eax, esi
sub eax, edx
test al, 3
je 0x554dd8
mov ecx, dword [ebp + 8]
push 1
push 1
mov edx, dword [ecx]
call dword [edx + 0x28]
inc esi
mov dword [ebp - 0x14], esi
jmp 0x554d8a
mov dword [ebp - 4], 0xffffffff
call fcn.005bf8fa
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
jmp 0x554b1b
test eax, eax
je 0x554e03
push eax
call fcn.005befe5
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x554e13
push eax
call fcn.005befe5
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
nop
nop
nop
nop
nop
nop
nop
nop
push 0xffffffffffffffff
push 0x5d32f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x30]
call fcn.005c6320
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x90], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0xd8]
lea ecx, [esp + 0x14]
push edx
push 1
push 0
call fcn.005c64cd
mov eax, dword [esi + 0xd4]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x8c], 1
call fcn.005c651d
lea ecx, [esp + 0x14]
mov byte [esp + 0x88], 2
push ecx
lea ecx, [esp + 0x30]
call fcn.005c5a68
lea edx, [esp + 0xc]
lea ecx, [esp + 0x2c]
push edx
mov edi, eax
call fcn.005c5a68
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Rectangle]
push edi
lea ecx, [esp + 0x30]
call fcn.005c5a68
push ebx
lea ecx, [esp + 0x30]
call fcn.005c5a68
mov eax, dword [esi + 0xa8]
lea edx, [esp + 0x2c]
push eax
push edx
mov ecx, esi
call fcn.00575cf0
mov esi, 0x618ca8
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x88], 3
call fcn.005c64b7
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x88], 4
call fcn.005c64b7
lea ecx, [esp + 0x2c]
mov dword [esp + 0x88], 0xffffffff
call fcn.005c6392
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x80
ret