Function at 0x407800
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x47085d
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x48cc50]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48cc50]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
mov esi, dword [0x472010]
lea eax, [esp + 0x20]
push eax
push str.SOFTWAREICBCEbankToolsSettings
xor ebp, ebp
push 0x80000002
mov dword [esp + 0x2c], ebp
call esi
test eax, eax
je 0x407871
lea ecx, [esp + 0x20]
push ecx
push str.SOFTWAREICBCEbankToolsSettings
push 0x80000001
call esi
test eax, eax
jne 0x4078a8
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebp
push str.Parameters
push edx
mov dword [esp + 0x48], 0x410
call dword [0x472020]
cmp eax, ebp
je 0x4078af
mov eax, dword [esp + 0x20]
push eax
call dword [0x47201c]
xor al, al
jmp 0x407d24
cmp dword [esp + 0x34], 1
jne 0x4078a8
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
cmp word [esp + 0x68], bp
je 0x4078d9
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x6c]
push edx
call dword [0x4723b4]
mov dword [esp + 0x24], eax
call fcn.0041db91
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4078f3
push 0x80004005
call fcn.00402a40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push fcn.00402710
push fcn.00402730
push 4
push 4
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x290], ebp
call fcn.0043b081
push fcn.00402710
push fcn.00402730
push 4
push 4
lea edx, [esp + 0x68]
push edx
mov byte [esp + 0x290], 1
call fcn.0043b081
xor eax, eax
mov byte [esp + 0x27c], 2
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov edi, 0x48ec6c
xor ebx, ebx
mov edx, dword [edi - 8]
cmp edx, ebp
jne 0x40796e
xor eax, eax
jmp 0x407982
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x407973
sub eax, esi
sar eax, 1
push eax
lea esi, [esp + ebx + 0x4c]
push edx
mov ecx, esi
call fcn.00401e70
push 3
push 0x47d304
mov ecx, esi
call fcn.00401e70
mov ecx, dword [edi]
cmp ecx, ebp
jne 0x4079a7
xor eax, eax
jmp 0x4079bf
mov eax, ecx
lea ebp, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4079b0
sub eax, ebp
sar eax, 1
push eax
push ecx
mov ecx, esi
call fcn.00401e70
push 4
push 0x47d338
mov ecx, esi
call fcn.00401e70
mov ecx, dword [edi + 4]
xor ebp, ebp
cmp ecx, ebp
jne 0x4079e3
xor eax, eax
jmp 0x4079ff
mov eax, ecx
lea esi, [eax + 2]
jmp 0x4079f0
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x4079f0
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + ebx + 0x60]
call fcn.00402380
add edi, 0xd0
add ebx, 4
cmp edi, 0x48efac
jl 0x407963
mov eax, dword [esp + 0x28]
mov byte [esp + 0x17], 0
cmp eax, ebp
je 0x407c22
xor ebx, ebx
cmp eax, ebp
jle 0x407ba4
call fcn.0041db91
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4078e9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x27c], 3
call fcn.0041db91
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4078e9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
mov byte [esp + 0x280], 4
mov ecx, dword [eax + ebx*4]
push edx
push ecx
call fcn.00407520
mov ebp, dword [esp + 0x38]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x407abe
mov eax, dword [ebp - 0xc]
push eax
push ebp
jmp 0x407b24
cmp dword [esp + esi*4 + 0x38], 0
lea edi, [esp + esi*4 + 0x38]
jne 0x407aef
lea edx, [esp + 0x2c]
lea ecx, [esp + esi*4 + 0x48]
push edx
call fcn.00408e10
lea eax, [esp + 0x1c]
lea esi, [esp + esi*4 + 0x58]
push eax
mov ecx, esi
call fcn.00408e10
mov dword [edi], 1
jmp 0x407b42
push 5
push 0x47d34c
lea ecx, [esp + 0x20]
call fcn.00401e70
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + ebx*4]
test edx, edx
jne 0x407b0e
xor eax, eax
jmp 0x407b22
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407b13
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00401e70
push 2
push 0x47d344
lea ecx, [esp + 0x20]
call fcn.00401e70
mov byte [esp + 0x17], 1
mov byte [esp + 0x27c], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
inc ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407b6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x27c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, dword [esp + 0x28]
jl 0x407a3a
cmp byte [esp + 0x17], 0
jne 0x407c4f
lea ebx, [esp + 0x284]
xor ebp, ebp
mov eax, dword [esp + ebp + 0x48]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00401e70
push 3
push 0x47d370
lea ecx, [esp + 0x20]
call fcn.00401e70
mov edi, dword [ebx + 4]
mov ecx, dword [esp + ebp + 0x58]
mov esi, dword [edi]
add ebx, 4
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x407c43
cmp dword [esi + 0xc], 0
jl 0x407c37
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x407c37
push eax
call fcn.00408da0
mov dword [esp + 0x20], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407c17
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x407c43
push 0xb
push 0x47d358
lea ecx, [esp + 0x20]
call fcn.00402380
jmp 0x407ba4
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.00402380
add ebp, 4
cmp ebp, 0x10
jl 0x407bad
mov ebp, dword [esp + 0x284]
mov eax, dword [esp + 0x18]
mov esi, dword [ebp]
lea edi, [eax - 0x10]
sub esi, 0x10
cmp edi, esi
je 0x407cb1
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x407ca5
mov edx, dword [edi]
cmp edx, dword [esi]
jne 0x407ca5
push edi
call fcn.00408da0
mov dword [esp + 0x20], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x407c99
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [ebp], ecx
jmp 0x407cb1
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebp
call fcn.00402380
mov eax, dword [esp + 0x24]
test eax, eax
je 0x407cc0
push eax
call dword [0x472300]
cmp byte [esp + 0x17], 0
push fcn.00402710
push 4
push 4
lea edx, [esp + 0x64]
push edx
sete bl
mov byte [esp + 0x28c], 1
call fcn.0043ae4e
push fcn.00402710
push 4
push 4
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x28c], 0
call fcn.0043ae4e
mov dword [esp + 0x27c], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d22
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov al, bl
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0043aa16
add esp, 0x26c
ret