Function at 0x407b50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x82c51c]
sub esp, 0x38
push edi
push eax
call dword [sym.imp.USER32.dll_Ordinal_432]
test eax, eax
je 0x408146
mov ecx, dword [0x82c51c]
push ecx
call dword [sym.imp.USER32.dll_Ordinal_423]
test eax, eax
jne 0x408146
xor edi, edi
push 2
mov dword [0x41a5d0], edi
call fcn.00402f80
add esp, 4
test eax, eax
jne 0x407b9f
cmp dword [0x41a474], edi
je 0x408146
mov eax, dword [0x918370]
push ebx
push ebp
push esi
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.USER32.dll_Ordinal_256]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
mov ecx, dword [0x918370]
sub ebp, esi
push ecx
mov dword [esp + 0x30], ebp
call dword [sym.imp.USER32.dll_Ordinal_269]
mov dword [esp + 0x34], eax
cmp dword [0x82c568], edi
je 0x407bf6
mov eax, dword [0x82b7b0]
mov ecx, dword [0x918370]
lea edx, [esp + 0x38]
push edx
push eax
push ecx
call fcn.004072d0
add esp, 0xc
jmp 0x407c0f
mov edx, dword [0x82c560]
mov ecx, dword [0x82b7b0]
push edx
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.USER32.dll_Ordinal_227]
cmp dword [0x82b8b0], edi
jne 0x407d6b
mov eax, dword [0x41a5d4]
xor ecx, ecx
mov cl, ah
mov edx, eax
and edx, 0xff
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
shr eax, 0x10
and eax, 0xff
fstp dword [esp + 0x1c]
and ecx, 0xff
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
mov dword [esp + 0x28], eax
mov eax, dword [0x41a5d8]
mov edx, eax
fstp dword [esp + 0x18]
and edx, 0xff
fild dword [esp + 0x28]
mov dword [esp + 0x28], edx
xor ecx, ecx
mov cl, ah
fstp dword [esp + 0x14]
shr eax, 0x10
fild dword [esp + 0x28]
and eax, 0xff
mov dword [esp + 0x20], eax
fsub dword [esp + 0x1c]
and ecx, 0xff
fmul dword [0x419404]
mov dword [esp + 0x24], ecx
xor esi, esi
fstp dword [esp + 0x28]
mov dword [esp + 0x10], esi
fild dword [esp + 0x24]
fsub dword [esp + 0x18]
fmul dword [0x419404]
fstp dword [esp + 0x24]
fild dword [esp + 0x20]
fsub dword [esp + 0x14]
fmul dword [0x419404]
fstp dword [esp + 0x20]
fild dword [esp + 0x10]
fld st(0)
fmul dword [esp + 0x20]
fadd dword [esp + 0x14]
call fcn.00414dd0
fld st(0)
fmul dword [esp + 0x24]
xor ebx, ebx
mov bh, al
fadd dword [esp + 0x18]
call fcn.00414dd0
fmul dword [esp + 0x28]
mov bl, al
fadd dword [esp + 0x1c]
shl ebx, 8
call fcn.00414dd0
mov edx, dword [0x82b7a8]
and eax, 0xff
or ebx, eax
push ebx
push esi
push 1
push edx
call dword [sym.imp.GDI32.dll_Ordinal_563]
inc esi
cmp esi, 0x28
mov dword [esp + 0x10], esi
jl 0x407cc5
mov eax, dword [0x82b7ac]
push eax
call dword [sym.imp.GDI32.dll_Ordinal_144]
fld dword [esp + 0x14]
call fcn.00414dd0
fld dword [esp + 0x18]
xor ebx, ebx
mov bh, al
call fcn.00414dd0
fld dword [esp + 0x1c]
mov bl, al
shl ebx, 8
call fcn.00414dd0
and eax, 0xff
or ebx, eax
push ebx
push 1
push edi
call dword [sym.imp.GDI32.dll_Ordinal_72]
mov dword [0x82b7ac], eax
inc dword [0x82b8b0]
mov ecx, dword [0x82b7ac]
mov edx, dword [0x82b7b0]
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
push ecx
push edx
sub esi, ebx
call dword [sym.imp.GDI32.dll_Ordinal_528]
mov dword [esp + 0x30], eax
mov eax, ebp
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
mov ebx, eax
mov eax, dword [esp + 0x3c]
push edi
sar ebx, 1
lea ecx, [ebx + eax - 8]
mov eax, dword [0x82b7b0]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Ordinal_467]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
lea edx, [ebx + ecx - 8]
mov ecx, dword [0x82b7b0]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Ordinal_463]
push 0x918820
call fcn.00403b60
add esp, 4
test esi, esi
jle 0x407e2a
mov ebp, 0x918820
mov edx, dword [0x82b7a8]
xor eax, eax
mov al, byte [ebp]
push 0xcc0020
push 0
push 1
push edx
mov edx, dword [esp + 0x4c]
mov ecx, ebx
shr eax, 3
push eax
sub ecx, eax
lea eax, [ecx + edx - 7]
mov ecx, dword [esp + 0x4c]
mov edx, dword [0x82b7b0]
push 1
push eax
add ecx, edi
push ecx
push edx
call dword [sym.imp.GDI32.dll_Ordinal_19]
inc edi
add ebp, 3
cmp edi, esi
jl 0x407de2
mov ebp, dword [esp + 0x2c]
mov eax, dword [0x82b8ac]
test eax, eax
jne 0x407ff4
mov eax, dword [0x41a5dc]
xor edx, edx
mov dl, ah
mov ecx, eax
and ecx, 0xff
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
shr eax, 0x10
and eax, 0xff
fstp dword [esp + 0x1c]
and edx, 0xff
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov eax, dword [0x41a5e0]
mov ecx, eax
fstp dword [esp + 0x18]
and ecx, 0xff
fild dword [esp + 0x2c]
mov dword [esp + 0x2c], ecx
xor edx, edx
mov dl, ah
fstp dword [esp + 0x14]
shr eax, 0x10
fild dword [esp + 0x2c]
and eax, 0xff
fsub dword [esp + 0x1c]
and edx, 0xff
fmul dword [0x4193e0]
mov dword [esp + 0x2c], edx
xor edi, edi
fstp dword [esp + 0x28]
mov dword [esp + 0x10], edi
fild dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
fsub dword [esp + 0x18]
fmul dword [0x4193e0]
fstp dword [esp + 0x24]
fild dword [esp + 0x2c]
fsub dword [esp + 0x14]
fmul dword [0x4193e0]
fstp dword [esp + 0x20]
fild dword [esp + 0x10]
fld st(0)
fmul dword [esp + 0x20]
fadd dword [esp + 0x14]
call fcn.00414dd0
fld st(0)
fmul dword [esp + 0x24]
xor ebx, ebx
mov bh, al
fadd dword [esp + 0x18]
call fcn.00414dd0
fmul dword [esp + 0x28]
mov bl, al
fadd dword [esp + 0x1c]
shl ebx, 8
call fcn.00414dd0
and eax, 0xff
or ebx, eax
mov eax, dword [0x82b7a8]
push ebx
push edi
push 3
push eax
call dword [sym.imp.GDI32.dll_Ordinal_563]
inc edi
cmp edi, 0x10
mov dword [esp + 0x10], edi
jl 0x407ee1
mov dword [esp + 0x10], 0
mov edi, 0xf
fild dword [esp + 0x10]
fld st(0)
fmul dword [esp + 0x20]
fadd dword [esp + 0x14]
call fcn.00414dd0
fld st(0)
fmul dword [esp + 0x24]
xor ebx, ebx
mov bh, al
fadd dword [esp + 0x18]
call fcn.00414dd0
fmul dword [esp + 0x28]
mov bl, al
fadd dword [esp + 0x1c]
shl ebx, 8
call fcn.00414dd0
mov ecx, dword [0x82b7a8]
and eax, 0xff
or ebx, eax
push ebx
push edi
push 5
push ecx
call dword [sym.imp.GDI32.dll_Ordinal_563]
mov edx, dword [esp + 0x10]
inc edx
dec edi
cmp edi, 0xffffffff
mov dword [esp + 0x10], edx
jg 0x407f47
mov edx, dword [0x82b7b4]
push edx
call dword [sym.imp.GDI32.dll_Ordinal_144]
fld dword [esp + 0x14]
call fcn.00414dd0
fld dword [esp + 0x18]
xor ebx, ebx
mov bh, al
call fcn.00414dd0
fld dword [esp + 0x1c]
mov bl, al
shl ebx, 8
call fcn.00414dd0
and eax, 0xff
or ebx, eax
push ebx
push 1
push 0
call dword [sym.imp.GDI32.dll_Ordinal_72]
mov dword [0x82b7b4], eax
inc dword [0x82b8ac]
mov eax, dword [0x82b7b4]
mov ecx, dword [0x82b7b0]
push eax
push ecx
call dword [sym.imp.GDI32.dll_Ordinal_528]
mov ecx, dword [esp + 0x38]
lea eax, [ebp + ebp*2]
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x3c]
mov ebx, eax
push 0
sar ebx, 2
lea eax, [ebx + edx]
mov edx, dword [0x82b7b0]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_Ordinal_467]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
lea ecx, [ebx + eax]
mov eax, dword [0x82b7b0]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Ordinal_463]
push 0x918820
call fcn.00403bb0
mov ebp, dword [sym.imp.GDI32.dll_Ordinal_19]
add esp, 4
xor edi, edi
test esi, esi
jle 0x4080ad
movsx eax, byte [edi + 0x918820]
mov ecx, dword [0x82b7a8]
cdq
and edx, 7
add eax, edx
push 0xcc0020
sar eax, 3
push 0
cdq
xor eax, edx
sub eax, edx
push 3
push ecx
push eax
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x50]
lea ecx, [edx + eax + 1]
mov edx, dword [esp + 0x4c]
mov eax, dword [0x82b7b0]
push 1
push ecx
add edx, edi
push edx
push eax
call ebp
inc edi
cmp edi, esi
jl 0x408064
xor edi, edi
test esi, esi
jle 0x4080fd
movsx eax, byte [edi + 0x918820]
cdq
and edx, 7
add eax, edx
sar eax, 3
cdq
xor eax, edx
sub eax, edx
mov edx, dword [0x82b7a8]
push 0xcc0020
mov ecx, 0x10
sub ecx, eax
push ecx
push 5
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x50]
push 1
lea ecx, [ebx + eax]
mov eax, dword [0x82b7b0]
push ecx
add edx, edi
push edx
push eax
call ebp
inc edi
cmp edi, esi
jl 0x4080b3
mov ecx, dword [esp + 0x30]
mov edx, dword [0x82b7b0]
push ecx
push edx
call dword [sym.imp.GDI32.dll_Ordinal_528]
mov eax, dword [0x82b7b0]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
push 0xcc0020
push 0
push 0
push eax
sub ecx, edx
push ecx
push esi
mov esi, dword [esp + 0x4c]
push 0
push 0
push esi
call ebp
mov edx, dword [0x918370]
push esi
push edx
call dword [sym.imp.USER32.dll_Ordinal_555]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x38
ret