Function at 0x40faa0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54256d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ecx
mov eax, 0x1752c
call fcn.004c70e0
mov eax, dword [0x57906c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ecx, ecx
mov dword [ebp - 0x8940], ecx
mov dword [ebp - 4], ecx
push 0x1250
push ecx
lea eax, [ebp - 0x1368]
push eax
call fcn.00516f30
add esp, 0xc
push 0x75d0
lea eax, [ebp - 0xff70]
push eax
call fcn.0040eec0
add esp, 4
push eax
lea eax, [ebp - 0x17540]
push eax
call fcn.00516430
add esp, 0xc
push 0x75d0
lea eax, [ebp - 0x17540]
push eax
lea eax, [ebp - 0x8938]
push eax
call fcn.00516430
add esp, 0xc
lea eax, [ebp - 0x74e8]
push eax
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x410cb8
lea eax, [ebp - 0x74e8]
push eax
push 0x567a6c
push str._I_:_s__:_wsz_SensorConfig:__s
call fcn.00427fe0
add esp, 0xc
push 0x55faaf
lea ecx, [ebp - 0xa4]
call fcn.00407c10
mov byte [ebp - 4], 1
lea eax, [ebp - 0x74e8]
push eax
call esi
test eax, eax
je 0x40fd0f
push 0
push 1
push 3
push 0
push 1
push accept
lea eax, [ebp - 0x74e8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x84], 0
cmp esi, 0xffffffff
je 0x40fd0f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x894c], eax
xor edx, edx
add eax, 1
setb dl
neg edx
or edx, eax
push edx
call fcn.00524e05
add esp, 4
mov edi, eax
push 0
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x894c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x40fd8f
cmp dword [ebp - 0x894c], eax
jne 0x40fd8f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x20], 0
call fcn.004269d0
add eax, 0x42
push eax
push 0x21
lea eax, [ebp - 0x40]
push eax
call fcn.0052400a
add esp, 0xc
lea esi, [ebp - 0x40]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x40fc70
sub esi, ecx
call fcn.004269d0
push esi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00426a40
test eax, eax
je 0x40fd0f
mov dword [ebp - 0x894c], 0
call fcn.004269d0
push 0
push edi
lea eax, [ebp - 0x894c]
push eax
push dword [ebp - 0x88]
call fcn.00426b80
test eax, eax
je 0x40fcef
push dword [ebp - 0x894c]
lea ecx, [ebp - 0x68]
call fcn.00407c10
mov byte [ebp - 4], 2
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00411d70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.00407b50
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x40fd02
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test edi, edi
je 0x40fd0f
push edi
call fcn.0051f38c
add esp, 4
push ecx
lea ecx, [ebp - 0x50]
call fcn.00407810
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa4]
call fcn.00407a60
push eax
push str.GetAgentConfigFromFile
push str._I__s__:_strConfig:__s
call fcn.00427e30
push ecx
mov dword [ebp - 0x8944], esp
mov ecx, esp
sub esp, 0x28
mov dword [ebp - 0x8948], esp
mov eax, esp
mov dword [ebp - 0x8950], eax
mov dword [eax + 0x24], 0
mov byte [ebp - 4], 5
mov byte [ebp - 4], 6
push 0
push 1
mov byte [ebp - 4], 4
lea edx, [ebp - 0xa4]
call fcn.00413c60
add esp, 0x30
mov byte [ebp - 4], 7
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x50]
call fcn.004077a0
jmp 0x40ff99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetAgentConfigFromFile
push str._E__s__:_read_file_error:__d
call fcn.00427e30
add esp, 0xc
push 0x1250
lea eax, [ebp - 0x1368]
push eax
lea eax, [ebp - 0x9bf0]
push eax
call fcn.00516430
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.00407b50
lea eax, [ebp - 0x9bf0]
jmp 0x410d4f
mov dword [ebp - 4], 3
push 0x567b78
lea ecx, [ebp - 0x68]
call fcn.00407c10
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x8964]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411ad0
mov esi, eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411b60
push esi
mov ecx, eax
call fcn.004198a0
mov byte [ebp - 0x8939], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.00407b50
cmp byte [ebp - 0x8939], 0
jne 0x410063
lea eax, [ebp - 0x68]
push eax
push ecx
push 0x567b78
lea ecx, [ebp - 0x50]
call fcn.0040ac00
add esp, 4
mov ecx, eax
call fcn.00413dd0
mov byte [ebp - 4], 0x19
mov ecx, eax
call fcn.00407a60
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00420f40
mov byte [ebp - 4], 0x1a
mov ecx, eax
call fcn.00407890
push eax
push 0x104
lea eax, [ebp - 0xd48]
push eax
call fcn.0051f2c4
add esp, 0xc
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x38]
call fcn.004078a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.00407b50
jmp 0x4104e2
lea ecx, [ebp - 0x68]
call fcn.00426cd0
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x68]
call fcn.00407880
test eax, eax
je 0x410117
push 0x567b7c
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8944], esp
lea eax, [ebp - 0x68]
push eax
call fcn.00407940
mov byte [ebp - 4], 0x1c
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x38]
call fcn.004219e0
add esp, 0x18
mov byte [ebp - 4], 0x1d
mov ecx, 1
mov dword [ebp - 0x8940], ecx
mov ecx, eax
call fcn.00411ce0
test eax, eax
je 0x410117
sub esp, 0x18
mov dword [ebp - 0x8944], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8948], esp
lea eax, [ebp - 0x68]
push eax
call fcn.00407940
mov dword [ebp - 4], 0x1e
mov byte [ebp - 4], 0x1d
mov ecx, esi
call fcn.004219e0
add esp, 0x18
mov dword [ebp - 4], 0x1f
mov byte [ebp - 4], 0x1d
call fcn.0040f9f0
add esp, 0x18
test eax, eax
mov byte [ebp - 0x8939], 0
jne 0x41011e
mov byte [ebp - 0x8939], 1
mov dword [ebp - 4], 0x1b
mov eax, dword [ebp - 0x8940]
test al, 1
je 0x410140
and eax, 0xfffffffe
mov dword [ebp - 0x8940], eax
lea ecx, [ebp - 0x38]
call fcn.004078a0
cmp byte [ebp - 0x8939], 0
je 0x410394
lea ecx, [ebp - 0x38]
call fcn.00427020
mov byte [ebp - 4], 0x20
push eax
lea ecx, [ebp - 0x68]
call fcn.004078b0
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x38]
call fcn.004078a0
push str.To_be_filled_by_O.E.M.
lea ecx, [ebp - 0x68]
call fcn.00411ce0
test eax, eax
je 0x41022f
lea ecx, [ebp - 0x68]
call fcn.00407880
test eax, eax
je 0x41022f
push 0x567b7c
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8944], esp
lea eax, [ebp - 0x68]
push eax
call fcn.00407940
mov byte [ebp - 4], 0x21
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x80]
call fcn.004219e0
add esp, 0x18
mov byte [ebp - 4], 0x22
mov ecx, dword [ebp - 0x8940]
or ecx, 2
mov dword [ebp - 0x8940], ecx
mov ecx, eax
call fcn.00411ce0
test eax, eax
je 0x41022f
sub esp, 0x18
mov dword [ebp - 0x8944], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8948], esp
lea eax, [ebp - 0x68]
push eax
call fcn.00407940
mov dword [ebp - 4], 0x23
mov byte [ebp - 4], 0x22
mov ecx, esi
call fcn.004219e0
add esp, 0x18
mov dword [ebp - 4], 0x24
mov byte [ebp - 4], 0x22
call fcn.0040f9f0
add esp, 0x18
test eax, eax
mov byte [ebp - 0x8939], 0
jne 0x410236
mov byte [ebp - 0x8939], 1
mov dword [ebp - 4], 0x1b
mov eax, dword [ebp - 0x8940]
test al, 2
je 0x410258
and eax, 0xfffffffd
mov dword [ebp - 0x8940], eax
lea ecx, [ebp - 0x80]
call fcn.004078a0
cmp byte [ebp - 0x8939], 0
je 0x410394
lea ecx, [ebp - 0x38]
call fcn.00427370
mov byte [ebp - 4], 0x25
push eax
lea ecx, [ebp - 0x68]
call fcn.004078b0
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x38]
call fcn.004078a0
push str.To_be_filled_by_O.E.M.
lea ecx, [ebp - 0x68]
call fcn.00411ce0
test eax, eax
je 0x410347
lea ecx, [ebp - 0x68]
call fcn.00407880
test eax, eax
je 0x410347
push 0x567b7c
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8944], esp
lea eax, [ebp - 0x68]
push eax
call fcn.00407940
mov byte [ebp - 4], 0x26
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x80]
call fcn.004219e0
add esp, 0x18
mov byte [ebp - 4], 0x27
mov ecx, dword [ebp - 0x8940]
or ecx, 4
mov dword [ebp - 0x8940], ecx
mov ecx, eax
call fcn.00411ce0
test eax, eax
je 0x410347
sub esp, 0x18
mov dword [ebp - 0x8944], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8948], esp
lea eax, [ebp - 0x68]
push eax
call fcn.00407940
mov dword [ebp - 4], 0x28
mov byte [ebp - 4], 0x27
mov ecx, esi
call fcn.004219e0
add esp, 0x18
mov dword [ebp - 4], 0x29
mov byte [ebp - 4], 0x27
call fcn.0040f9f0
add esp, 0x18
test eax, eax
mov byte [ebp - 0x8939], 0
jne 0x41034e
mov byte [ebp - 0x8939], 1
mov dword [ebp - 4], 0x1b
mov eax, dword [ebp - 0x8940]
test al, 4
je 0x410370
and eax, 0xfffffffb
mov dword [ebp - 0x8940], eax
lea ecx, [ebp - 0x80]
call fcn.004078a0
cmp byte [ebp - 0x8939], 0
je 0x410394
push 0x567a10
call fcn.00409c70
add esp, 4
push eax
push 0x567a10
lea ecx, [ebp - 0x68]
call fcn.00409010
lea ecx, [ebp - 0x68]
call fcn.00407880
test eax, eax
je 0x4103f4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8944], esp
lea eax, [ebp - 0x68]
push eax
call fcn.00407940
mov byte [ebp - 4], 0x2a
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x80]
call fcn.004276c0
add esp, 0x18
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x80]
call fcn.00407890
push eax
push 0x200
lea eax, [ebp - 0xd48]
push eax
call fcn.0051f2c4
add esp, 0xc
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x80]
call fcn.004078a0
lea ecx, [ebp - 0xd48]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410400
sub ecx, edx
sar ecx, 1
cmp ecx, 0x24
je 0x4104d6
push 0x567b78
lea ecx, [ebp - 0x38]
call fcn.00407c10
mov byte [ebp - 4], 0x2c
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411ad0
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x8964]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411b60
push esi
mov ecx, eax
call fcn.004198a0
mov byte [ebp - 0x8939], al
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x38]
call fcn.00407b50
cmp byte [ebp - 0x8939], 0
jne 0x4104d6
lea eax, [ebp - 0x80]
push eax
push ecx
push 0x567b78
lea ecx, [ebp - 0x50]
call fcn.0040ac00
add esp, 4
mov ecx, eax
call fcn.00413dd0
mov byte [ebp - 4], 0x2d
mov ecx, eax
call fcn.00407a60
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00420f40
mov byte [ebp - 4], 0x2e
mov ecx, eax
call fcn.00407890
push eax
push 0x104
lea eax, [ebp - 0xd48]
push eax
call fcn.0051f2c4
add esp, 0xc
mov byte [ebp - 4], 0x2d
lea ecx, [ebp - 0x38]
call fcn.004078a0
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x80]
call fcn.00407b50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.004078a0
push str.logsrc
lea ecx, [ebp - 0x38]
call fcn.00407c10
mov byte [ebp - 4], 0x2f
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411ad0
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x8964]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411b60
push esi
mov ecx, eax
call fcn.004198a0
mov byte [ebp - 0x8939], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00407b50
cmp byte [ebp - 0x8939], 0
jne 0x4105a0
lea eax, [ebp - 0x68]
push eax
push ecx
push str.logsrc
lea ecx, [ebp - 0x50]
call fcn.0040ac00
add esp, 4
mov ecx, eax
call fcn.00413dd0
mov byte [ebp - 4], 0x30
mov ecx, eax
call fcn.00407a60
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00420f40
mov byte [ebp - 4], 0x31
mov ecx, eax
call fcn.00407890
push eax
push 0x104
lea eax, [ebp - 0x528]
push eax
call fcn.0051f2c4
add esp, 0xc
mov byte [ebp - 4], 0x30
lea ecx, [ebp - 0x38]
call fcn.004078a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.00407b50
push 0x567bc8
lea ecx, [ebp - 0x38]
call fcn.00407c10
mov byte [ebp - 4], 0x32
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411ad0
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x8964]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411b60
push esi
mov ecx, eax
call fcn.004198a0
mov byte [ebp - 0x8939], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00407b50
cmp byte [ebp - 0x8939], 0
jne 0x41065e
lea eax, [ebp - 0x68]
push eax
push ecx
push 0x567bc8
lea ecx, [ebp - 0x50]
call fcn.0040ac00
add esp, 4
mov ecx, eax
call fcn.00413dd0
mov byte [ebp - 4], 0x33
mov ecx, eax
call fcn.00407a60
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00420f40
mov byte [ebp - 4], 0x34
mov ecx, eax
call fcn.00407890
push eax
push 0x104
lea eax, [ebp - 0x1368]
push eax
call fcn.0051f2c4
add esp, 0xc
mov byte [ebp - 4], 0x33
lea ecx, [ebp - 0x38]
call fcn.004078a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.00407b50
push 0x567bcc
lea ecx, [ebp - 0x38]
call fcn.00407c10
mov byte [ebp - 4], 0x35
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411ad0
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x8964]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411b60
push esi
mov ecx, eax
call fcn.004198a0
mov byte [ebp - 0x8939], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00407b50
cmp byte [ebp - 0x8939], 0
jne 0x41071c
lea eax, [ebp - 0x68]
push eax
push ecx
push 0x567bcc
lea ecx, [ebp - 0x50]
call fcn.0040ac00
add esp, 4
mov ecx, eax
call fcn.00413dd0
mov byte [ebp - 4], 0x36
mov ecx, eax
call fcn.00407a60
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00420f40
mov byte [ebp - 4], 0x37
mov ecx, eax
call fcn.00407890
push eax
push 0x104
lea eax, [ebp - 0x1160]
push eax
call fcn.0051f2c4
add esp, 0xc
mov byte [ebp - 4], 0x36
lea ecx, [ebp - 0x38]
call fcn.004078a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.00407b50
push str.update
lea ecx, [ebp - 0x38]
call fcn.00407c10
mov byte [ebp - 4], 0x38
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411ad0
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x8964]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411b60
push esi
mov ecx, eax
call fcn.004198a0
mov byte [ebp - 0x8939], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00407b50
cmp byte [ebp - 0x8939], 0
jne 0x4107da
lea eax, [ebp - 0x68]
push eax
push ecx
push str.update
lea ecx, [ebp - 0x50]
call fcn.0040ac00
add esp, 4
mov ecx, eax
call fcn.00413dd0
mov byte [ebp - 4], 0x39
mov ecx, eax
call fcn.00407a60
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00420f40
mov byte [ebp - 4], 0x3a
mov ecx, eax
call fcn.00407890
push eax
push 0x104
lea eax, [ebp - 0xf54]
push eax
call fcn.0051f2c4
add esp, 0xc
mov byte [ebp - 4], 0x39
lea ecx, [ebp - 0x38]
call fcn.004078a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.00407b50
push str.iocs
lea ecx, [ebp - 0x38]
call fcn.00407c10
mov byte [ebp - 4], 0x3b
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411ad0
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x8964]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411b60
push esi
mov ecx, eax
call fcn.004198a0
mov byte [ebp - 0x8939], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00407b50
cmp byte [ebp - 0x8939], 0
jne 0x410877
lea eax, [ebp - 0x38]
push eax
push ecx
push str.iocs
lea ecx, [ebp - 0x50]
call fcn.0040ac00
add esp, 4
mov ecx, eax
call fcn.00413dd0
mov byte [ebp - 4], 0x3c
mov ecx, eax
call fcn.00407a60
push eax
push 0x104
lea eax, [ebp - 0x938]
push eax
call fcn.0052400a
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00407b50
push str.version
lea ecx, [ebp - 0x38]
call fcn.00407c10
mov byte [ebp - 4], 0x3d
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411ad0
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x8964]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411b60
push esi
mov ecx, eax
call fcn.004198a0
mov byte [ebp - 0x8939], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00407b50
cmp byte [ebp - 0x8939], 0
jne 0x410935
lea eax, [ebp - 0x68]
push eax
push ecx
push str.version
lea ecx, [ebp - 0x50]
call fcn.0040ac00
add esp, 4
mov ecx, eax
call fcn.00413dd0
mov byte [ebp - 4], 0x3e
mov ecx, eax
call fcn.00407a60
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00420f40
mov byte [ebp - 4], 0x3f
mov ecx, eax
call fcn.00407890
push eax
push 0x104
lea eax, [ebp - 0xb40]
push eax
call fcn.0051f2c4
add esp, 0xc
mov byte [ebp - 4], 0x3e
lea ecx, [ebp - 0x38]
call fcn.004078a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.00407b50
push str.apiport
lea ecx, [ebp - 0x38]
call fcn.00407c10
mov byte [ebp - 4], 0x40
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411ad0
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x8964]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411b60
push esi
mov ecx, eax
call fcn.004198a0
mov byte [ebp - 0x8939], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00407b50
cmp byte [ebp - 0x8939], 0
jne 0x410a39
push str.apiport
lea ecx, [ebp - 0x50]
call fcn.0040ac00
mov dword [ebp - 0x8954], 0
mov ecx, eax
call fcn.00408f80
mov esi, eax
lea ecx, [ebp - 0x8954]
call fcn.00408f80
mov edi, eax
mov dl, byte [esi]
movzx ecx, dl
add ecx, 0xfffffffc
cmp ecx, 3
ja case.default.0x4109cc
jmp dword [ecx*4 + 0x410e18]
lea eax, [esi + 8]
xor ecx, ecx
cmp dl, 6
cmovne eax, ecx
mov eax, dword [eax]
jmp 0x410a2b
cmp dl, 5
je 0x4109fc
cmp dl, 6
je 0x4109fc
xor cl, cl
lea eax, [esi + 8]
xor edx, edx
test cl, cl
cmove eax, edx
mov eax, dword [eax]
jmp 0x410a2b
mov cl, 1
lea eax, [esi + 8]
xor edx, edx
test cl, cl
cmove eax, edx
mov eax, dword [eax]
jmp 0x410a2b
lea eax, [esi + 8]
xor ecx, ecx
cmp dl, 7
cmovne eax, ecx
cvttsd2si eax, qword [eax]
jmp 0x410a2b
lea eax, [esi + 8]
xor ecx, ecx
cmp dl, 4
cmovne eax, ecx
movzx eax, byte [eax]
mov dword [edi], eax
mov eax, dword [ebp - 0x8954]
mov dword [ebp - 0xf58], eax
push str.updport
lea ecx, [ebp - 0x38]
call fcn.00407c10
mov byte [ebp - 4], 0x42
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411ad0
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x8964]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411b60
push esi
mov ecx, eax
call fcn.004198a0
mov byte [ebp - 0x8939], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00407b50
cmp byte [ebp - 0x8939], 0
jne 0x410b3d
push str.updport
lea ecx, [ebp - 0x50]
call fcn.0040ac00
mov dword [ebp - 0x8950], 0
mov ecx, eax
call fcn.00408f80
mov esi, eax
lea ecx, [ebp - 0x8950]
call fcn.00408f80
mov edi, eax
mov dl, byte [esi]
movzx ecx, dl
add ecx, 0xfffffffc
cmp ecx, 3
ja case.default.0x410ad0
jmp dword [ecx*4 + 0x410e28]
lea eax, [esi + 8]
xor ecx, ecx
cmp dl, 6
cmovne eax, ecx
mov eax, dword [eax]
jmp 0x410b2f
cmp dl, 5
je 0x410b00
cmp dl, 6
je 0x410b00
xor cl, cl
lea eax, [esi + 8]
xor edx, edx
test cl, cl
cmove eax, edx
mov eax, dword [eax]
jmp 0x410b2f
mov cl, 1
lea eax, [esi + 8]
xor edx, edx
test cl, cl
cmove eax, edx
mov eax, dword [eax]
jmp 0x410b2f
lea eax, [esi + 8]
xor ecx, ecx
cmp dl, 7
cmovne eax, ecx
cvttsd2si eax, qword [eax]
jmp 0x410b2f
lea eax, [esi + 8]
xor ecx, ecx
cmp dl, 4
cmovne eax, ecx
movzx eax, byte [eax]
mov dword [edi], eax
mov eax, dword [ebp - 0x8950]
mov dword [ebp - 0xd4c], eax
push str.mail
lea ecx, [ebp - 0x38]
call fcn.00407c10
mov byte [ebp - 4], 0x44
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411ad0
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x8964]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411b60
push esi
mov ecx, eax
call fcn.004198a0
mov byte [ebp - 0x8939], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00407b50
cmp byte [ebp - 0x8939], 0
jne 0x410bda
lea eax, [ebp - 0x38]
push eax
push ecx
push str.mail
lea ecx, [ebp - 0x50]
call fcn.0040ac00
add esp, 4
mov ecx, eax
call fcn.00413dd0
mov byte [ebp - 4], 0x45
mov ecx, eax
call fcn.00407a60
push eax
push 0x104
lea eax, [ebp - 0x62c]
push eax
call fcn.0052400a
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00407b50
push str.license
lea ecx, [ebp - 0x38]
call fcn.00407c10
mov byte [ebp - 4], 0x46
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411ad0
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x8964]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411b60
push esi
mov ecx, eax
call fcn.004198a0
mov byte [ebp - 0x8939], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00407b50
cmp byte [ebp - 0x8939], 0
jne 0x410c77
lea eax, [ebp - 0x38]
push eax
push ecx
push str.license
lea ecx, [ebp - 0x50]
call fcn.0040ac00
add esp, 4
mov ecx, eax
call fcn.00413dd0
mov byte [ebp - 4], 0x47
mov ecx, eax
call fcn.00407a60
push eax
push 0x104
lea eax, [ebp - 0x62c]
push eax
call fcn.0052400a
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00407b50
push 0x1250
lea eax, [ebp - 0x1368]
push eax
lea eax, [ebp - 0x9bf0]
push eax
call fcn.00516430
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00407760
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.00407b50
lea eax, [ebp - 0x9bf0]
jmp 0x410d4f
push 0x1250
lea eax, [ebp - 0x111c0]
push eax
call fcn.00410e40
add esp, 4
push eax
lea eax, [ebp - 0x9bf0]
push eax
call fcn.00516430
add esp, 0xc
lea eax, [ebp - 0x9bf0]
jmp 0x410d4f
push 0x1250
push eax
mov esi, dword [ebx + 8]
push esi
call fcn.00516430
mov eax, esi
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004c61ad
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, esi
call fcn.00408ef0
mov dword [ebp - 0x8948], eax
lea eax, [ebp - 0x8948]
push eax
mov edx, str.type_must_be_number__but_is
lea ecx, [ebp - 0x38]
call fcn.0040aef0
mov byte [ebp - 4], 0x41
push eax
mov edx, 0x12e
lea ecx, [ebp - 0x8980]
call fcn.00414300
add esp, 8
push 0x576b64
lea eax, [ebp - 0x8980]
push eax
call fcn.005163b7
mov ecx, esi
call fcn.00408ef0
mov dword [ebp - 0x8944], eax
lea eax, [ebp - 0x8944]
push eax
mov edx, str.type_must_be_number__but_is
lea ecx, [ebp - 0x38]
call fcn.0040aef0
mov byte [ebp - 4], 0x43
push eax
mov edx, 0x12e
lea ecx, [ebp - 0x899c]
call fcn.00414300
add esp, 8
push 0x576b64
lea eax, [ebp - 0x899c]
push eax
call fcn.005163b7
nop dword [eax]
sbb eax, 0xe200410a
or dword [ecx], eax
ror dword [ecx], cl
inc ecx
add byte [edx + ecx], cl
inc ecx
add byte [ecx], ah
or eax, dword [ecx]
out 0xa, al
inc ecx
add bh, dl
or al, byte [ecx]
adc byte [ebx], cl
inc ecx
add ah, cl
int3