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

Disassembly:
push 0xffffffffffffffff
push 0x461588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe88
push ebx
push ebp
mov ebx, ecx
mov eax, dword [esp + 0xea0]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0xe98], ebp
je 0x40a801
push esi
push edi
mov ecx, 0x3a2
xor eax, eax
lea edi, [esp + 0x10]
push 0x54
rep stosd dword es:[edi], eax
mov ecx, 0x3a2
lea edi, [esp + 0x14]
mov dword [esp + 0x9b0], ebp
mov dword [esp + 0x9bc], 2
mov dword [esp + 0x9b8], 1
rep stosd dword es:[edi], eax
call fcn.00455403
add esp, 4
cmp eax, ebp
je 0x40a3f7
mov ecx, eax
call fcn.00409c00
mov esi, eax
jmp 0x40a3f9
xor esi, esi
push ebp
push esi
lea eax, [esp + 0xeb0]
push 0x470038
push eax
mov ecx, ebx
call fcn.0040a820
lea edi, [esi + 4]
push ebp
push edi
lea ecx, [esp + 0xeb0]
push str.name
push ecx
mov ecx, ebx
call fcn.0040a820
lea ebp, [esi + 8]
push 0
push ebp
lea edx, [esp + 0xeb0]
push str.path
push edx
mov ecx, ebx
call fcn.0040a820
lea eax, [esi + 0x10]
push 0
push eax
lea eax, [esp + 0xeb0]
push str.workdir
push eax
mov ecx, ebx
call fcn.0040a820
lea eax, [esi + 0xc]
push 0
push eax
lea ecx, [esp + 0xeb0]
push str.param
push ecx
mov ecx, ebx
call fcn.0040a820
lea eax, [esi + 0x14]
push 0
push eax
lea edx, [esp + 0xeb0]
push 0x470008
push edx
mov ecx, ebx
call fcn.0040a820
lea eax, [esi + 0x1c]
push 0
push eax
lea eax, [esp + 0xeb0]
push str.subkey
push eax
mov ecx, ebx
call fcn.0040a820
lea eax, [esi + 0x20]
push 0
push eax
lea ecx, [esp + 0xeb0]
push str.value
push ecx
mov ecx, ebx
call fcn.0040a820
lea edx, [esi + 0x28]
push 0
push edx
lea eax, [esp + 0xeb0]
push str.instpath
push eax
mov ecx, ebx
call fcn.0040a820
lea eax, [esi + 0x24]
push 0
push eax
lea ecx, [esp + 0xeb0]
push str.iconpath
push ecx
mov ecx, ebx
call fcn.0040a820
lea eax, [esi + 0x2c]
push 0
push eax
lea edx, [esp + 0xeb0]
push str.exename
push edx
mov ecx, ebx
call fcn.0040a820
lea eax, [esi + 0x30]
push 0
push eax
lea eax, [esp + 0xeb0]
push str.secondfile
push eax
mov ecx, ebx
call fcn.0040a820
lea eax, [esi + 0x34]
push 0
push eax
lea ecx, [esp + 0xeb0]
push str.lnkprogram
push ecx
mov ecx, ebx
call fcn.0040a820
lea eax, [esi + 0x38]
push 0
push eax
lea edx, [esp + 0xeb0]
push str.lnkdesktop
push edx
mov ecx, ebx
call fcn.0040a820
lea eax, [esi + 0x3c]
push 0
push eax
lea eax, [esp + 0xeb0]
push str.company
push eax
mov ecx, ebx
call fcn.0040a820
push 3
lea ecx, [esp + 0xeac]
push str.type
push ecx
mov ecx, ebx
call fcn.0040aae0
push 2
lea edx, [esp + 0xeac]
push 0x46ff48
push edx
mov ecx, ebx
mov dword [esi + 0x4c], eax
call fcn.0040aae0
mov dword [esi + 0x50], eax
push 0
lea eax, [esp + 0xeac]
push str.hkey
push eax
mov ecx, ebx
call fcn.0040aae0
push 1
lea ecx, [esp + 0xeac]
push str.exist
push ecx
mov ecx, ebx
mov dword [esi + 0x18], eax
call fcn.0040a9e0
push 0
lea edx, [esp + 0xeac]
push str.mustdisplay
push edx
mov ecx, ebx
mov dword [esi + 0x48], eax
call fcn.0040a9e0
mov dword [esi + 0x44], eax
mov eax, dword [esi]
push eax
lea eax, [esp + 0x14]
push 0x32
push eax
call fcn.004088b0
mov edi, dword [edi]
push edi
lea ecx, [esp + 0x78]
push 0x14
push ecx
call fcn.004088b0
mov ebp, dword [ebp]
lea edx, [esp + 0x9c]
push ebp
push 0x104
push edx
call fcn.004088b0
mov eax, dword [esi + 0x10]
push eax
lea eax, [esp + 0x4b0]
push 0x104
push eax
call fcn.004088b0
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x2a4]
push eax
push 0x104
push ecx
call fcn.004088b0
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x6b4]
push eax
push 0x104
push edx
call fcn.004088b0
mov eax, dword [esi + 0x1c]
push eax
lea eax, [esp + 0x9c4]
push 0x104
push eax
call fcn.004088b0
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0xbc8]
push eax
push 0x14
push ecx
call fcn.004088b0
mov eax, dword [esi + 0x24]
lea edx, [esp + 0x8bc]
push eax
push 0x14
push edx
call fcn.004088b0
mov eax, dword [esi + 0x2c]
push eax
lea eax, [esp + 0xbf4]
push 0x3c
push eax
call fcn.004088b0
mov eax, dword [esi + 0x30]
lea ecx, [esp + 0xda8]
push eax
push 0x3c
push ecx
call fcn.004088b0
mov eax, dword [esi + 0x34]
lea edi, [esp + 0xe20]
mov edx, 0x1e
lea ecx, [esp + 0xe20]
sub eax, edi
mov di, word [eax + ecx]
test di, di
je 0x40a6fb
mov word [ecx], di
add ecx, 2
dec edx
jne 0x40a6e7
jmp 0x40a6ff
test edx, edx
jne 0x40a702
sub ecx, 2
mov word [ecx], 0
mov edx, dword [esi + 0x38]
lea ecx, [esp + 0xe5c]
mov edi, 0x1e
lea eax, [esp + 0xe5c]
sub edx, ecx
mov cx, word [edx + eax]
test cx, cx
je 0x40a733
mov word [eax], cx
add eax, 2
dec edi
jne 0x40a71f
jmp 0x40a737
test edi, edi
jne 0x40a73a
sub eax, 2
mov word [eax], 0
mov edx, dword [esi + 0x3c]
lea ecx, [esp + 0xc68]
mov edi, 0x3c
lea eax, [esp + 0xc68]
sub edx, ecx
mov cx, word [edx + eax]
test cx, cx
je 0x40a76b
mov word [eax], cx
add eax, 2
dec edi
jne 0x40a757
jmp 0x40a76f
test edi, edi
jne 0x40a772
sub eax, 2
mov word [eax], 0
mov edx, dword [esi + 0x4c]
mov dword [esp + 0x9b4], edx
mov eax, dword [esi + 0x50]
mov dword [esp + 0x9b8], eax
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x9bc], ecx
mov dword [esp + 0x9ac], 0
mov edx, dword [esi + 0x44]
mov ecx, dword [esp + 0xeac]
neg edx
mov eax, dword [ecx + 8]
sbb edx, edx
and edx, 2
mov dword [esp + 0x9b0], edx
lea edx, [esp + 0x10]
push edx
push 1
push eax
call fcn.0040ac10
test esi, esi
je 0x40a7dc
mov ecx, esi
call fcn.00409e00
push esi
call fcn.004535f0
add esp, 4
mov eax, dword [esp + 0xea8]
pop edi
test eax, eax
mov dword [esp + 0xe9c], 0xffffffff
pop esi
je 0x40a7fa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
jmp 0x40a803
xor eax, eax
mov ecx, dword [esp + 0xe90]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xe94
ret 8