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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41f486
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1dc
push ebx
push ebp
push esi
push edi
mov esi, ecx
push str.CMainFrame::AddRegEBAPILocal___n
mov dword [esp + 0x2c], esi
call fcn.00403770
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.004017b0
xor ebp, ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0x1f4], ebp
call fcn.004017b0
mov edi, 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x1f4], 1
mov dword [esp + 0x18], edi
call fcn.00404aa0
mov eax, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x1f4], 2
mov dword [esp + 0x78], str.LPT_Channel
mov word [esp + 0x7c], ax
mov word [esp + 0x7e], di
mov dword [esp + 0x80], str.LPT_ChnlMode
mov word [esp + 0x84], ax
mov word [esp + 0x86], di
mov dword [esp + 0x88], str.LPT_WriteTotalTimeOut
mov word [esp + 0x8c], ax
mov word [esp + 0x8e], bp
mov dword [esp + 0x90], str.LPT_ReadTotalTimeOut
mov word [esp + 0x94], ax
mov word [esp + 0x96], bp
mov dword [esp + 0x98], str.LPT_ReadIntervalTimeOut
mov word [esp + 0x9c], ax
mov word [esp + 0x9e], bp
mov dword [esp + 0xa0], str.LPT_SetTimeOutFlag
mov word [esp + 0xa4], ax
mov word [esp + 0xa6], bp
mov dword [esp + 0xa8], str.LPT_StatusLength
mov word [esp + 0xac], ax
mov word [esp + 0xae], bp
mov dword [esp + 0xb0], str.LPT_PrtMDLName
mov word [esp + 0xb4], di
mov word [esp + 0xb6], bp
mov dword [esp + 0xb8], str.LPT_VECP
mov word [esp + 0xbc], ax
mov word [esp + 0xbe], bp
mov dword [esp + 0xc0], str.LPT_StopCBTDummyRead
mov word [esp + 0xc4], ax
mov word [esp + 0xc6], bp
mov dword [esp + 0xc8], str.LPT_StopCBTDummyReadUSB
mov word [esp + 0xcc], ax
mov word [esp + 0xce], bp
mov dword [esp + 0xd0], str.LPT_ReadTotalTimeOutUSB
mov word [esp + 0xd4], ax
mov word [esp + 0xd6], bp
mov dword [esp + 0xd8], str.LPT_CancelWaitTime
mov word [esp + 0xdc], ax
mov word [esp + 0xde], bp
mov dword [esp + 0xe0], ebp
mov word [esp + 0xe4], ax
mov word [esp + 0xe6], bp
call fcn.004017b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1f4], 3
call fcn.004017b0
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov byte [esp + 0x1f8], 4
mov dword [esp + 0x44], ebp
call fcn.00408990
push 0x4202c0
push eax
lea ecx, [esp + 0x2c]
mov bl, 5
push ecx
mov byte [esp + 0x200], bl
call fcn.004024e0
lea edx, [esi + 0x8c]
push edx
push eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x20c], 6
call fcn.00402410
add esp, 0x18
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1f8], 7
call fcn.00401940
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1f4], 6
call fcn.00401910
lea ecx, [esp + 0x24]
mov byte [esp + 0x1f4], bl
call fcn.00401910
lea ecx, [esp + 0x20]
mov byte [esp + 0x1f4], 4
call fcn.00401910
cmp dword [esi + 0x2c], ebp
push 0x10
je 0x40d2e7
call fcn.0041563f
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
cmp edi, ebp
mov byte [esp + 0x1f4], 8
je 0x40d2dd
mov ecx, dword [esi + 0x78]
push 0xf003f
push 1
push ecx
lea ecx, [esp + 0x28]
call fcn.00402cb0
push eax
push 0x80000002
mov ecx, edi
call fcn.00413990
mov ebx, eax
mov dword [esp + 0x20], ebx
jmp 0x40d328
xor eax, eax
mov ebx, eax
mov dword [esp + 0x20], ebx
jmp 0x40d328
call fcn.0041563f
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
cmp edi, ebp
mov byte [esp + 0x1f4], 9
je 0x40d320
push 0xf003f
push ebp
push ebp
lea ecx, [esp + 0x28]
call fcn.00402cb0
push eax
push 0x80000002
mov ecx, edi
call fcn.00413990
jmp 0x40d322
xor eax, eax
mov dword [esp + 0x20], eax
mov ebx, eax
cmp ebx, ebp
mov byte [esp + 0x1f4], 4
je 0x40d8bb
cmp dword [ebx + 8], ebp
je 0x40d8bb
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Install
call fcn.00402390
push ecx
lea edx, [esi + 0xa0]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov byte [esp + 0x200], 0xa
call fcn.00402330
lea ecx, [esp + 0x50]
mov byte [esp + 0x1fc], 4
call fcn.004050a0
cmp eax, ebp
jne 0x40d39c
push ebp
push 8
push 6
call fcn.00403950
mov eax, dword [ebx]
add esp, 0xc
push 1
mov ecx, ebx
call dword [eax]
jmp 0x40d8c8
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x4c]
call fcn.004053f0
test eax, eax
je 0x40d831
lea edx, [esp + 0x10]
push str.LPT_ReadTotalTimeOut_NT40
push edx
call fcn.004015c0
add esp, 8
test al, al
je 0x40d3f4
mov eax, dword [esi + 0x80]
cmp eax, 2
je 0x40d3dc
cmp eax, 3
jne 0x40d81b
push str.LPT_ReadTotalTimeOut
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 1
call fcn.004019c0
jmp 0x40d424
lea eax, [esp + 0x10]
push str.LPT_ReadTotalTimeOut
push eax
call fcn.004015c0
add esp, 8
test al, al
je 0x40d424
mov eax, dword [esi + 0x80]
cmp eax, 2
je 0x40d41a
cmp eax, 3
jne 0x40d424
cmp dword [esp + 0x40], ebp
jne 0x40d81b
lea ecx, [esp + 0x10]
push str.SETLPT
push ecx
call fcn.004015c0
add esp, 8
test al, al
je 0x40d6ed
lea edx, [esp + 0x4c]
push str.WIN9X
push edx
call fcn.004015c0
add esp, 8
test al, al
je 0x40d45d
cmp dword [esi + 0x80], 1
jmp 0x40d4d8
lea eax, [esp + 0x4c]
push str.WINNT40
push eax
call fcn.004015c0
add esp, 8
test al, al
je 0x40d47c
cmp dword [esi + 0x80], 2
jmp 0x40d4d8
lea ecx, [esp + 0x4c]
push str.WIN2000
push ecx
call fcn.004015c0
add esp, 8
test al, al
je 0x40d49a
mov eax, dword [esi + 0x80]
jmp 0x40d4d5
lea edx, [esp + 0x4c]
push 0x420888
push edx
call fcn.004015c0
add esp, 8
test al, al
jne 0x40d4de
lea eax, [esp + 0x4c]
push str.WINNT
push eax
call fcn.004015c0
add esp, 8
test al, al
je 0x40d81b
mov eax, dword [esi + 0x80]
cmp eax, 2
je 0x40d4de
cmp eax, 3
jne 0x40d81b
push ecx
lea edx, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00402330
lea eax, [esp + 0x28]
push eax
call fcn.00404b20
lea ecx, [esp + 0x5c]
push str.REG_DWORD
push ecx
mov byte [esp + 0x204], 0xb
call fcn.004015c0
add esp, 0x10
test al, al
je 0x40d54d
lea ecx, [esp + 0x58]
call fcn.00402cb0
push eax
call fcn.00415d37
add esp, 4
push eax
lea ecx, [esp + 0x28]
call fcn.00402cb0
push eax
mov ecx, ebx
call fcn.004138f0
test eax, eax
jne 0x40d6d7
push ebp
push 0x40
push 3
jmp 0x40d6cb
lea edx, [esp + 0x54]
push str.REG_SZ
push edx
call fcn.004015c0
add esp, 8
test al, al
je 0x40d5d1
push ecx
lea eax, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.00402330
lea ecx, [esp + 0x48]
push ecx
call fcn.00404b20
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1f8], 0xc
call fcn.00401940
lea ecx, [esp + 0x44]
mov byte [esp + 0x1f4], 0xb
call fcn.00401910
lea ecx, [esp + 0x14]
call fcn.00402cb0
push eax
lea ecx, [esp + 0x28]
call fcn.00402cb0
push eax
mov ecx, ebx
call fcn.00413810
test eax, eax
jne 0x40d6d7
push ebp
push 0x41
push 3
jmp 0x40d6cb
lea edx, [esp + 0x54]
push str.REG_BINARY
push edx
call fcn.004015c0
add esp, 8
test al, al
je 0x40d6c6
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x30]
call fcn.00402330
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1f4], 0xd
call fcn.00402ca0
mov esi, eax
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0xe8]
xor ebx, ebx
cmp esi, ebp
rep stosd dword es:[edi], eax
jle 0x40d674
push ebx
lea ecx, [esp + 0x30]
call fcn.00401560
push eax
call fcn.00411650
mov ecx, eax
add esp, 4
cmp ecx, ebp
jl 0x40d663
test bl, 1
jne 0x40d643
shl ecx, 4
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dl, byte [esp + eax + 0xe8]
lea eax, [esp + eax + 0xe8]
add dl, cl
inc ebx
cmp ebx, esi
mov byte [eax], dl
jl 0x40d622
jmp 0x40d674
push ebp
push 9
push 6
call fcn.00403950
add esp, 0xc
mov dword [esp + 0x18], ebp
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00402cb0
mov ecx, dword [esp + 0x28]
push eax
call fcn.00413920
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1f4], 0xb
call fcn.00401910
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x24]
mov byte [esp + 0x1f4], 4
call fcn.00401910
jmp 0x40d81b
push ebp
push 9
push 6
call fcn.00403950
add esp, 0xc
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0x1f4], 4
call fcn.00401910
jmp 0x40d81b
xor esi, esi
nop
cmp word [esp + esi*8 + 0x7e], bp
je 0x40d73e
lea ecx, [esp + 0x10]
call fcn.00402ca0
sub eax, 2
push eax
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x18]
call fcn.00402a80
mov ecx, dword [esp + esi*8 + 0x78]
push ecx
push eax
mov byte [esp + 0x1fc], 0xe
call fcn.004015c0
add esp, 8
lea ecx, [esp + 0x3c]
movzx edi, al
mov byte [esp + 0x1f4], 4
call fcn.00401910
jmp 0x40d753
mov edx, dword [esp + esi*8 + 0x78]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.004015c0
add esp, 8
movzx edi, al
cmp edi, ebp
jne 0x40d768
mov eax, dword [esp + esi*8 + 0x80]
inc esi
cmp eax, ebp
jne 0x40d6f0
jmp 0x40d817
mov si, word [esp + esi*8 + 0x7c]
cmp si, 4
jne 0x40d7a0
lea ecx, [esp + 0x4c]
call fcn.00402cb0
push eax
call fcn.00415d37
add esp, 4
push eax
lea ecx, [esp + 0x14]
call fcn.00402cb0
push eax
mov ecx, ebx
call fcn.004138f0
test eax, eax
jne 0x40d817
push ebp
push 0x2a
jmp 0x40d809
cmp si, 1
jne 0x40d817
push ecx
lea edx, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00402330
lea eax, [esp + 0x34]
push eax
call fcn.00404b20
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1f8], 0xf
call fcn.00401940
lea ecx, [esp + 0x30]
mov byte [esp + 0x1f4], 4
call fcn.00401910
lea ecx, [esp + 0x14]
call fcn.00402cb0
push eax
lea ecx, [esp + 0x14]
call fcn.00402cb0
push eax
mov ecx, ebx
call fcn.00413810
test eax, eax
jne 0x40d817
push ebp
push 0x2b
push 3
call fcn.00403950
add esp, 0xc
mov dword [esp + 0x18], ebp
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x4c]
call fcn.004053f0
test eax, eax
jne 0x40d3b2
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov esi, dword [esp + 0x18]
push esi
push str.CMainFrame::AddRegEBAPILocal___result_:__d_n
call fcn.00403770
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x1f4], 3
call fcn.00401910
lea ecx, [esp + 0x14]
mov byte [esp + 0x1f4], 2
call fcn.00401910
lea ecx, [esp + 0x48]
mov byte [esp + 0x1f4], 1
call fcn.00405030
lea ecx, [esp + 0x34]
mov byte [esp + 0x1f4], 0
call fcn.00401910
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1f4], 0xffffffff
call fcn.00401910
mov eax, esi
mov ecx, dword [esp + 0x1ec]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push ebp
push 0x28
push 3
call fcn.00403950
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x1f4], 3
call fcn.00401910
lea ecx, [esp + 0x14]
mov byte [esp + 0x1f4], 2
call fcn.00401910
lea ecx, [esp + 0x48]
mov byte [esp + 0x1f4], 1
call fcn.00405030
lea ecx, [esp + 0x34]
mov byte [esp + 0x1f4], 0
call fcn.00401910
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1f4], 0xffffffff
call fcn.00401910
mov ecx, dword [esp + 0x1ec]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret