Function at 0x41d054
Capabilities:
Read .ini file
Write clipboard data

Disassembly:
mov eax, 0x443642
call fcn.00420734
sub esp, 0x72c
push ebx
push esi
push edi
push 0xd
mov ebx, ecx
pop eax
mov ecx, eax
mov esi, 0x459c14
lea edi, [ebp - 0x158]
push 5
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, eax
mov esi, str.a_b_c_d_e_f_g_h_i_j_k_l_m_n_o_p_q_r_s_t_u_v_w_x_y_z
lea edi, [ebp - 0xe8]
and dword [ebp - 0x34], 0
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, eax
mov esi, 0x459c84
lea edi, [ebp - 0x120]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, eax
mov esi, str.A_B_C_D_E_F_G_H_I_J_K_L_M_N_O_P_Q_R_S_T_U_V_W_X_Y_Z
lea edi, [ebp - 0xb0]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop ecx
mov esi, 0x459cf4
lea edi, [ebp - 0x78]
push 5
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop ecx
mov esi, str.0_1_2_3_4_5_6_7_8_9
lea edi, [ebp - 0x60]
push 1
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop eax
lea esi, [ebx + 0x46d]
mov cl, byte [ebx + 0x46e]
mov dword [ebp - 0x3c], eax
mov dword [0x461bf0], eax
mov dword [ebp - 0x38], eax
mov al, byte [esi]
push esi
movzx eax, al
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esi
movzx eax, cl
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x1c], eax
call fcn.004393f2
and dword [ebp - 4], 0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x24], eax
call fcn.00401674
mov ecx, eax
call fcn.004016d0
mov ecx, 0xfa
lea edi, [ebp - 0x738]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x20], eax
movsb byte es:[edi], byte [esi]
call fcn.004393f2
cmp dword [ebp - 0x14], 0xa3
jne 0x41d281
mov eax, dword [ebp - 0x1c]
cmp eax, 0xb0
jl 0x41d1a7
cmp eax, 0xbd
je 0x41d1a7
cmp eax, 0xbe
je 0x41d1a7
cmp eax, 0xdb
je 0x41d1a7
cmp eax, 0xdc
je 0x41d1a7
cmp eax, 0xde
je 0x41d1a7
cmp eax, 0xdf
je 0x41d1a7
cmp eax, 0xfb
je 0x41d1a7
cmp eax, 0xfc
je 0x41d1a7
cmp eax, 0xfd
jne 0x41d281
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x3dc], 0
jne 0x41d281
mov eax, dword [ebp - 0x18]
mov cl, byte [ebx + 0x46e]
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
push 0
mov al, byte [eax]
mov byte [ebp - 0x1b], cl
movsx eax, al
push eax
push 0x7ec
push 0x459d24
push 0
call edi
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
push eax
call esi
movsx eax, byte [ebp - 0x1b]
push 0
push eax
push 0x7ec
push 0x459d34
push 0
call edi
push eax
call esi
xor edi, edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], 1
call fcn.004040e1
push ecx
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 2
call fcn.004390f9
lea eax, [ebp - 0x1c]
push eax
call fcn.0041cf6c
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00439471
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00439384
lea ecx, [ebp - 0x14]
call fcn.00401710
test eax, eax
jle 0x41d273
push edi
lea ecx, [ebp - 0x14]
call fcn.0041a70e
mov ecx, dword [ebp - 0x18]
mov byte [ecx + edi], al
lea ecx, [ebp - 0x14]
inc edi
call fcn.00401710
cmp edi, eax
jl 0x41d257
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00439384
jmp 0x41d2fc
lea ecx, [ebp - 0x14]
call fcn.004040e1
push ecx
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 4
call fcn.004390f9
lea eax, [ebp - 0x1c]
push eax
call fcn.0041ce96
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00439471
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00439384
lea ecx, [ebp - 0x14]
xor esi, esi
call fcn.00401710
test eax, eax
jle 0x41d2ea
push esi
lea ecx, [ebp - 0x14]
call fcn.0041a70e
mov ecx, dword [ebp - 0x18]
mov byte [ecx + esi], al
lea ecx, [ebp - 0x14]
inc esi
call fcn.00401710
cmp esi, eax
jl 0x41d2ce
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00439384
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov edi, dword [ebp - 0x18]
mov dl, byte [edi]
cmp dl, byte [ebp + eax - 0x78]
jne 0x41d347
mov dl, byte [ebx + 0x46e]
cmp dl, byte [ebp + eax - 0x77]
jne 0x41d347
and dword [ebp - 0x3c], 0
cmp dword [ecx + 0x3d8], 0
mov dl, byte [ebp + eax - 0x60]
je 0x41d33b
mov byte [ebx + 0x856], dl
mov dl, byte [ebp + eax - 0x5f]
mov byte [ebx + 0x857], dl
jmp 0x41d347
mov byte [edi], dl
mov dl, byte [ebp + eax - 0x5f]
mov byte [ebx + 0x46e], dl
inc eax
inc eax
cmp eax, 0x14
jl 0x41d301
xor eax, eax
mov dl, byte [edi]
cmp dl, byte [ebp + eax - 0x120]
jne 0x41d3a2
mov dl, byte [ebx + 0x46e]
cmp dl, byte [ebp + eax - 0x11f]
jne 0x41d3a2
and dword [ebp - 0x3c], 0
cmp dword [ecx + 0x3d4], 0
mov dl, byte [ebp + eax - 0xb0]
je 0x41d393
mov byte [ebx + 0x856], dl
mov dl, byte [ebp + eax - 0xaf]
mov byte [ebx + 0x857], dl
jmp 0x41d3a2
mov byte [edi], dl
mov dl, byte [ebp + eax - 0xaf]
mov byte [ebx + 0x46e], dl
inc eax
inc eax
cmp eax, 0x34
jl 0x41d350
xor eax, eax
mov dl, byte [edi]
cmp dl, byte [ebp + eax - 0x158]
jne 0x41d3fd
mov dl, byte [ebx + 0x46e]
cmp dl, byte [ebp + eax - 0x157]
jne 0x41d3fd
and dword [ebp - 0x3c], 0
cmp dword [ecx + 0x3d4], 0
mov dl, byte [ebp + eax - 0xe8]
je 0x41d3ee
mov byte [ebx + 0x856], dl
mov dl, byte [ebp + eax - 0xe7]
mov byte [ebx + 0x857], dl
jmp 0x41d3fd
mov byte [edi], dl
mov dl, byte [ebp + eax - 0xe7]
mov byte [ebx + 0x46e], dl
inc eax
inc eax
cmp eax, 0x34
jl 0x41d3ab
cmp dword [ebp - 0x3c], 0
je 0x41d424
mov edi, dword [ebp - 0x18]
mov ecx, 0xfa
lea esi, [ebp - 0x738]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
mov edi, dword [ebp - 0x18]
cmp byte [edi], 0x80
mov edi, dword [ebp - 0x18]
jae 0x41d45d
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
push ecx
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call fcn.004215f0
mov edi, dword [ebp - 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x24]
not ecx
dec ecx
and byte [ecx + eax - 1], 0
jmp 0x41d481
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
cmp al, 0x80
mov byte [ebp - 0x11], al
jae 0x41d5a3
and byte [ebp - 0x11], 0
xor ecx, ecx
cmp dword [ebp - 0x34], ecx
mov byte [ebp - 0x12], al
jne 0x41d4c1
movsx eax, al
push ecx
push eax
push 0x7ec
push 0x459d44
push ecx
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call esi
mov edi, dword [ebp - 0x18]
mov ecx, 0xfa
xor eax, eax
push 2
rep stosd dword es:[edi], eax
push 0x42
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp - 0x12]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, ebx
call fcn.0041a6dc
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x7d
xor eax, eax
pop ecx
lea edi, [ebp - 0x34c]
rep stosd dword es:[edi], eax
push 0x46042c
lea eax, [ebp - 0x34c]
push 0x1f4
push eax
push 0x461c04
push 0x459d54
push 0x459d5c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor eax, eax
push eax
push 0x80
push 3
push eax
push 3
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41d906
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
and byte [ebp - 0x2e], 0
and byte [ebp - 0x2c], 0
and byte [ebp - 0x2b], 0
and byte [ebp - 0x2a], 0
and byte [ebp - 0x29], 0
mov byte [ebp - 0x30], 2
mov byte [ebp - 0x2f], 1
mov byte [ebp - 0x2d], 0x19
mov byte [ebp - 0x28], 1
lea eax, [ebp - 0x30]
jmp 0x41d8fd
mov edi, dword [ebp - 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
movzx eax, cl
cmp eax, 2
mov dword [ebp - 0x20], eax
jle 0x41d5c6
xor eax, eax
cmp dword [ebx + 0x5c], eax
sete al
mov dword [ebx + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x41d740
and byte [ebp - 0xd], 0
cmp dword [ebp - 0x20], 0
jle 0x41d792
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
cmp dword [ebp - 0x20], 2
jle 0x41d620
cmp dword [ebx + 0x5c], 0
jne 0x41d61c
cmp dword [ebp - 0x34], 0
jne 0x41d61c
movzx eax, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x24]
push 0
movsx eax, byte [eax + ecx]
push eax
push 0x7ec
push 0x459d64
push 0
call edi
push eax
call esi
cmp dword [ebp - 0x20], 2
jne 0x41d6f3
mov eax, dword [ebx + 0x60]
xor ecx, ecx
cmp eax, ecx
jne 0x41d63b
mov dword [ebx + 0x60], 1
jmp 0x41d72e
cmp eax, 1
jne 0x41d6db
cmp dword [ebp - 0x3c], ecx
je 0x41d68b
cmp dword [ebp - 0x34], ecx
jne 0x41d6d2
movzx eax, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x24]
push 0
add eax, ecx
mov dword [ebp - 0x1c], eax
movsx eax, byte [eax - 1]
push eax
push 0x7ec
push 0x459d74
push 0
call edi
push eax
call esi
mov eax, dword [ebp - 0x1c]
push 0
movsx eax, byte [eax]
push eax
push 0x7ec
push 0x459d84
jmp 0x41d6cb
cmp dword [ebp - 0x34], ecx
jne 0x41d6d2
movzx eax, byte [ebp - 0xd]
add eax, ebx
push 0
mov dword [ebp - 0x1c], eax
movsx eax, byte [eax + 0x855]
push eax
push 0x7ec
push 0x459d94
push 0
call edi
push eax
call esi
mov eax, dword [ebp - 0x1c]
push 0
movsx eax, byte [eax + 0x856]
push eax
push 0x7ec
push 0x459da4
push 0
call edi
push eax
call esi
mov dword [ebx + 0x60], 2
jmp 0x41d72e
cmp eax, 2
jne 0x41d6e9
mov dword [ebx + 0x60], 3
jmp 0x41d72e
cmp eax, 3
jne 0x41d72e
mov dword [ebx + 0x60], ecx
jmp 0x41d72e
cmp dword [ebp - 0x20], 1
jne 0x41d72e
mov eax, dword [ebx + 0x60]
test eax, eax
jne 0x41d725
cmp dword [ebp - 0x34], eax
jne 0x41d62f
push eax
movsx eax, byte [ebp - 0x11]
push eax
push 0x7ec
push 0x459db4
push 0
call edi
push eax
call esi
jmp 0x41d62f
cmp eax, 1
jne 0x41d72e
and dword [ebx + 0x60], 0
inc byte [ebp - 0xd]
movzx eax, byte [ebp - 0xd]
cmp eax, dword [ebp - 0x20]
jl 0x41d5eb
jmp 0x41d792
mov edi, dword [ebp - 0x24]
and dword [ebp - 0x20], 0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x41d792
cmp dword [ebp - 0x34], 0
jne 0x41d77d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
push 0
movsx eax, byte [eax + ecx]
push eax
push 0x7ec
push str.InsTalk_KingSon
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call esi
mov edi, dword [ebp - 0x24]
inc dword [ebp - 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp dword [ebp - 0x20], ecx
jl 0x41d755
mov ecx, ebx
xor esi, esi
call fcn.0041a6dc
test eax, eax
je 0x41d7ba
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp - 0x40]
test eax, eax
je 0x41d7bd
mov ebx, dword [sym.imp.USER32.dll_SetClipboardData]
push 1
call ebx
test eax, eax
jne 0x41d7cb
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x38], esi
jmp 0x41d90d
cmp dword [0x460530], esi
je 0x41d863
call fcn.00401674
mov ecx, eax
call fcn.004016d0
cmp dword [eax + 0x3b0], esi
je 0x41d7f4
push dword [ebp - 0x24]
call fcn.0041cd94
pop ecx
mov edi, dword [ebp - 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea eax, [esi + esi + 2]
push eax
call fcn.004390c5
pop ecx
lea esi, [esi + esi + 1]
mov edi, eax
push esi
push edi
push 0xffffffffffffffff
push dword [ebp - 0x24]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push eax
call fcn.00421a08
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call ebx
test eax, eax
jne 0x41d853
and dword [ebp - 0x38], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call fcn.004390ee
pop ecx
xor esi, esi
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
jne 0x41d870
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x38], esi
je 0x41d90d
push 0x7d
xor eax, eax
pop ecx
lea edi, [ebp - 0x34c]
rep stosd dword es:[edi], eax
push 0x46042c
lea eax, [ebp - 0x34c]
push 0x1f4
push eax
push 0x461c08
push str.Port
push str.UsbPort
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor eax, eax
push eax
push 0x80
push 3
push eax
push 3
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41d906
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
and byte [ebp - 0x2e], 0
and byte [ebp - 0x2c], 0
and byte [ebp - 0x2b], 0
and byte [ebp - 0x2a], 0
and byte [ebp - 0x29], 0
mov byte [ebp - 0x30], 2
mov byte [ebp - 0x2f], 1
mov byte [ebp - 0x2d], 0x19
mov byte [ebp - 0x28], 1
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.0041d042
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x18]
mov ecx, 0xfa
xor eax, eax
and dword [0x461bf0], 0
and byte [ebp - 4], 0
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x44]
stosb byte es:[edi], al
call fcn.00439384
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00439384
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x38]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret