Function at 0x417f40
Capabilities:
Check if file exists
Print debug messages

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 0x5c82e1
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x180
mov eax, dword [0x6540c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x184], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x188], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x18c], eax
mov dword [ebp - 4], 0
lea eax, [ebx + 0x14]
cmp dword [ebx + 0x28], 7
cmova eax, dword [ebx + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418000
push 0x100
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00490360
add esp, 0xc
lea eax, [ebp - 0x118]
push str.client_bin_file_not_exist_n
push 0xff
push eax
call fcn.00422380
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 0x149], 0
jmp 0x418708
and dword [ebp - 0x178], 0xfffffe00
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0
push 1
lea edx, [ebp - 0x180]
mov byte [ebp - 4], 2
lea ecx, [ebx + 0x14]
call fcn.00424530
add esp, 4
test al, al
jne 0x418063
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00490360
add esp, 0xc
push str.client_bin_file_open_failed_n
jmp 0x41863f
cmp byte [ebp - 0x178], 7
je 0x41808c
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00490360
add esp, 0xc
push str.json_file_is_error_obj_n
jmp 0x41863f
mov eax, dword [ebp - 0x180]
cmp dword [eax + 4], 0
je 0x418624
and dword [ebp - 0x160], 0xfffffe00
xor edi, edi
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x154], edi
push 0x647673
push str.Install
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 7
call fcn.0042d1b0
test eax, eax
je 0x418175
push 0x647673
push str.Install
lea ecx, [ebp - 0x180]
call fcn.0042cfb0
cmp byte [eax + 8], 0
je 0x418175
push 0x647673
push str.Install
lea ecx, [ebp - 0x180]
call fcn.0042cfb0
mov ecx, eax
call fcn.0042cc30
test al, al
jne 0x418175
push 0x647673
push str.Install
lea ecx, [ebp - 0x180]
call fcn.0042cfb0
cmp byte [eax + 8], 7
jne 0x418175
push 0x647673
push str.Install
lea ecx, [ebp - 0x180]
call fcn.0042cfb0
push eax
lea ecx, [ebp - 0x148]
call fcn.0042c040
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x168]
call fcn.0042c330
lea ecx, [ebp - 0x148]
call fcn.0042c260
mov edi, dword [ebp - 0x15c]
cmp byte [ebp - 0x160], 7
mov esi, dword [ebp - 0x168]
je 0x4181a4
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00490360
add esp, 0xc
push str.json_file_is_error_obj_n
jmp 0x41857e
cmp dword [esi + 4], 0
je 0x418563
xorps xmm0, xmm0
mov dword [ebp - 0x120], 0
movups xmmword [ebp - 0x130], xmm0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
push 0x6475dd
or edi, 0xffffffff
mov byte [ebp - 4], 0xc
push str.ChannelNumber
lea ecx, [ebp - 0x168]
or esi, edi
call fcn.0042d1b0
test eax, eax
je 0x418344
push 0x6475dd
push str.ChannelNumber
lea ecx, [ebp - 0x168]
call fcn.0042cfb0
cmp byte [eax + 8], 0
je 0x418344
push 0x6475dd
push str.ChannelNumber
lea ecx, [ebp - 0x168]
call fcn.0042cfb0
mov ecx, eax
call fcn.0042cc30
test al, al
jne 0x418344
push 0x6475dd
push str.ChannelNumber
lea ecx, [ebp - 0x168]
call fcn.0042cfb0
cmp byte [eax + 8], 4
jne 0x418344
push 0x6475dd
push str.ChannelNumber
lea ecx, [ebp - 0x168]
call fcn.0042cfb0
lea ecx, [ebp - 0x148]
push ecx
mov ecx, eax
call fcn.0042c3b0
mov esi, eax
lea eax, [ebp - 0x130]
cmp eax, esi
je 0x418307
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0xf
jbe 0x4182c4
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4182ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418764
push ecx
push edx
call fcn.00439938
add esp, 8
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x130], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x120], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 0x134]
cmp ecx, 0xf
jbe 0x418341
mov edx, dword [ebp - 0x148]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x418337
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418764
push ecx
push edx
call fcn.00439938
add esp, 8
or esi, 0xffffffff
cmp byte [ebp - 0x160], 7
jne 0x418482
push 0x6475e4
push str.Type
lea ecx, [ebp - 0x168]
call fcn.0042d1b0
test eax, eax
je 0x4183e3
push 0x6475e4
push str.Type
lea ecx, [ebp - 0x168]
call fcn.0042cfb0
cmp byte [eax + 8], 0
je 0x4183e3
push 0x6475e4
push str.Type
lea ecx, [ebp - 0x168]
call fcn.0042cfb0
mov ecx, eax
call fcn.0042cc30
test al, al
jne 0x4183e3
push 0x6475e4
push str.Type
lea ecx, [ebp - 0x168]
call fcn.0042cfb0
mov ecx, eax
call fcn.0042d520
test al, al
je 0x4183e3
push 0x6475e4
push str.Type
lea ecx, [ebp - 0x168]
call fcn.0042cfb0
mov ecx, eax
call fcn.0042c560
mov edi, eax
cmp byte [ebp - 0x160], 7
jne 0x418482
push 0x6475f5
push str.AdditionField
lea ecx, [ebp - 0x168]
call fcn.0042d1b0
test eax, eax
je 0x418482
push 0x6475f5
push str.AdditionField
lea ecx, [ebp - 0x168]
call fcn.0042cfb0
cmp byte [eax + 8], 0
je 0x418482
push 0x6475f5
push str.AdditionField
lea ecx, [ebp - 0x168]
call fcn.0042cfb0
mov ecx, eax
call fcn.0042cc30
test al, al
jne 0x418482
push 0x6475f5
push str.AdditionField
lea ecx, [ebp - 0x168]
call fcn.0042cfb0
mov ecx, eax
call fcn.0042d520
test al, al
je 0x418482
push 0x6475f5
push str.AdditionField
lea ecx, [ebp - 0x168]
call fcn.0042cfb0
mov ecx, eax
call fcn.0042c560
mov esi, eax
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x130]
lea ecx, [ebp - 0x148]
mov dword [eax], edi
mov eax, dword [ebp - 0x188]
mov dword [eax], esi
call fcn.0040aa30
mov ecx, dword [ebp - 0x18c]
lea eax, [ebp - 0x148]
push eax
call fcn.00403e50
mov ecx, dword [ebp - 0x134]
cmp ecx, 7
jbe 0x4184f5
mov edx, dword [ebp - 0x148]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4184eb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418769
push ecx
push edx
call fcn.00439938
add esp, 8
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x11c]
mov byte [ebp - 0x149], 1
cmp ecx, 0xf
jbe 0x41853a
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x418530
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41876e
push ecx
push edx
call fcn.00439938
add esp, 8
mov edi, dword [ebp - 0x15c]
mov esi, dword [ebp - 0x168]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
jmp 0x4185a6
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00490360
add esp, 0xc
push str.field_is_null_n
lea eax, [ebp - 0x118]
push 0xff
push eax
call fcn.00422380
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 0x149], 0
mov eax, dword [ebp - 0x160]
movsx ecx, al
sub ecx, 4
je 0x4185e5
sub ecx, 2
je 0x4185be
sub ecx, 1
jne 0x4185f5
test esi, esi
je 0x4185f5
mov eax, dword [esi]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.004328a0
push 0x30
push dword [esi]
call fcn.00439938
push 8
push esi
call fcn.00439938
add esp, 0x10
jmp 0x4185f5
test eax, 0x100
je 0x4185f5
push esi
call fcn.00499f16
add esp, 4
test edi, edi
je 0x418667
push 0x42bd40
mov byte [ebp - 4], 0xd
lea esi, [edi - 4]
push dword [esi]
push 4
push edi
call fcn.0043a106
mov eax, dword [esi]
lea eax, [eax*4 + 4]
push eax
push esi
call fcn.0043a018
add esp, 8
jmp 0x418667
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00490360
add esp, 0xc
push str.json_file_is_null_n
lea eax, [ebp - 0x118]
push 0xff
push eax
call fcn.00422380
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 0x149], 0
mov byte [ebp - 4], 0
movsx eax, byte [ebp - 0x178]
sub eax, 4
je 0x4186ae
sub eax, 2
je 0x418681
sub eax, 1
jne 0x4186c8
mov esi, dword [ebp - 0x180]
test esi, esi
je 0x4186c8
mov eax, dword [esi]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.004328a0
push 0x30
push dword [esi]
call fcn.00439938
push 8
push esi
call fcn.00439938
add esp, 0x10
jmp 0x4186c8
test dword [ebp - 0x178], 0x100
je 0x4186c8
push dword [ebp - 0x180]
call fcn.00499f16
add esp, 4
mov esi, dword [ebp - 0x174]
test esi, esi
je 0x4186fd
push 0x42bd40
mov byte [ebp - 4], 0xe
push dword [esi - 4]
push 4
push esi
call fcn.0043a106
mov eax, dword [esi - 4]
lea ecx, [esi - 4]
lea eax, [eax*4 + 4]
push eax
push ecx
call fcn.0043a018
add esp, 8
xorps xmm0, xmm0
movlpd qword [ebp - 0x180], xmm0
mov ecx, dword [ebx + 0x28]
cmp ecx, 7
jbe 0x41873e
mov edx, dword [ebx + 0x14]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x418734
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41876e
push ecx
push edx
call fcn.00439938
add esp, 8
mov al, byte [ebp - 0x149]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004398fa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x24
call fcn.00494baa
call fcn.00494baa
call fcn.00494baa
int3