Function at 0x4031b0
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d44b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x43b050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x228], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x234], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4031f6
sub eax, edx
sar eax, 1
mov edi, eax
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f855
mov ebx, eax
mov eax, dword [ebp - 0x234]
push edi
push eax
push esi
push ebx
mov dword [ebp - 0x230], ebx
call fcn.004204c3
mov esi, dword [ebp - 0x228]
add esp, 0x14
push 0
lea ecx, [esi + 0x10]
push 0x435bdc
mov dword [ebp - 0x238], ecx
call fcn.00404bc0
push 0
lea ecx, [esi + 0x14]
push 0x435bdc
call fcn.00404bc0
push 0
lea ecx, [esi + 0x18]
push 0x435bdc
call fcn.00404bc0
push 0x435bdc
lea ecx, [ebp - 0x224]
call fcn.00403e80
push 0
push 0x435bdc
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.00404bc0
push str._Start:
push ebx
call fcn.00420811
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40336a
movzx eax, word [ebx + 0xe]
add ebx, 0xe
xor ecx, ecx
cmp cx, ax
je 0x403358
jmp 0x4032d0
mov edx, 0x2f
cmp dx, ax
je 0x4033aa
mov edx, dword [ebp - 0x224]
mov esi, dword [edx - 0xc]
movzx eax, ax
mov dword [ebp - 0x234], eax
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
lea edi, [esi + 1]
sub eax, edi
or eax, ecx
jge 0x403316
push edi
lea ecx, [ebp - 0x224]
call fcn.00405140
mov edx, dword [ebp - 0x224]
mov cx, word [ebp - 0x234]
mov word [edx + esi*2], cx
test edi, edi
jl 0x4033be
mov eax, dword [ebp - 0x224]
cmp edi, dword [eax - 8]
jg 0x4033be
mov dword [eax - 0xc], edi
mov eax, dword [ebp - 0x224]
xor edx, edx
add ebx, 2
mov word [eax + edi*2], dx
movzx eax, word [ebx]
xor ecx, ecx
cmp cx, ax
jne 0x4032d0
lea eax, [ebp - 0x224]
call fcn.00404510
mov ebx, eax
call fcn.00404560
mov esi, dword [ebp - 0x228]
mov edi, dword [ebp - 0x224]
mov dword [esi + 0x40], 0
mov ecx, 0x435a70
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4033c8
test dx, dx
je 0x4033a6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4033c8
add eax, 4
add ecx, 4
test dx, dx
jne 0x403384
xor eax, eax
jmp 0x4033cd
lea eax, [ebp - 0x224]
call fcn.00404510
mov ebx, eax
call fcn.00404560
jmp 0x403358
push 0x80070057
call fcn.00405810
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4033dd
mov dword [esi + 0x3c], 1
jmp 0x4034dd
mov ecx, str.traynew
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40340a
test dx, dx
je 0x403406
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40340a
add eax, 4
add ecx, 4
test dx, dx
jne 0x4033e4
xor eax, eax
jmp 0x40340f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40341f
mov dword [esi + 0x3c], 4
jmp 0x4034dd
lea edx, [ebp - 0x224]
push edx
mov ecx, str.kernel
call fcn.00404000
test eax, eax
jne 0x403440
mov dword [esi + 0x3c], 6
jmp 0x4034dd
lea eax, [ebp - 0x224]
push eax
mov ecx, str.trayreported
call fcn.00404000
test eax, eax
jne 0x40345e
mov dword [esi + 0x3c], 2
jmp 0x4034dd
lea ecx, [ebp - 0x224]
push ecx
mov ecx, str.servernew
call fcn.00404000
test eax, eax
jne 0x40347c
mov dword [esi + 0x3c], 5
jmp 0x4034dd
lea edx, [ebp - 0x224]
push edx
mov ecx, str.serverreported
call fcn.00404000
test eax, eax
jne 0x40349a
mov dword [esi + 0x3c], 3
jmp 0x4034dd
lea eax, [ebp - 0x224]
push eax
mov ecx, str.ServerRequiredFull
call fcn.00404000
test eax, eax
jne 0x4034bf
mov dword [esi + 0x3c], 7
mov dword [esi + 0x40], 1
jmp 0x4034dd
lea ecx, [ebp - 0x224]
push ecx
mov ecx, str.ServerRequiredMini
call fcn.00404000
neg eax
sbb eax, eax
and eax, 0xfffffff8
add eax, 8
mov dword [esi + 0x3c], eax
push 0
add esi, 0x1c
push 0x435bdc
mov ecx, esi
call fcn.00404bc0
mov edx, dword [ebp - 0x230]
push str._Program:
push edx
call fcn.00420811
add esp, 8
test eax, eax
je 0x4035b7
add eax, 0x12
mov dword [ebp - 0x220], eax
movzx eax, word [eax]
xor ecx, ecx
cmp cx, ax
je 0x4035a9
mov edx, 0x2f
cmp dx, ax
je 0x40359b
movzx eax, ax
mov dword [ebp - 0x234], eax
mov eax, dword [esi]
mov ebx, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebx + 1]
sub eax, edi
or eax, ecx
jge 0x403555
push edi
mov ecx, esi
call fcn.00405140
mov eax, dword [esi]
mov cx, word [ebp - 0x234]
mov word [eax + ebx*2], cx
test edi, edi
jl 0x4033be
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x4033be
mov dword [eax - 0xc], edi
mov edx, dword [esi]
xor eax, eax
mov word [edx + edi*2], ax
mov eax, dword [ebp - 0x220]
add eax, 2
mov dword [ebp - 0x220], eax
movzx eax, word [eax]
xor ecx, ecx
cmp cx, ax
jne 0x403521
jmp 0x4035a9
mov eax, esi
call fcn.00404510
mov ebx, eax
call fcn.00404560
mov eax, esi
call fcn.00404510
mov ebx, eax
call fcn.00404560
mov esi, dword [ebp - 0x228]
add esi, 0x20
push 0
push 0x435bdc
mov ecx, esi
mov dword [ebp - 0x234], esi
call fcn.00404bc0
mov edx, dword [ebp - 0x230]
push str._Path:
push edx
call fcn.00420811
add esp, 8
test eax, eax
je 0x4036a6
add eax, 0xc
mov dword [ebp - 0x220], eax
movzx eax, word [eax]
xor ecx, ecx
cmp cx, ax
je 0x403698
jmp 0x403610
mov edx, 0x2f
cmp dx, ax
je 0x40368a
movzx eax, ax
mov dword [ebp - 0x22c], eax
mov eax, dword [esi]
mov ebx, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebx + 1]
sub eax, edi
or eax, ecx
jge 0x403644
push edi
mov ecx, esi
call fcn.00405140
mov eax, dword [esi]
mov cx, word [ebp - 0x22c]
mov word [eax + ebx*2], cx
test edi, edi
jl 0x4033be
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x4033be
mov dword [eax - 0xc], edi
mov edx, dword [esi]
xor eax, eax
mov word [edx + edi*2], ax
mov eax, dword [ebp - 0x220]
add eax, 2
mov dword [ebp - 0x220], eax
movzx eax, word [eax]
xor ecx, ecx
cmp cx, ax
jne 0x403610
jmp 0x403698
mov eax, esi
call fcn.00404510
mov ebx, eax
call fcn.00404560
mov eax, esi
call fcn.00404510
mov ebx, eax
call fcn.00404560
mov esi, dword [ebp - 0x228]
push 0
add esi, 0x24
push 0x435bdc
mov ecx, esi
call fcn.00404bc0
mov edx, dword [ebp - 0x230]
push str._Version:
push edx
call fcn.00420811
add esp, 8
test eax, eax
je 0x403786
add eax, 0x12
mov dword [ebp - 0x220], eax
movzx eax, word [eax]
xor ecx, ecx
cmp cx, ax
je 0x403778
mov edx, 0x2f
cmp dx, ax
je 0x40376a
movzx eax, ax
mov dword [ebp - 0x22c], eax
mov eax, dword [esi]
mov ebx, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebx + 1]
sub eax, edi
or eax, ecx
jge 0x403724
push edi
mov ecx, esi
call fcn.00405140
mov eax, dword [esi]
mov cx, word [ebp - 0x22c]
mov word [eax + ebx*2], cx
test edi, edi
jl 0x4033be
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x4033be
mov dword [eax - 0xc], edi
mov edx, dword [esi]
xor eax, eax
mov word [edx + edi*2], ax
mov eax, dword [ebp - 0x220]
add eax, 2
mov dword [ebp - 0x220], eax
movzx eax, word [eax]
xor ecx, ecx
cmp cx, ax
jne 0x4036f0
jmp 0x403778
mov eax, esi
call fcn.00404510
mov ebx, eax
call fcn.00404560
mov eax, esi
call fcn.00404510
mov ebx, eax
call fcn.00404560
mov esi, dword [ebp - 0x228]
push 0
add esi, 0x14
push 0x435bdc
mov ecx, esi
call fcn.00404bc0
mov edx, dword [ebp - 0x230]
push str._Module:
push edx
call fcn.00420811
add esp, 8
test eax, eax
je 0x403866
add eax, 0x10
mov dword [ebp - 0x220], eax
movzx eax, word [eax]
xor ecx, ecx
cmp cx, ax
je 0x403858
mov edx, 0x2f
cmp dx, ax
je 0x40384a
movzx eax, ax
mov dword [ebp - 0x22c], eax
mov eax, dword [esi]
mov ebx, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebx + 1]
sub eax, edi
or eax, ecx
jge 0x403804
push edi
mov ecx, esi
call fcn.00405140
mov eax, dword [esi]
mov cx, word [ebp - 0x22c]
mov word [eax + ebx*2], cx
test edi, edi
jl 0x4033be
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x4033be
mov dword [eax - 0xc], edi
mov edx, dword [esi]
xor eax, eax
mov word [edx + edi*2], ax
mov eax, dword [ebp - 0x220]
add eax, 2
mov dword [ebp - 0x220], eax
movzx eax, word [eax]
xor ecx, ecx
cmp cx, ax
jne 0x4037d0
jmp 0x403858
mov eax, esi
call fcn.00404510
mov ebx, eax
call fcn.00404560
mov eax, esi
call fcn.00404510
mov ebx, eax
call fcn.00404560
mov ebx, dword [ebp - 0x228]
push 0
lea esi, [ebx + 0x2c]
push 0x435bdc
mov ecx, esi
call fcn.00404bc0
mov edx, dword [ebp - 0x230]
push str._App:
push edx
call fcn.00420811
mov edx, eax
add esp, 8
test edx, edx
je 0x40394d
movzx eax, word [edx + 0xa]
add edx, 0xa
xor ecx, ecx
mov dword [ebp - 0x220], edx
cmp cx, ax
je 0x403939
mov ecx, 0x2f
cmp cx, ax
je 0x40392b
movzx eax, ax
mov dword [ebp - 0x22c], eax
mov eax, dword [esi]
mov ebx, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebx + 1]
sub eax, edi
or eax, ecx
jge 0x4038ed
push edi
mov ecx, esi
call fcn.00405140
mov edx, dword [ebp - 0x220]
mov eax, dword [esi]
mov cx, word [ebp - 0x22c]
mov word [eax + ebx*2], cx
test edi, edi
jl 0x4033be
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x4033be
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
add edx, 2
mov word [eax + edi*2], cx
movzx eax, word [edx]
mov dword [ebp - 0x220], edx
cmp cx, ax
jne 0x4038b3
jmp 0x403939
mov eax, esi
call fcn.00404510
mov ebx, eax
call fcn.00404560
mov eax, esi
call fcn.00404510
mov ebx, eax
call fcn.00404560
mov ebx, dword [ebp - 0x228]
push 0
push 0x435bdc
lea ecx, [ebx + 0x18]
call fcn.00404bc0
mov edx, dword [ebp - 0x230]
push str._ID:
push edx
call fcn.00420811
add esp, 8
test eax, eax
je 0x403a48
add eax, 8
mov dword [ebp - 0x220], eax
movzx eax, word [eax]
xor ecx, ecx
cmp cx, ax
je 0x403a2d
nop
mov edx, 0x2f
cmp dx, ax
je 0x403a18
mov esi, dword [ebp - 0x228]
movzx eax, ax
mov dword [ebp - 0x22c], eax
mov eax, dword [esi + 0x18]
mov ebx, dword [eax - 0xc]
add esi, 0x18
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebx + 1]
sub eax, edi
or eax, ecx
jge 0x4039ce
push edi
mov ecx, esi
call fcn.00405140
mov eax, dword [esi]
mov cx, word [ebp - 0x22c]
mov word [eax + ebx*2], cx
test edi, edi
jl 0x4033be
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x4033be
mov dword [eax - 0xc], edi
mov edx, dword [esi]
xor eax, eax
mov word [edx + edi*2], ax
mov eax, dword [ebp - 0x220]
add eax, 2
mov dword [ebp - 0x220], eax
movzx eax, word [eax]
xor ecx, ecx
cmp cx, ax
jne 0x403990
jmp 0x403a2d
mov eax, dword [ebp - 0x228]
add eax, 0x18
call fcn.00404510
mov ebx, eax
call fcn.00404560
mov eax, dword [ebp - 0x228]
add eax, 0x18
call fcn.00404510
mov ebx, eax
call fcn.00404560
mov ebx, dword [ebp - 0x228]
push 0
lea esi, [ebx + 0x28]
push 0x435bdc
mov ecx, esi
call fcn.00404bc0
mov edx, dword [ebp - 0x230]
push str._Mail:
push edx
call fcn.00420811
mov edx, eax
add esp, 8
test edx, edx
je 0x403b2a
movzx eax, word [edx + 0xc]
add edx, 0xc
xor ecx, ecx
mov dword [ebp - 0x220], edx
cmp cx, ax
je 0x403b16
nop
mov ecx, 0x2f
cmp cx, ax
je 0x403b08
movzx eax, ax
mov dword [ebp - 0x22c], eax
mov eax, dword [esi]
mov ebx, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebx + 1]
sub eax, edi
or eax, ecx
jge 0x403aca
push edi
mov ecx, esi
call fcn.00405140
mov edx, dword [ebp - 0x220]
mov eax, dword [esi]
mov cx, word [ebp - 0x22c]
mov word [eax + ebx*2], cx
test edi, edi
jl 0x4033be
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x4033be
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
add edx, 2
mov word [eax + edi*2], cx
movzx eax, word [edx]
mov dword [ebp - 0x220], edx
cmp cx, ax
jne 0x403a90
jmp 0x403b16
mov eax, esi
call fcn.00404510
mov ebx, eax
call fcn.00404560
mov eax, esi
call fcn.00404510
mov ebx, eax
call fcn.00404560
mov ebx, dword [ebp - 0x228]
push 0
lea edi, [ebx + 0x30]
push 0x435bdc
mov ecx, edi
call fcn.00404bc0
mov esi, dword [ebp - 0x230]
push str._DumpPath:
push esi
call fcn.00420811
mov edx, eax
add esp, 8
test edx, edx
je 0x403c11
movzx eax, word [edx + 0x14]
add edx, 0x14
xor ecx, ecx
mov dword [ebp - 0x220], edx
cmp cx, ax
je 0x403bf7
mov ecx, 0x2f
cmp cx, ax
je 0x403be9
movzx eax, ax
mov dword [ebp - 0x22c], eax
mov eax, dword [edi]
mov esi, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea ebx, [esi + 1]
sub eax, ebx
or eax, ecx
jge 0x403bab
push ebx
mov ecx, edi
call fcn.00405140
mov edx, dword [ebp - 0x220]
mov eax, dword [edi]
mov cx, word [ebp - 0x22c]
mov word [eax + esi*2], cx
test ebx, ebx
jl 0x4033be
mov eax, dword [edi]
cmp ebx, dword [eax - 8]
jg 0x4033be
mov dword [eax - 0xc], ebx
mov eax, dword [edi]
xor ecx, ecx
add edx, 2
mov word [eax + ebx*2], cx
movzx eax, word [edx]
mov dword [ebp - 0x220], edx
cmp cx, ax
jne 0x403b71
jmp 0x403bf7
mov eax, edi
call fcn.00404510
mov ebx, eax
call fcn.00404560
mov eax, edi
call fcn.00404510
mov ebx, eax
call fcn.00404560
mov ebx, dword [ebp - 0x228]
mov esi, dword [ebp - 0x230]
test esi, esi
je 0x403c28
push esi
call fcn.0042034b
add esp, 4
mov dword [ebp - 0x230], 0
mov edx, dword [ebx + 0x18]
lea eax, [ebx + 0x18]
mov dword [ebp - 0x22c], eax
mov eax, dword [edx - 0xc]
cmp eax, 0x20
je 0x403c6f
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
jmp 0x403e2b
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
jg 0x403c9b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
setg bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x403c5c
push 0x105
lea ecx, [ebp - 0x21c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [edi]
mov ecx, dword [ebx + 0x24]
mov edx, dword [ebx + 0x1c]
push eax
lea esi, [ebx + 0x24]
push ecx
lea eax, [ebp - 0x21c]
push eax
push edx
call fcn.0041cf10
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
add esp, 0x10
test eax, eax
jle 0x403d0c
add eax, 0xffffffff
js 0x4033be
cmp eax, dword [ecx - 0xc]
jg 0x4033be
movzx eax, word [ecx + eax*2]
mov edx, 0x5c
cmp dx, ax
je 0x403d0c
mov edx, 0x4357d8
call fcn.00403fc0
cmp dword [ebx + 0x40], 1
jne 0x403dc5
push str.bav_full_8284DB3F_8A1E_4381_A976_6DDB3CC75E8F
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x403d36
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403d66
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x403e2b
mov ebx, dword [ebp - 0x22c]
mov eax, dword [ebx]
mov ecx, dword [esi]
lea edx, [ebp - 0x228]
push edx
push eax
push ecx
mov dword [ebp - 0x228], 1
call fcn.0041e130
add esp, 0xc
cmp dword [ebp - 0x228], 1
je 0x403dc5
mov ecx, dword [ebx]
mov edx, dword [esi]
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x234]
push 0
push ecx
mov ecx, dword [eax]
push edx
push ecx
push 0
call fcn.0041e5b0
add esp, 0x18
lea ecx, [ebp - 0x224]
call fcn.00403f30
xor al, al
jmp 0x403e2b
mov esi, dword [ebp - 0x238]
push edi
mov ecx, esi
call fcn.00404600
mov edx, dword [ebp - 0x234]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push esi
call fcn.00405080
mov ecx, esi
call fcn.00404270
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x403e00
push eax
call fcn.0042034b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f86b
mov esp, ebp
pop ebp
ret 4