Function at 0x51c760
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x988
mov eax, dword [0x5f3008]
xor eax, esp
mov dword [esp + 0x984], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x2c]
push esi
push edi
mov dword [esp + 0x60], ecx
lea edi, [esp + 0xe8]
mov dword [esp + 0x78], eax
mov esi, edx
mov eax, dword [ebp + 0x38]
mov ecx, 0x228
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x60]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x54], eax
mov ecx, dword [edi + 0x384]
movzx eax, word [ebp + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov eax, dword [ecx]
push ecx
mov dword [esp + 0x28], edx
mov byte [esp + 0x27], 1
mov eax, dword [eax + 0x14]
mov dword [esp + 0x44], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x8c], 0x7fff
mov dword [esp + 0x90], 0xffff8000
mov dword [esp + 0x68], 0
mov byte [esp + 0x1b], 0
call eax
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov word [edi + 0x21bec], ax
mov eax, dword [esp + 0x24]
fstp dword [edi + 0x3a0]
cmp byte [eax + 0x2f4], 0
setne byte [esp + 0x22]
cmp byte [edi + 0x2181a], 0
je 0x51c9e3
test cl, cl
jne 0x51c9e3
movzx eax, byte [eax + 0x79b]
mov ecx, edi
push eax
call fcn.0051d3e0
mov byte [edi + 0x2181a], 1
mov eax, dword [edi + 0x30]
mov esi, dword [edi]
mov dword [edi + 8], esi
mov dword [esp + 0x1c], esi
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1b0]
push eax
push dword [esp + 0x30]
mov dword [esp + 0x70], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, 3
mov dword [esp + 0x58], eax
push ecx
lea ecx, [edx + 3]
call fcn.00410cf0
add esp, 4
test al, al
jne 0x51ca4d
mov ecx, dword [edi + 0x38]
mov eax, dword [ecx + 8]
cmp word [eax + 0x5a], 1
jne 0x51ca4d
mov byte [esp + 0x95a], 0
mov byte [esp + 0x95b], 0
mov byte [esp + 0x885], 0
xor edx, edx
push ecx
lea ecx, [edx + 0xa]
call fcn.00410cf0
add esp, 4
neg al
sbb al, al
and byte [esp + 0x885], al
cmp dword [ebp + 0x30], 1
ja 0x51c976
cmp dword [ebp + 0x34], 0xc8
jbe 0x51c9af
mov eax, dword [edi + 0x40]
push 0x5e8224
push 0
push 0x801d
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0x40]
push 5
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x34]
shl eax, 0xa
add ecx, 0xfffffc00
add eax, ecx
mov dword [esp + 0x44], eax
lea edx, [edi + 0x217dc]
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x28]
mov eax, dword [eax]
movups xmm0, xmmword [ecx + 0xf8]
movups xmmword [esp + 0xa0], xmm0
test eax, eax
je 0x51ca6e
mov eax, dword [eax + 0x28]
movups xmm0, xmmword [eax + 0xf8]
jmp 0x51ca75
mov byte [edi + 0x2181a], 1
test cl, cl
je 0x51c8e4
mov eax, dword [esp + 0x48]
mov esi, dword [edi + 8]
mov dword [esp + 0x1c], esi
mov eax, dword [eax]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x80]
movzx eax, word [eax]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x78]
movzx eax, word [eax]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x50]
movzx eax, word [eax]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x54]
movzx eax, word [eax]
mov dword [esp + 0x8c], eax
jmp 0x51c967
cmp byte [esp + 0x95a], 0
je 0x51c93e
cmp byte [esp + 0x95b], 0
jne 0x51c94e
jmp 0x51c946
movups xmm0, xmmword [ecx + 0xf8]
push ecx
movups xmmword [esp + 0xc4], xmm0
lea eax, [esp + 0x68]
mov ecx, esi
movss xmm0, dword [edi + 0x3a0]
movss dword [esp], xmm0
push eax
lea eax, [esp + 0x9c]
push eax
lea eax, [edi + 0x350]
push eax
lea eax, [edi + 0x354]
push eax
push edx
push dword [edi + 0x217e0]
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0xa8]
push eax
push dword [esp + 0x5c]
lea eax, [esp + 0x9c]
push dword [ebp + 0x1c]
push eax
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x124]
push eax
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x120]
push eax
lea eax, [esp + 0x10c]
push eax
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0xd0]
push eax
lea eax, [esp + 0xbc]
push eax
mov eax, dword [edi + 0x34]
push dword [eax + 8]
lea eax, [edi + 0x203c8]
push dword [edi + 0x30]
push dword [edi + 0x217e4]
push eax
lea eax, [edi + 0x3a4]
push eax
push dword [esp + 0xb4]
push dword [esp + 0xb4]
push dword [ebp + 0xc]
push dword [esp + 0xac]
call fcn.00530eb0
cmp byte [esp + 0x22], 0
mov edx, dword [esp + 0x74]
je 0x51cc92
mov eax, dword [edi + 0x48]
mov ecx, 0x378
cmp word [eax + 0x7570], cx
je 0x51cc8d
cmp byte [esp + 0x953], 0
je 0x51cc6d
mov eax, dword [esp + 0x70]
and eax, 3
cmp al, 3
jne 0x51cc8d
mov eax, dword [edi + 0x38]
mov eax, dword [eax + 8]
movzx eax, word [eax + 0x58]
cmp ax, 5
je 0x51cc57
cmp ax, 6
je 0x51cc57
mov eax, 2
mov byte [esp + 0x17], 1
mov ecx, edi
mov word [edi + 0x21bec], ax
call fcn.00517ed0
mov eax, dword [edi + 0x217dc]
inc dword [esp + 0x18]
sub eax, 1
mov esi, dword [edi + 8]
mov dword [esp + 0x1c], esi
js 0x51cc1b
mov edx, dword [edi + 0x217e0]
mov ecx, eax
shl ecx, 4
add ecx, edx
cmp word [ecx], 1
je 0x51cc12
sub ecx, 0x10
sub eax, 1
jns 0x51cc02
jmp 0x51cc1b
add eax, eax
mov eax, dword [edx + eax*8 + 0xc]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x38]
mov eax, dword [eax + 8]
mov dword [ecx + 0x28], eax
mov eax, dword [esp + 0x24]
mov cl, byte [eax + 0x79b]
mov eax, dword [edi + 0x38]
push ecx
mov ecx, edi
mov eax, dword [eax + 8]
cmp word [eax + 0x5a], 1
jne 0x51cc4c
call fcn.00518a70
mov edx, dword [esp + 0x74]
jmp 0x51cc8d
call fcn.005186f0
mov edx, dword [esp + 0x74]
jmp 0x51cc8d
test edx, 0x8000
jne 0x51cc88
mov eax, 1
mov word [edi + 0x21bec], ax
jmp 0x51cc88
mov eax, dword [edi + 0x38]
mov eax, dword [eax + 8]
movzx eax, word [eax + 0x58]
cmp ax, 5
je 0x51cc88
mov byte [esp + 0x17], 1
cmp ax, 6
jne 0x51cc8d
mov byte [esp + 0x17], 0
mov byte [esp + 0x22], 0
mov ecx, dword [edi + 0x217dc]
mov eax, edx
and eax, 0x400
mov dword [esp + 0x5c], eax
je 0x51cf65
dec ecx
cmp byte [esp + 0x958], 0
je 0x51ccf5
test ecx, ecx
js 0x51ce3d
test edx, 0x3800
jne 0x51ccd8
mov eax, dword [edi + 0x217e0]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 0xc]
mov dword [esi + 0x18], eax
jmp 0x51ce3d
add ecx, 0xffffffff
js 0x51ce3d
mov eax, dword [edi + 0x217e0]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 0xc]
mov dword [esi + 0x18], eax
jmp 0x51ce3d
test ecx, ecx
js 0x51cd6b
mov esi, dword [edi + 0x217e0]
mov eax, ecx
shl eax, 4
add eax, esi
cmp word [eax], 1
je 0x51cd16
sub eax, 0x10
sub ecx, 1
jns 0x51cd06
jmp 0x51cd6b
test edx, 0x800
je 0x51cd4e
lea edx, [ecx - 1]
test edx, edx
js 0x51cd5f
mov eax, edx
shl eax, 4
add eax, esi
nop dword [eax]
cmp word [eax], 1
je 0x51cd43
sub eax, 0x10
sub edx, 1
jns 0x51cd30
jmp 0x51ce3d
add edx, edx
mov eax, dword [esi + edx*8 + 0xc]
jmp 0x51ce36
mov eax, ecx
add eax, eax
mov eax, dword [esi + eax*8 + 0xc]
mov esi, dword [esp + 0x1c]
mov dword [esi + 0x18], eax
jmp 0x51cd63
mov edx, dword [esp + 0x74]
test ecx, ecx
jns 0x51ce3d
mov ecx, dword [edi + 0x217dc]
sub ecx, 1
js 0x51cdd6
mov esi, dword [edi + 0x217e0]
mov eax, ecx
shl eax, 4
add eax, esi
cmp word [eax], 2
je 0x51cd93
sub eax, 0x10
sub ecx, 1
jns 0x51cd83
jmp 0x51cdd6
test edx, 0x1000
je 0x51cdc3
lea edx, [ecx - 1]
test edx, edx
js 0x51cdd2
mov eax, edx
shl eax, 4
add eax, esi
nop dword [eax]
cmp word [eax], 2
je 0x51cd43
sub eax, 0x10
sub edx, 1
jns 0x51cdb0
jmp 0x51ce3d
mov edx, dword [esp + 0x1c]
mov eax, ecx
add eax, eax
mov eax, dword [esi + eax*8 + 0xc]
mov dword [edx + 0x18], eax
test ecx, ecx
jns 0x51ce3d
mov eax, dword [edi + 0x217dc]
sub eax, 1
js 0x51ce3d
mov edx, dword [edi + 0x217e0]
mov ecx, eax
shl ecx, 4
add ecx, edx
nop
cmp word [ecx], 3
je 0x51ce00
sub ecx, 0x10
sub eax, 1
jns 0x51cdf0
jmp 0x51ce3d
test dword [esp + 0x74], 0x2000
je 0x51ce30
lea ecx, [eax - 1]
test ecx, ecx
js 0x51ce3d
mov eax, ecx
shl eax, 4
add eax, edx
cmp word [eax], 3
je 0x51ce28
sub eax, 0x10
sub ecx, 1
jns 0x51ce18
jmp 0x51ce3d
add ecx, ecx
mov eax, dword [edx + ecx*8 + 0xc]
jmp 0x51ce36
add eax, eax
mov eax, dword [edx + eax*8 + 0xc]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x18], eax
mov ecx, edi
call fcn.00517ed0
mov ecx, dword [edi + 0x217dc]
inc dword [esp + 0x18]
dec ecx
cmp byte [esp + 0x958], 0
mov esi, dword [edi + 8]
mov dword [esp + 0x1c], esi
je 0x51ce79
test ecx, ecx
js 0x51cf19
mov eax, dword [edi + 0x217e0]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 0xc]
jmp 0x51cf16
test ecx, ecx
js 0x51ceaf
mov edx, dword [edi + 0x217e0]
mov eax, ecx
shl eax, 4
add eax, edx
nop word [eax + eax]
cmp word [eax], 1
je 0x51cea0
sub eax, 0x10
sub ecx, 1
jns 0x51ce90
jmp 0x51ceaf
mov eax, ecx
add eax, eax
mov eax, dword [edx + eax*8 + 0xc]
mov dword [esi + 0x18], eax
test ecx, ecx
jns 0x51cf19
mov ecx, dword [edi + 0x217dc]
sub ecx, 1
js 0x51cee6
mov edx, dword [edi + 0x217e0]
mov eax, ecx
shl eax, 4
add eax, edx
cmp word [eax], 2
je 0x51ced7
sub eax, 0x10
sub ecx, 1
jns 0x51cec7
jmp 0x51cee6
mov eax, ecx
add eax, eax
mov eax, dword [edx + eax*8 + 0xc]
mov dword [esi + 0x18], eax
test ecx, ecx
jns 0x51cf19
mov eax, dword [edi + 0x217dc]
sub eax, 1
js 0x51cf19
mov edx, dword [edi + 0x217e0]
mov ecx, eax
shl ecx, 4
add ecx, edx
nop
cmp word [ecx], 3
je 0x51cf10
sub ecx, 0x10
sub eax, 1
jns 0x51cf00
jmp 0x51cf19
add eax, eax
mov eax, dword [edx + eax*8 + 0xc]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x38]
mov eax, dword [eax + 8]
mov dword [ecx + 0x28], eax
mov eax, dword [esp + 0x24]
mov cl, byte [eax + 0x79b]
mov eax, dword [edi + 0x38]
push ecx
mov ecx, edi
mov eax, dword [eax + 8]
cmp word [eax + 0x5a], 1
jne 0x51cf52
call fcn.00518a70
mov ecx, dword [esp + 0x60]
mov dx, word [esp + 0x78]
jmp 0x51d09c
call fcn.005186f0
mov ecx, dword [esp + 0x60]
mov dx, word [esp + 0x78]
jmp 0x51d09c
dec ecx
cmp byte [esp + 0x958], 0
je 0x51cf89
test ecx, ecx
js 0x51d029
mov eax, dword [edi + 0x217e0]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 0xc]
jmp 0x51d026
test ecx, ecx
js 0x51cfbf
mov edx, dword [edi + 0x217e0]
mov eax, ecx
shl eax, 4
add eax, edx
nop word [eax + eax]
cmp word [eax], 1
je 0x51cfb0
sub eax, 0x10
sub ecx, 1
jns 0x51cfa0
jmp 0x51cfbf
mov eax, ecx
add eax, eax
mov eax, dword [edx + eax*8 + 0xc]
mov dword [esi + 0x18], eax
test ecx, ecx
jns 0x51d029
mov ecx, dword [edi + 0x217dc]
sub ecx, 1
js 0x51cff6
mov edx, dword [edi + 0x217e0]
mov eax, ecx
shl eax, 4
add eax, edx
cmp word [eax], 2
je 0x51cfe7
sub eax, 0x10
sub ecx, 1
jns 0x51cfd7
jmp 0x51cff6
mov eax, ecx
add eax, eax
mov eax, dword [edx + eax*8 + 0xc]
mov dword [esi + 0x18], eax
test ecx, ecx
jns 0x51d029
mov eax, dword [edi + 0x217dc]
sub eax, 1
js 0x51d029
mov edx, dword [edi + 0x217e0]
mov ecx, eax
shl ecx, 4
add ecx, edx
nop
cmp word [ecx], 3
je 0x51d020
sub ecx, 0x10
sub eax, 1
jns 0x51d010
jmp 0x51d029
add eax, eax
mov eax, dword [edx + eax*8 + 0xc]
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x60]
test ecx, ecx
jne 0x51d03c
mov dx, word [esp + 0x78]
mov byte [esp + 0x23], cl
jmp 0x51d09c
mov ecx, edi
call fcn.00517ed0
mov eax, dword [edi + 0x38]
mov esi, dword [edi + 8]
inc dword [esp + 0x18]
mov dword [esp + 0x1c], esi
mov eax, dword [eax + 8]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x24]
mov cl, byte [eax + 0x79b]
mov eax, dword [edi + 0x38]
push ecx
mov ecx, edi
mov eax, dword [eax + 8]
cmp word [eax + 0x5a], 1
jne 0x51d078
call fcn.00518a70
jmp 0x51d07d
call fcn.005186f0
mov dx, word [esp + 0x78]
mov ecx, dword [esp + 0x60]
movzx eax, dx
mov dword [esp + 0x3c], eax
movzx eax, word [esp + 0x80]
mov dword [ebp + 0xc], ecx
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x48]
cmp byte [eax + 0x2083d], 0
jne 0x51d3bd
cmp dword [ebp + 0x30], 1
ja 0x51d0bf
cmp dword [ebp + 0x34], 0xc8
jbe 0x51d17f
mov eax, dword [esp + 0x28]
test eax, eax
je 0x51d0d9
cmp eax, ecx
je 0x51d0d9
inc dword [esp + 0x34]
mov eax, dword [eax + 0x1004]
test eax, eax
jne 0x51d0c7
mov ecx, dword [esp + 0x34]
movsx eax, dx
shl ecx, 0xa
add ecx, eax
imul eax, ecx, 0x64
cdq
idiv dword [esp + 0x44]
cmp eax, dword [esp + 0x30]
je 0x51d16e
push 1
mov ecx, eax
cmp eax, 0x64
push 0
mov eax, 0x64
push 0
cmovg ecx, eax
lea eax, [esp + 0xac]
push 0
push eax
mov dword [esp + 0x44], ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x51d158
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x51d122
push dword [esp + 0x30]
mov eax, dword [edi + 0x40]
push 0
push 0x801c
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x60]
cmovne ecx, dword [esp + 0x60]
mov dword [esp + 0x28], ecx
cmp byte [esp + 0x23], 0
je 0x51d2c6
cmp word [esp + 0x5c], 0
lea edx, [edi + 0x217dc]
jne 0x51c9b5
mov ecx, dword [esp + 0x70]
test ecx, 0x1000000
je 0x51d236
mov eax, dword [esp + 0x18]
and eax, 1
cmp byte [esp + 0x17], 0
jne 0x51d1cd
test eax, eax
jne 0x51d1d1
and ecx, 0xfeffffff
mov dword [esp + 0x70], ecx
jmp 0x51c9af
test eax, eax
jne 0x51d227
mov ecx, edi
call fcn.00517ed0
mov eax, dword [edi + 0x38]
mov esi, dword [edi + 8]
inc dword [esp + 0x18]
mov dword [esp + 0x1c], esi
mov eax, dword [eax + 8]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x24]
mov cl, byte [eax + 0x79b]
mov eax, dword [edi + 0x38]
push ecx
mov ecx, edi
mov eax, dword [eax + 8]
cmp word [eax + 0x5a], 1
jne 0x51d21e
call fcn.00518a70
mov ecx, dword [esp + 0x70]
and ecx, 0xfeffffff
mov dword [esp + 0x70], ecx
jmp 0x51c9af
call fcn.005186f0
mov ecx, dword [esp + 0x70]
and ecx, 0xfeffffff
mov dword [esp + 0x70], ecx
jmp 0x51c9af
lea edx, [edi + 0x217dc]
test cl, 0x20
je 0x51c9b5
mov eax, dword [esp + 0x18]
and eax, 1
cmp byte [esp + 0x17], 0
jne 0x51d263
test eax, eax
je 0x51d267
and ecx, 0xffffffdf
mov dword [esp + 0x70], ecx
jmp 0x51c9af
test eax, eax
je 0x51d2ba
mov ecx, edi
call fcn.00517ed0
mov eax, dword [edi + 0x38]
mov esi, dword [edi + 8]
inc dword [esp + 0x18]
mov dword [esp + 0x1c], esi
mov eax, dword [eax + 8]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x24]
mov cl, byte [eax + 0x79b]
mov eax, dword [edi + 0x38]
push ecx
mov ecx, edi
mov eax, dword [eax + 8]
cmp word [eax + 0x5a], 1
jne 0x51d2b1
call fcn.00518a70
mov ecx, dword [esp + 0x70]
and ecx, 0xffffffdf
mov dword [esp + 0x70], ecx
jmp 0x51c9af
call fcn.005186f0
mov ecx, dword [esp + 0x70]
and ecx, 0xffffffdf
mov dword [esp + 0x70], ecx
jmp 0x51c9af
cmp dword [ebp + 0x30], 1
mov eax, dword [edi + 0x3c]
mov ecx, dword [esp + 0x48]
mov byte [eax + 0x1d55a], 0
mov eax, dword [esp + 0x70]
mov dword [ecx], eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x84]
mov dword [ecx], eax
mov ecx, dword [esp + 0x50]
movzx eax, word [esp + 0x88]
mov word [ecx], ax
mov ecx, dword [esp + 0x54]
movzx eax, word [esp + 0x8c]
mov word [ecx], ax
ja 0x51d314
cmp dword [ebp + 0x34], 0xc8
jbe 0x51d321
mov eax, dword [edi + 0x40]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [ebp + 0x1c], 0
jne 0x51d389
mov ecx, edi
call fcn.00522260
mov esi, dword [edi + 0x4c]
mov edx, dword [edi + 0x217e4]
mov eax, dword [edi + 0x217dc]
mov ecx, dword [edi + 0x217e0]
mov dword [esi + 0xc], eax
lea eax, [edi + 0x50]
push 0
mov dword [esi + 0x14], eax
lea eax, [edi + 0x320]
push 0
mov dword [esi + 0x10], ecx
mov dword [esi + 0x38], eax
movups xmm0, xmmword [edx + 0x48]
push 0x8021
push dword [esi]
movups xmmword [esi + 0x20], xmm0
mov dword [esi + 0x50], 0xffffffff
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esp + 0x58]
mov esi, dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x51d38d
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x86c], 0
jne 0x51d3bd
lea eax, [esp + 0x7f]
mov ecx, edi
push eax
push 1
push dword [esp + 0x40]
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0xf0]
push eax
push esi
call fcn.00524280
mov ecx, dword [esp + 0x98c]
pop edi
pop esi
xor ecx, esp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x3c