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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c64f1
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x4eb6b8]
xor eax, esp
mov dword [esp + 0x1c8], eax
push ebx
push esi
push edi
mov eax, dword [0x4eb6b8]
xor eax, esp
push eax
lea eax, [esp + 0x1e0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, edx
mov dword [esp + 0x20], 0
cmp dword [esi + 0x10], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], ecx
jne 0x41c9d6
xor al, al
jmp 0x41d113
push eax
call fcn.004209c0
push esi
lea ebx, [esp + 0x1a4]
call fcn.0046feb0
add esp, 4
mov dword [esp + 0x1e8], 0
cmp dword [eax + 0x10], 0
jne 0x41ca01
xor al, al
jmp 0x41ca16
cmp dword [eax + 0x14], 8
jb 0x41ca09
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
sete bl
mov dword [esp + 0x1e8], 0xffffffff
cmp dword [esp + 0x1b4], 8
jb 0x41ca40
mov edx, dword [esp + 0x1a0]
push edx
call fcn.0049ca60
add esp, 4
xor eax, eax
xor ecx, ecx
mov edi, 7
mov dword [esp + 0x1b4], edi
mov dword [esp + 0x1b0], eax
mov word [esp + 0x1a0], cx
test bl, bl
je 0x41cadd
push esi
lea ebx, [esp + 0x1a4]
mov byte [0x4f03a4], 1
call fcn.0046feb0
add esp, 4
mov dword [esp + 0x1e8], 1
mov ecx, eax
call fcn.00474520
mov edx, dword [esp + 0x18]
mov byte [edx + 0x14], al
mov dword [esp + 0x1e8], 0xffffffff
cmp dword [esp + 0x1b4], 8
jb 0x41cab8
mov eax, dword [esp + 0x1a0]
push eax
call fcn.0049ca60
add esp, 4
xor ecx, ecx
mov dword [esp + 0x1b4], 7
mov dword [esp + 0x1b0], 0
mov word [esp + 0x1a0], cx
jmp 0x41d10c
mov dword [esp + 0x1b0], eax
xor edx, edx
push eax
mov eax, 0x4cdc04
lea esi, [esp + 0x1a4]
mov dword [esp + 0x1b8], edi
mov word [esp + 0x1a4], dx
call fcn.00419690
mov dword [esp + 0x1e8], 2
lea eax, [esp + 0xd0]
push eax
mov edx, esi
lea ecx, [esp + 0x190]
call fcn.0047d310
or ebx, 0xffffffff
add esp, 4
mov dword [esp + 0x1e8], ebx
cmp dword [esp + 0x1b4], 8
jb 0x41cb4f
mov ecx, dword [esp + 0x1a0]
push ecx
call fcn.0049ca60
add esp, 4
mov eax, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x1b4], edi
mov dword [esp + 0x1b0], 0
mov word [esp + 0x1a0], dx
call fcn.004169f0
push eax
push 0
push 0
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
test edi, edi
je 0x41cbc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41cbc2
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.FXConfigImpl::read_Parse_Mutex_ALREADY_EXISTED
call esi
push 0xbb8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41cd2f
push str.FXConfigImpl::read_Parse_WaitForSingleObject_mutex_OK.
call esi
lea ecx, [esp + 0xdc]
push ecx
call fcn.0041f110
mov dword [esp + 0x1e8], 3
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x14], 0x10
jb 0x41cbe6
mov eax, dword [eax]
cmp dword [esp + 0x140], 0
jne 0x41cd54
push 0x40
push 1
push eax
call fcn.0049c8f3
add esp, 0xc
test eax, eax
je 0x41cd54
push 1
push eax
lea ecx, [esp + 0xf4]
call fcn.00416b20
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xf0]
push eax
call fcn.004204a0
mov byte [esp + 0x1e8], 4
push eax
call fcn.0041e1d0
add esp, 4
push eax
lea ecx, [esp + 0xf0]
call fcn.00416d10
mov byte [esp + 0x1e8], 3
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x41cca3
push 0
lea ecx, [esp + 0x14]
call fcn.0049b9d6
mov byte [esp + 0x1e8], 5
mov eax, dword [ebx + 4]
test eax, eax
je 0x41cc7b
cmp eax, 0xffffffff
jae 0x41cc7b
dec eax
mov dword [ebx + 4], eax
mov esi, dword [ebx + 4]
neg esi
sbb esi, esi
not esi
mov byte [esp + 0x1e8], 3
lea ecx, [esp + 0x10]
call fcn.0049b9fe
and esi, ebx
je 0x41cca3
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov edx, dword [esp + 0xdc]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x114]
lea ecx, [esp + ecx + 0xdc]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push 0
push eax
call fcn.004021a0
or ebx, 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x140], 0
jne 0x41cd85
mov dword [esp + 0x1e8], ebx
lea ecx, [esp + 0x144]
call fcn.0041f250
lea eax, [esp + 0x144]
mov dword [esp + 0x10], eax
mov dword [esp + method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x1e8], ebx
mov ecx, eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
push ecx
jmp 0x41d104
cmp eax, 0x102
jne 0x41cbc2
push str.FXConfigImpl::read_TIME_OUT.
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41d10c
mov ecx, dword [esp + 0xdc]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0xe8]
lea ecx, [esp + ecx + 0xdc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x41cd78
or eax, 4
push 0
push eax
call fcn.004021a0
jmp 0x41ccd0
lea edx, [esp + 0x84]
mov ebx, vtable.std::ios_base.0
mov dword [esp + 0x24], 0x4d9324
mov dword [esp + 0x34], 0x4cecb0
mov dword [esp + 0x10], edx
mov dword [esp + 0x84], ebx
mov byte [esp + 0x1e8], 7
mov edi, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x84], edi
mov byte [esp + 0x1e8], 8
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x28], 1
call fcn.0041fdd0
mov dword [esp + 0x1e8], 9
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x3c]
mov dword [esp + eax + 0x24], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + 0x10], ecx
call fcn.00419490
mov byte [esp + 0x1e8], 0xa
xor esi, esi
mov dword [esp + 0x3c], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov byte [esp + 0x1e8], 0xc
lea edx, [esp + 0xec]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0041e7b0
lea ecx, [esp + 0xec]
call fcn.00416a90
test eax, eax
jne 0x41ce74
mov ecx, dword [esp + 0xdc]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0xe8]
lea ecx, [esp + ecx + 0xdc]
or eax, 2
cmp dword [ecx + 0x38], esi
jne 0x41ce6d
or eax, 4
push esi
push eax
call fcn.004021a0
lea edx, [esp + 0x1bc]
push edx
lea ecx, [esp + 0x28]
call fcn.0041f460
mov byte [esp + 0x1e8], 0xd
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c0]
call fcn.00473590
add esp, 4
cmp dword [esp + 0x1cc], esi
jne 0x41cf69
mov ecx, dword [esp + 0x18]
mov byte [ecx + 0x14], 1
mov byte [esp + 0x1e8], 0xc
cmp dword [esp + 0x1d0], 0x10
jb 0x41ced8
mov edx, dword [esp + 0x1bc]
push edx
call fcn.0049ca60
add esp, 4
mov dword [esp + 0x1d0], 0xf
mov dword [esp + 0x1cc], esi
mov byte [esp + 0x1bc], 0
mov byte [esp + 0x1e8], 3
lea ecx, [esp + 0x84]
call fcn.0041f3c0
lea eax, [esp + 0x84]
mov dword [esp + 0x10], eax
mov dword [esp + 0x84], edi
mov byte [esp + 0x1e8], 3
mov ecx, eax
push ecx
mov dword [esp + 0x88], ebx
call fcn.0049c602
or esi, 0xffffffff
add esp, 4
mov dword [esp + 0x1e8], esi
lea ecx, [esp + 0x144]
call fcn.0041f250
lea edx, [esp + 0x144]
mov dword [esp + 0x10], edx
mov dword [esp + 0x144], edi
mov dword [esp + 0x1e8], esi
mov eax, edx
push eax
jmp 0x41d0fd
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x1bc]
mov edx, esi
call fcn.00420ad0
mov byte [esi + 0x14], al
mov byte [esp + 0x1e8], 0xc
cmp dword [esp + 0x1d0], 0x10
jb 0x41cfa0
mov ecx, dword [esp + 0x1bc]
push ecx
call fcn.0049ca60
add esp, 4
xor esi, esi
mov dword [esp + 0x1d0], 0xf
mov dword [esp + 0x1cc], esi
mov byte [esp + 0x1bc], 0
mov byte [esp + 0x1e8], 3
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x84]
mov dword [esp + 0x10], edx
mov dword [esp + ecx + 0x24], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov byte [esp + 0x1e8], 0x10
lea edx, [esp + 0x3c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x3c], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov byte [esp + 0x1e8], 0x12
test byte [esp + 0x7c], 1
je 0x41d014
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
push eax
call fcn.0049ca60
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword [ecx], esi
mov edx, dword [esp + 0x5c]
mov dword [edx], esi
mov eax, dword [esp + 0x6c]
mov dword [eax], esi
mov ecx, dword [esp + 0x50]
mov dword [ecx], esi
mov edx, dword [esp + 0x60]
mov dword [edx], esi
mov eax, dword [esp + 0x70]
mov dword [eax], esi
and dword [esp + 0x7c], 0xfffffffe
mov dword [esp + 0x78], esi
mov byte [esp + 0x1e8], 0x10
lea ecx, [esp + 0x3c]
call fcn.00412590
mov byte [esp + 0x1e8], 3
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov dword [esp + eax + 0x24], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov byte [esp + 0x1e8], 0x13
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x34], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov byte [esp + 0x1e8], 3
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x84]
mov dword [esp + ecx + 0x24], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [esp + 0x10], edx
mov dword [esp + 0x84], edi
mov byte [esp + 0x1e8], 3
mov eax, edx
push eax
mov dword [esp + 0x88], ebx
call fcn.0049c602
or esi, 0xffffffff
add esp, 4
mov dword [esp + 0x1e8], esi
lea ecx, [esp + 0x144]
call fcn.0041f250
lea ecx, [esp + 0x144]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x144], edi
mov dword [esp + 0x1e8], esi
mov edx, ecx
push edx
mov dword [esp + 0x148], ebx
call fcn.0049c602
add esp, 4
mov eax, dword [esp + 0x18]
mov al, byte [eax + 0x14]
mov ecx, dword [esp + 0x1e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret 4