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

Disassembly:
mov eax, 0x1b0c
call fcn.00404750
mov dl, byte [0x412b54]
push ebx
push ebp
push esi
push edi
mov ecx, 0x2ed
xor eax, eax
lea edi, [esp + 0x795]
mov byte [esp + 0x794], dl
mov byte [esp + 0xcc], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0xcd]
mov byte [esp + 0x420], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x421]
mov byte [esp + 0x320], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x321]
mov byte [esp + 0x260], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x261]
mov byte [esp + 0x11c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x11d]
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x95]
mov byte [esp + 0x94], bl
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x1b20]
push 0xffff0000
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
mov ecx, 0xbc8
xor eax, eax
mov edi, 0x40f010
push 0x1101
push 0x3e8
rep stosd dword es:[edi], eax
push ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x80], 0x20
mov dword [0x412b40], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x2e0]
push eax
push ebp
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x28], eax
push 0x6b
mov ecx, dword [0x411f50]
push ecx
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea edx, [esp + 0xb4]
mov edi, eax
push edx
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
cdq
sub eax, edx
push 1
push ebx
push 9
sar eax, 1
push ecx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov esi, eax
push 0xff00ff
push edi
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov edx, dword [esp + 0x28]
push 1
push 8
push 8
push edx
push ebx
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
push esi
push ebx
push 0x1109
push 0x3e8
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
mov esi, 0x40f014
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], esi
push edi
push str.HD_OpenDevice_nPort___d
call fcn.004040c0
mov dword [esi - 4], edi
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
push edi
mov dword [esi], ebx
call fcn.00401390
mov esi, eax
add esp, 0xc
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x4020b0
lea eax, [esp + 0x520]
push eax
push esi
call dword [0x411f54]
lea ecx, [esp + 0x11c]
push ecx
push esi
call dword [0x411f68]
test eax, eax
je 0x401a59
push esi
call fcn.004015a0
add esp, 4
jmp 0x4020b0
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x15c]
rep stosd dword es:[edi], eax
cmp byte [esp + 0x11e], 0x45
jne 0x401aef
mov edi, str.USBKey_HDE
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x15c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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 [esp + 0x14]
lea eax, [esp + 0x15c]
push eax
push str.HD_GET_STRSN_JH_szLab___s
call fcn.004040c0
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x9c]
lea edx, [esp + 0x9c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x74]
push ecx
push edx
push 0xee0a
push esi
call fcn.00401700
add esp, 0x18
test eax, eax
je 0x401b1f
push esi
call fcn.004015a0
add esp, 4
jmp 0x4020b0
lea ecx, [esp + 0x90]
lea edx, [esp + 0x15c]
push ecx
push edx
push 0xee07
push esi
call fcn.00401700
add esp, 0x10
test eax, eax
je 0x401aa0
push esi
call fcn.004015a0
add esp, 4
jmp 0x4020b0
cmp byte [esp + 0x94], bl
jne 0x401b31
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x34], eax
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push 0x3e9
push ebp
call edi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
push 1
push 0x3ea
push ebp
call edi
push eax
call esi
push 1
push 0x3ee
push ebp
call edi
push eax
call esi
push 1
push 0x3fa
push ebp
call edi
push eax
call esi
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0xcc]
lea edx, [esp + 0xcc]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x15c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x38], ebx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
push 0x1100
lea ecx, [esp + 0xd8]
push 0x3e8
push ebp
mov dword [esp + 0x50], 0xffff0002
mov dword [esp + 0x54], 0x23
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], 0x100
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x64], ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov dword [0x412b40], 1
mov dword [ecx], eax
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
jne 0x401c2a
mov dword [esp + 0x2c], eax
push str.HD_ReadBinFile_Cert
call fcn.004040c0
mov esi, dword [esp + 0x18]
mov ecx, 0x1f4
xor eax, eax
lea edi, [esp + 0x1350]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x74]
lea eax, [esp + 0x1350]
push edx
push eax
push 0xee01
push esi
call fcn.00401700
add esp, 0x14
test eax, eax
je 0x401c75
push esi
call fcn.004015a0
add esp, 4
jmp 0x4020b0
mov ecx, dword [esp + 0x70]
cmp ecx, ebx
jne 0x401c8b
push esi
call fcn.004015a0
add esp, 4
jmp 0x4020b0
mov edx, ecx
lea esi, [esp + 0x134c]
lea edi, [esp + 0x570]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x570]
cmp eax, ebx
jne 0x401cc4
mov eax, dword [esp + 0x14]
push eax
call fcn.004015a0
add esp, 4
jmp 0x4020b0
push eax
push str.HD_ReadBinFile_conNum___d
call fcn.004040c0
add esp, 8
xor eax, eax
lea edi, [esp + 0x57c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
cmp dword [edi - 8], ebx
je 0x401d9d
cmp byte [edi], bl
je 0x401d9d
push eax
push str.HD_ReadBinFile_Cert_i___d
call fcn.004040c0
mov esi, dword [esp + 0x1c]
add esp, 8
lea ecx, [esp + 0x12]
push ecx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [0x411f38]
test eax, eax
jl 0x401d99
cmp word [esp + 0x12], 0x9000
jne 0x401d99
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1ac]
lea edx, [eax + 0xdf01]
sar edx, 8
inc al
mov byte [esp + 0x1ac], dl
mov byte [esp + 0x1ad], al
lea eax, [esp + 0x12]
push eax
push ecx
push 2
push ebx
push 1
push esi
call dword [0x411f38]
test eax, eax
jl 0x401d99
cmp word [esp + 0x12], 0x9000
jne 0x401d99
mov ecx, 0x2ee
xor eax, eax
lea edi, [esp + 0x794]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x794]
push edx
push eax
push 0xef03
push esi
call fcn.00401700
add esp, 0x10
test eax, eax
je 0x401db7
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
inc eax
add edi, 0x88
cmp eax, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
jl 0x401ce3
jmp 0x401e25
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x260]
lea edx, [esp + 0x260]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
mov ecx, eax
shl ecx, 4
add ecx, eax
xor eax, eax
lea edi, [esp + ecx*8 + 0x57c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x794]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x260]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
lea edx, [esp + 0x128]
push ecx
push edx
call dword [0x40f008]
mov eax, dword [esp + 0x14]
push eax
call fcn.004015a0
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
push str.HD_CloseDevice_Cert_i___d
call fcn.004040c0
mov edx, dword [esp + 0x20]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
mov eax, 1
add esp, 8
mov dword [esp + 0x7c], eax
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x794]
push edx
push eax
push 0x10001
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov esi, eax
cmp esi, ebx
je 0x4020b0
lea ecx, [esp + 0x74]
push ecx
push ebx
push 2
push esi
call dword [sym.imp.CRYPT32.dll_CertSetCertificateContextProperty]
test eax, eax
jne 0x401ec5
push esi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
jmp 0x4020b0
mov edi, dword [sym.imp.CRYPT32.dll_CertGetNameStringA]
lea edx, [esp + 0x420]
push 0x100
push edx
push ebx
push ebx
push 4
push esi
call edi
test eax, eax
jne 0x401eef
push esi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
jmp 0x4020b0
lea eax, [esp + 0x320]
push 0x100
push eax
push ebx
push 1
push 4
push esi
call edi
test eax, eax
jne 0x401f14
push esi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
jmp 0x4020b0
mov ecx, 0x2d
xor eax, eax
lea edi, [esp + 0x1ac]
lea edx, [esp + 0x1ac]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
lea edi, [esp + 0x420]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x3c], 0xffff0002
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x1ac]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x40], 0x23
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x40c1c0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x44], ebx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1ac]
and ecx, 3
mov dword [esp + 0x48], ebx
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x320]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x4c], ebx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1ac]
and ecx, 3
mov dword [esp + 0x54], 0x100
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40c1bc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x28]
mov ecx, edx
and ecx, 3
mov dword [esp + 0x38], eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
lea edx, [esp + 0x38]
push edx
push ebx
push 0x1100
mov eax, 1
lea ecx, [esp + 0x1b8]
push 0x3e8
push ebp
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x64], ecx
call esi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push eax
push 0x1102
push 0x1102
push 0x3e8
push ebp
call esi
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ecx
push 0x1102
push 0x1102
push 0x3e8
push ebp
call esi
push eax
call edi
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov edx, ecx
lea esi, [esp + 0x794]
lea edi, [eax + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov dword [eax + 4], edx
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
add esi, 0xbc8
inc edi
cmp esi, 0x411f34
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], esi
jl 0x4019fc
cmp dword [0x412b40], ebx
jne 0x4021c2
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push 0x3e9
push ebp
call edi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
push ebx
push 0x3ea
push ebp
call edi
push eax
call esi
push ebx
push 0x3ee
push ebp
call edi
push eax
call esi
push ebx
push 0x3fa
push ebp
call edi
push eax
call esi
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0xcc]
lea edx, [esp + 0xcc]
rep stosd dword es:[edi], eax
mov edi, str.No_USBKey
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x38], ebx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
push 0x1100
lea ecx, [esp + 0xd8]
push 0x3e8
push ebp
mov dword [esp + 0x50], 0xffff0002
mov dword [esp + 0x54], 0x23
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], 0x100
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x64], ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b0c
ret
mov esi, dword [esp + 0x2c]
push esi
push 9
push 0x110b
push 0x3e8
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x34]
mov dword [0x411f7c], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b0c
ret