Function at 0x4039c0
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2cc
mov eax, dword [0x4130c8]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x14]
xor edi, edi
push eax
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esp + 0x18], eax
cmp eax, edi
je 0x404176
cmp dword [esp + 0x14], 2
jl 0x40416b
push 0x206
lea edx, [esp + 0xce]
xor ecx, ecx
push edi
push edx
mov word [esp + 0xd4], cx
call fcn.00404a00
add esp, 0xc
push 0x104
lea eax, [esp + 0xcc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x40416b
lea ecx, [esp + 0xc8]
push 0x5c
push ecx
call fcn.00404a98
add esp, 8
cmp eax, edi
je 0x40416b
xor edx, edx
push 0x40fa20
mov word [eax + 2], dx
lea eax, [esp + 0xcc]
push 0x104
push eax
call fcn.00404c31
add esp, 0xc
xor ecx, ecx
mov esi, 1
push esi
mov word [esp + 0x7c], cx
push 0x40fa1c
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], edi
call fcn.004019c0
cmp dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
jle 0x403e3e
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov edx, dword [edx + eax*4]
xor ecx, ecx
mov eax, edx
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], edi
mov word [esp + 0x5c], cx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403ae3
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x60]
call fcn.004019c0
mov ebx, dword [esp + 0x6c]
cmp ebx, edi
jne 0x403b1a
cmp dword [esp + 0x70], 8
jb 0x403e0d
mov edx, dword [esp + 0x5c]
push edx
jmp 0x403e05
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x5c]
cmp edx, 8
jb 0x403c37
mov esi, ecx
cmp ecx, edi
je 0x403b52
mov eax, ecx
cmp edx, 8
jae 0x403b3c
lea eax, [esp + 0x5c]
cmp eax, esi
ja 0x403b52
mov eax, ecx
cmp edx, 8
jae 0x403b4b
lea eax, [esp + 0x5c]
lea eax, [eax + ebx*2]
cmp esi, eax
jbe 0x403b63
call fcn.00404c21
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x58]
cmp eax, 0xfffffffc
je 0x403b8f
mov eax, ecx
cmp edx, 8
jae 0x403b77
lea eax, [esp + 0x5c]
lea eax, [eax + ebx*2]
cmp esi, eax
jb 0x403b8f
call fcn.00404c21
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
mov eax, 0x7b
cmp ax, word [esi]
jne 0x403d13
mov esi, ecx
cmp edx, 8
jae 0x403ba8
lea esi, [esp + 0x5c]
lea esi, [esi + ebx*2]
cmp esi, edi
je 0x403bd0
mov eax, ecx
cmp edx, 8
jae 0x403bba
lea eax, [esp + 0x5c]
cmp eax, esi
ja 0x403bd0
mov eax, ecx
cmp edx, 8
jae 0x403bc9
lea eax, [esp + 0x5c]
lea ecx, [eax + ebx*2]
cmp esi, ecx
jbe 0x403bd5
call fcn.00404c21
lea eax, [esp + 0x58]
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], esi
call fcn.00402440
mov ebx, dword [esp + 0x6c]
mov edx, 0x7d
cmp dx, word [eax]
mov edx, dword [esp + 0x70]
jne 0x403d0f
mov eax, dword [esp + 0x5c]
cmp edx, 8
jb 0x403c40
mov esi, eax
cmp eax, edi
je 0x403c30
mov ecx, eax
cmp edx, 8
jae 0x403c1a
lea ecx, [esp + 0x5c]
cmp ecx, esi
ja 0x403c2e
cmp edx, 8
jae 0x403c27
lea eax, [esp + 0x5c]
lea eax, [eax + ebx*2]
cmp esi, eax
jbe 0x403c46
xor edi, edi
call fcn.00404c21
jmp 0x403c48
lea esi, [esp + 0x5c]
jmp 0x403b31
lea esi, [esp + 0x5c]
jmp 0x403c0f
xor edi, edi
lea eax, [esp + 0x58]
push ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
call fcn.00402230
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x48], ecx
push 0xffffffffffffffff
lea ecx, [esp + 0x4c]
mov dword [esp + 0x50], edx
call fcn.00402230
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x5c]
cmp ecx, 8
jb 0x403d09
mov esi, eax
cmp eax, edi
je 0x403cb3
mov edx, eax
cmp ecx, 8
jae 0x403c9b
lea edx, [esp + 0x5c]
cmp edx, esi
ja 0x403cb3
cmp ecx, 8
jae 0x403ca8
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x6c]
lea edx, [eax + ecx*2]
cmp esi, edx
jbe 0x403cb8
call fcn.00404c21
lea eax, [esp + 0x58]
push 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], esi
call fcn.00402230
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
lea ecx, [esp + 0x88]
call fcn.004036f0
push 1
push 0x40fa18
lea ecx, [esp + 0x7c]
call fcn.004018a0
jmp 0x403df7
lea esi, [esp + 0x5c]
jmp 0x403c90
mov ecx, dword [esp + 0x5c]
cmp edx, 8
jb 0x403e22
mov esi, ecx
cmp ecx, edi
je 0x403d43
mov eax, ecx
cmp edx, 8
jae 0x403d2d
lea eax, [esp + 0x5c]
cmp eax, esi
ja 0x403d43
mov eax, ecx
cmp edx, 8
jae 0x403d3c
lea eax, [esp + 0x5c]
lea eax, [eax + ebx*2]
cmp esi, eax
jbe 0x403d54
call fcn.00404c21
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x58]
cmp eax, 0xfffffffc
je 0x403d7c
mov eax, ecx
cmp edx, 8
jae 0x403d68
lea eax, [esp + 0x5c]
lea eax, [eax + ebx*2]
cmp esi, eax
jb 0x403d7c
call fcn.00404c21
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x5c]
mov eax, 0x2f
cmp ax, word [esi]
jne 0x403dff
xor ecx, ecx
lea eax, [esp + 0xc8]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403da3
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xcc]
push edx
lea ecx, [esp + 0x24]
call fcn.004019c0
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004037a0
add esp, 8
test al, al
mov esi, 8
sete bl
cmp dword [esp + 0x34], esi
jb 0x403df3
mov edx, dword [esp + 0x20]
push edx
call fcn.004044c5
add esp, 4
test bl, bl
jne 0x403e2b
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x70]
cmp edx, 8
jb 0x403e0d
push ecx
call fcn.004044c5
add esp, 4
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jl 0x403ac0
jmp 0x403e3e
lea esi, [esp + 0x5c]
jmp 0x403d22
cmp dword [esp + 0x70], esi
jb 0x403e3e
mov eax, dword [esp + 0x5c]
push eax
call fcn.004044c5
add esp, 4
push 0xb
push str._Country_:_
lea ecx, [esp + 0x7c]
call fcn.004018a0
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401ab0
add esp, 4
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x80]
call fcn.00401690
mov esi, 8
cmp dword [esp + 0x34], esi
jb 0x403e83
mov edx, dword [esp + 0x20]
push edx
call fcn.004044c5
add esp, 4
push 0xe
push str.___Timezone_:_
lea ecx, [esp + 0x7c]
call fcn.004018a0
lea eax, [esp + 0x1c]
push eax
call fcn.00402070
add esp, 4
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x80]
call fcn.00401690
cmp dword [esp + 0x34], esi
jb 0x403ec3
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004044c5
add esp, 4
push esi
push str.___OS_:_
lea ecx, [esp + 0x7c]
call fcn.004018a0
lea edx, [esp + 0x1c]
push edx
call fcn.00401b60
add esp, 4
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x80]
call fcn.00401690
cmp dword [esp + 0x34], esi
jb 0x403f02
mov eax, dword [esp + 0x20]
push eax
call fcn.004044c5
add esp, 4
xor ecx, ecx
push edi
mov word [esp + 0xb4], cx
mov esi, 7
push 0x40f9c8
lea ecx, [esp + 0xb4]
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], edi
call fcn.004019c0
lea edx, [esp + 0xac]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
xor eax, eax
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], edi
push str.Testid
mov word [ecx + 4], ax
call fcn.004019c0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x1b
xor edx, edx
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], edi
push str.SOFTWAREEASEUSDRWVersion
mov word [ecx + 4], dx
call fcn.004019c0
call fcn.004034f0
add esp, 0x3c
push 0xd
push str.___Test_id_:_
lea ecx, [esp + 0x7c]
call fcn.004018a0
push 0xffffffffffffffff
push edi
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x80]
call fcn.00401690
push 2
push 0x40f95c
lea ecx, [esp + 0x7c]
call fcn.004018a0
push 1
push edi
lea ecx, [esp + 0x18]
push ecx
mov ebx, 0x22
lea ecx, [esp + 0x80]
mov dword [esp + 0x1c], ebx
call fcn.00402370
mov esi, eax
cmp esi, 0xffffffff
je 0x404016
mov dword [esp + 0x10], ebx
push 2
push 0x40f954
push 1
push esi
lea ecx, [esp + 0x84]
call fcn.00402ed0
push 1
add esi, 2
push esi
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x80]
call fcn.00402370
mov esi, eax
cmp esi, 0xffffffff
jne 0x403fe2
push 0x45
xor eax, eax
mov esi, 7
push 0x40f8c8
lea ecx, [esp + 0x98]
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], edi
mov word [esp + 0x9c], ax
call fcn.004019c0
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x9c]
call fcn.00401690
push 1
push 0x40f8c4
lea ecx, [esp + 0x98]
call fcn.004018a0
xor edx, edx
lea eax, [esp + 0xc8]
mov word [esp + 0x20], dx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404086
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x24]
call fcn.004019c0
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004037a0
add esp, 8
test al, al
mov esi, 8
sete bl
cmp dword [esp + 0x34], esi
jb 0x4040d9
mov eax, dword [esp + 0x20]
push eax
call fcn.004044c5
add esp, 4
cmp dword [esp + 0xa8], esi
jb 0x4040f2
mov ecx, dword [esp + 0x94]
push ecx
call fcn.004044c5
add esp, 4
xor edx, edx
mov ebx, 7
mov word [esp + 0x94], dx
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], ebx
cmp dword [esp + 0xc4], esi
jb 0x404128
mov eax, dword [esp + 0xb0]
push eax
call fcn.004044c5
add esp, 4
xor ecx, ecx
mov word [esp + 0xb0], cx
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], ebx
cmp dword [esp + 0x8c], esi
jb 0x404156
mov edx, dword [esp + 0x78]
push edx
call fcn.004044c5
add esp, 4
xor eax, eax
mov word [esp + 0x78], ax
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], ebx
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004049f1
mov esp, ebp
pop ebp
ret 0x10