Function at 0x562390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b5ac6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x1d0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
lea edi, [esi + 0x54]
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], ebx
test edi, edi
jne 0x5623f2
xor eax, eax
jmp 0x5623f5
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x562a07
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.00592c64
mov edx, dword [esi + 0x74]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x303
push edx
call edi
cmp dword [esi + 0xac], 0
jne 0x562446
mov eax, dword [esi + 0xa8]
mov ecx, dword [esi + 0x74]
push eax
push 0
push 0xc2
push ecx
call edi
jmp 0x562a07
lea ecx, [esp + 0x54]
call fcn.00562200
mov ecx, dword [esi + 0xac]
xor edi, edi
mov dword [esp + 0x1d8], edi
call fcn.00584520
cmp eax, edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], edi
jle 0x562914
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0xac]
push edx
call fcn.00584b10
mov edi, eax
mov ecx, edi
mov dword [esp + 0x48], edi
call fcn.00584510
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
push 0x5a
mov eax, 1
push ecx
mov dword [esp + 0x94], 0xbc
mov dword [esp + 0x98], 0x108
mov word [esp + 0xac], ax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, eax
mov eax, dword [esi + 0xb0]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x38], ecx
jge 0x5624e6
mov byte [esp + 0x136], bl
mov dword [esp + 0x130], ebx
jmp 0x5624fe
imul eax, eax, 0x5a0
cdq
idiv ecx
mov byte [esp + 0x136], 4
mov dword [esp + 0x130], eax
cmp dword [esp + 0x18], 0
jle 0x56255c
push ebx
mov ecx, edi
call fcn.00584af0
mov ecx, eax
call fcn.005840d0
and eax, 7
jne 0x562522
inc ebx
cmp ebx, dword [esp + 0x18]
jl 0x562505
jmp 0x56255c
sub eax, 1
je 0x56254f
sub eax, 1
je 0x562540
sub eax, 2
jne 0x56255c
mov edx, 1
mov word [esp + 0xa4], dx
jmp 0x56255c
mov eax, 2
mov word [esp + 0xa4], ax
jmp 0x56255c
mov ecx, 3
mov word [esp + 0xa4], cx
lea edx, [esp + 0x8c]
push edx
lea ecx, [esi + 0x54]
call fcn.00592f3f
cmp dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
jle 0x5628e7
jmp 0x562585
mov edi, dword [esp + 0x48]
call fcn.004a581f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x5629da
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, edi
mov byte [esp + 0x1dc], 1
call fcn.00584af0
mov edi, eax
mov ecx, edi
mov dword [esp + 0x14c], 0x74
mov dword [esp + 0x150], 0xc0000007
mov dword [esp + 0x154], 0
call fcn.005840c0
imul eax, eax, 0x5a0
xor edx, edx
div dword [esp + 0x38]
mov ecx, edi
mov dword [esp + 0x158], eax
call fcn.005840e0
mov ecx, edi
mov dword [esp + 0x160], eax
call fcn.005840b0
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea ebx, [eax - 0x10]
mov dword [esp + 0x10], edx
cmp ebx, edx
je 0x5626d3
cmp dword [edx + 0xc], 0
jl 0x5626c5
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x5626c5
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x56265a
cmp eax, dword [ebx]
jne 0x56265a
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x56269b
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov dword [esp + 0x2c], eax
test eax, eax
je 0x5629e4
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 4]
lea edx, [ecx + ecx + 2]
push edx
add ebx, 0x10
push ebx
lea ecx, [ecx + ecx + 2]
push ecx
add eax, 0x10
push eax
call fcn.004e5da8
mov ebx, dword [esp + 0x3c]
add esp, 0x10
mov eax, dword [esp + 0x10]
add eax, 0xc
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x5626bc
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x5626d3
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040c660
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x562701
push 0x20
push eax
lea ecx, [esp + 0x16e]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
or dword [esp + 0x150], 0x20000000
mov byte [esp + 0x165], 0
mov ecx, edi
call fcn.005840d0
test al, 0x10
je 0x562714
or dword [esp + 0x154], 1
test al, 0x20
je 0x562720
or dword [esp + 0x154], 2
test al, 0x40
je 0x56272c
or dword [esp + 0x154], 4
mov ecx, edi
call fcn.00584100
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x24]
push edx
push 0
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x74]
push 0x434
push eax
call ebx
mov ecx, edi
call fcn.005840f0
mov eax, dword [eax]
mov ecx, dword [esi + 0x74]
push eax
push 0
push 0xc2
push ecx
call ebx
mov eax, dword [esi + 0x74]
lea edx, [esp + 0x24]
push edx
push 0
push 0x437
push eax
mov dword [esp + 0x38], 0xffffffff
call ebx
mov edx, dword [esi + 0x74]
lea ecx, [esp + 0x14c]
push ecx
push 1
push 0x444
push edx
call ebx
cmp dword [esp + 0x10], 0
jbe 0x5628a0
cmp dword [esp + 0x34], 0
je 0x5628a0
cmp dword [esp + 0x1c], 0
je 0x5628a0
mov ecx, dword [esi + 0x74]
lea eax, [esp + 0x24]
push eax
push 0
push 0x434
push ecx
call ebx
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x74]
push edx
push 0
push 0x436
push eax
call ebx
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x74]
push ecx
push 0
push 0x436
push edx
mov dword [esp + 0x54], eax
call ebx
mov edx, dword [esi + 0x74]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x74]
push ecx
push 0xd6
push edx
call ebx
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 0x74]
push eax
lea ecx, [esp + 0x50]
push ecx
push 0xd6
push edx
call ebx
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x44], eax
jne 0x5628a0
mov eax, dword [esi + 0xb0]
test eax, eax
jg 0x56283d
mov ecx, edi
call fcn.005840c0
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x10]
sub ecx, edx
add ecx, edx
add eax, edi
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x78], ebx
lea ebx, [eax + 4]
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x80], edx
mov edx, dword [ebx]
push edx
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x8c], edi
call fcn.00562030
push 1
lea ecx, [esp + 0x58]
mov edi, eax
call fcn.00562270
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [esi + 0x54]
call fcn.00592c64
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x1d8], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5628d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
jl 0x562581
mov ecx, dword [esi + 0x74]
push 0x5d1284
push 0
push 0xc2
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x30]
inc eax
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
jl 0x562473
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x5629f1
test ebx, ebx
je 0x5629f1
mov eax, dword [esp + 0x6c]
mov dword [ecx], eax
mov dword [ebx], 0
test eax, eax
jbe 0x5629f1
xor ecx, ecx
mov edx, 0x14
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a3d20
mov esi, dword [esp + 0x58]
mov dword [ebx], eax
mov eax, dword [esp + 0x6c]
mov edi, dword [eax]
add esp, 4
xor ebx, ebx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x50], ecx
test esi, esi
je 0x562975
cmp esi, dword [esp + 0x54]
je 0x56297a
call fcn.004e73ca
cmp edi, dword [esp + 0x50]
je 0x5629f1
test esi, esi
jne 0x5629e9
call fcn.004e73ca
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x562999
call fcn.004e73ca
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov ecx, dword [edi + 8]
add eax, ebx
mov dword [eax], ecx
mov edx, dword [edi + 0xc]
mov dword [eax + 4], edx
mov ecx, dword [edi + 0x10]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0x14]
mov dword [eax + 0xc], edx
mov ecx, dword [edi + 0x18]
add ebx, 0x14
mov dword [eax + 0x10], ecx
test esi, esi
jne 0x5629ed
call fcn.004e73ca
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x5629d6
call fcn.004e73ca
mov edi, dword [edi]
jmp 0x562963
push 0x80004005
call fcn.0040b390
call fcn.0040bc80
mov eax, dword [esi]
jmp 0x56298f
mov eax, dword [esi]
jmp 0x5629cc
lea ecx, [esp + 0x54]
call fcn.00561fe0
mov edx, dword [esp + 0x54]
push edx
call fcn.004a3d15
add esp, 4
mov ecx, dword [esp + 0x1d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.004e5fb0
mov esp, ebp
pop ebp
ret 0xc