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

Disassembly:
push 0xffffffffffffffff
push 0x57f176
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x5e68f0]
xor eax, esp
mov dword [esp + 0x2c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e68f0]
xor eax, esp
push eax
lea eax, [esp + 0x2d8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2ec]
lea eax, [esp + 0x1c]
push eax
call fcn.00401dd0
mov edx, dword [esp + 0x2e8]
lea ecx, [esp + 0x1c]
push ecx
push edx
xor edi, edi
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x28]
mov dword [esp + 0x2e8], edi
call fcn.00408540
add esp, 8
test al, al
je 0x403643
lea ecx, [esp + 0x1c]
call fcn.00409520
test al, al
jne 0x403653
lea eax, [esp + 0x1c]
call fcn.00401e90
xor eax, eax
jmp 0x4040c1
push ecx
mov eax, esp
mov dword [eax], str.upgrade_actions
lea eax, [esp + 0x20]
mov dword [esp + 0x5c], esp
call fcn.004088b0
mov ebx, 1
test al, al
je 0x4040b6
mov ecx, dword [esp + 0x28]
cmp ecx, edi
je 0x4036a7
cmp dword [esp + 0x38], ebx
jne 0x4036a7
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], ecx
push ecx
mov eax, esp
mov dword [eax], str.action
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.004088b0
test al, al
je 0x4040ad
mov ecx, dword [esp + 0x28]
cmp ecx, edi
je 0x4036f6
cmp dword [esp + 0x38], ebx
jne 0x4036f6
mov eax, dword [esp + 0x2c]
xor edx, edx
cmp eax, edi
setne dl
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], edx
lea eax, [esp + 0xb4]
call fcn.004040f0
push ecx
mov eax, esp
mov byte [esp + 0x2e4], bl
mov dword [eax], 0x5be094
lea ecx, [esp + 0xac]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov byte [esp + 0x2e0], 2
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x403735
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x19c]
call fcn.00406660
mov byte [esp + 0x2e0], bl
mov eax, dword [esp + 0xa8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40377b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.dst_path
lea ecx, [esp + 0xa0]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov byte [esp + 0x2e0], 3
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x4037a7
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x1d4]
call fcn.00406660
mov byte [esp + 0x2e0], bl
mov eax, dword [esp + 0x9c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4037ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.image_path
lea ecx, [esp + 0xa8]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov byte [esp + 0x2e0], 4
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x403820
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x13c]
call fcn.00406660
mov byte [esp + 0x2e0], bl
mov eax, dword [esp + 0xa4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403866
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.mode
lea ecx, [esp + 0xb0]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov eax, dword [eax]
push eax
call fcn.0050cca5
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xb0]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4038b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.name
lea ecx, [esp + 0xa4]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov byte [esp + 0x2e0], 5
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x4038e4
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xdc]
call fcn.00406660
mov byte [esp + 0x2e0], bl
mov eax, dword [esp + 0xa0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40392a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.operation
lea ecx, [esp + 0x6c]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov eax, dword [eax]
push eax
call fcn.0050cca5
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403976
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.path
lea ecx, [esp + 0x94]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov byte [esp + 0x2e0], 6
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x4039a2
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xbc]
call fcn.00406660
mov byte [esp + 0x2e0], bl
mov eax, dword [esp + 0x90]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4039e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.src_path
lea ecx, [esp + 0x74]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov byte [esp + 0x2e0], 7
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x403a11
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x1b8]
call fcn.00406660
mov byte [esp + 0x2e0], bl
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.start_up
lea ecx, [esp + 0xb4]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov eax, dword [eax]
push eax
call fcn.0050cca5
mov dword [esp + 0x138], eax
mov eax, dword [esp + 0xb4]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403aa6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.type
lea ecx, [esp + 0x7c]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov eax, dword [eax]
push eax
call fcn.0050cca5
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403af2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.work_dir
lea ecx, [esp + 0x9c]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov byte [esp + 0x2e0], 8
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x403b20
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x180]
call fcn.00406660
mov byte [esp + 0x2e0], bl
mov eax, dword [esp + 0x98]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.param
lea ecx, [esp + 0x84]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov byte [esp + 0x2e0], 9
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x403b92
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x1f0]
call fcn.00406660
mov byte [esp + 0x2e0], bl
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403bd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.keyinfo
lea ecx, [esp + 0x60]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov byte [esp + 0x2e0], 0xa
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x403c01
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x248]
call fcn.00406660
mov byte [esp + 0x2e0], bl
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.displayName
lea ecx, [esp + 0x8c]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov byte [esp + 0x2e0], 0xb
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x403c70
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xf8]
call fcn.00406660
mov byte [esp + 0x2e0], bl
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403cb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.description
lea ecx, [esp + 0x64]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov byte [esp + 0x2e0], 0xc
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x403ce0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x114]
call fcn.00406660
mov byte [esp + 0x2e0], bl
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.errorControl
lea ecx, [esp + 0x68]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov eax, dword [eax]
push eax
call fcn.0050cca5
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.serviceStartType
lea ecx, [esp + 0x70]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov eax, dword [eax]
push eax
call fcn.0050cca5
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403dbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.os2k
lea ecx, [esp + 0x78]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov byte [esp + 0x2e0], 0xd
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x403de4
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x264]
call fcn.00406660
mov byte [esp + 0x2e0], bl
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.os2003
lea ecx, [esp + 0x80]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov byte [esp + 0x2e0], 0xe
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x403e53
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x280]
call fcn.00406660
mov byte [esp + 0x2e0], bl
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.osxp
lea ecx, [esp + 0x88]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov byte [esp + 0x2e0], 0xf
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x403ec2
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x29c]
call fcn.00406660
mov byte [esp + 0x2e0], bl
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.osvista
lea ecx, [esp + 0x90]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov byte [esp + 0x2e0], 0x10
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x403f34
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x2b8]
call fcn.00406660
mov byte [esp + 0x2e0], bl
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.loadOrderGroup
lea ecx, [esp + 0x98]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov byte [esp + 0x2e0], 0x11
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x403fa6
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x164]
call fcn.00406660
mov byte [esp + 0x2e0], bl
mov eax, dword [esp + 0x94]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403fec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.tagid
lea ecx, [esp + 0x5c]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esp
call fcn.00401f40
mov eax, dword [eax]
push eax
call fcn.0050cca5
mov dword [esp + 0x160], eax
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404038
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xb4]
push ecx
mov ebx, ebp
call fcn.00405f10
mov eax, dword [esp + 0x24]
xor ebx, ebx
cmp eax, ebx
je 0x40408e
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x28]
mov ecx, eax
mov esi, eax
and eax, 0xffff
sar esi, 0x10
mov esi, dword [edi + esi*4]
shl eax, 5
mov eax, dword [esi + eax + 0x10]
mov dword [esp + 0x2c], edx
xor edx, edx
cmp ecx, ebx
setne dl
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], edx
lea esi, [esp + 0xb4]
mov byte [esp + 0x2e0], bl
call fcn.00404230
mov ebx, 1
xor edi, edi
jmp 0x4036a7
lea eax, [esp + 0x1c]
call fcn.004091c0
lea eax, [esp + 0x1c]
call fcn.00401e90
mov eax, ebx
mov ecx, dword [esp + 0x2d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c0]
xor ecx, esp
call fcn.0050c2f2
add esp, 0x2d0
ret