Function at 0x4a0780
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501791
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x550070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x20]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CWaitCursor::constructor_void_]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00403790
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
je 0x4a07d7
cmp dword [ebp + 8], 2
jne 0x4a0812
push 0
mov ecx, dword [ebp - 0x10]
call fcn.0043e040
mov eax, dword [eax + 4]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0049f020
test eax, eax
jne 0x4a0812
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004036f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CWaitCursor::destructor_void_]
jmp 0x4a0a62
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
je 0x4a0837
cmp dword [ebp - 0x1c], 1
je 0x4a08d0
cmp dword [ebp - 0x1c], 2
je 0x4a094c
jmp 0x4a0a46
push 0
push str.msg_reset_config.xml
mov ecx, dword [ebp - 0x10]
call fcn.0043e040
mov edx, dword [eax + 4]
push edx
call fcn.0044c6c0
add esp, 0xc
cmp eax, 1
je 0x4a0878
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004036f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CWaitCursor::destructor_void_]
jmp 0x4a0a62
mov ecx, dword [ebp - 0x10]
call fcn.004a0a80
push 1
mov ecx, dword [ebp - 0x10]
call fcn.0049ed20
push 1
mov ecx, dword [ebp - 0x10]
call fcn.0049f290
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
call fcn.0041a390
mov ecx, eax
call fcn.00492510
mov ecx, dword [ebp - 0x10]
call fcn.0043e040
mov eax, dword [eax + 4]
push eax
call fcn.004a0760
add esp, 4
mov ecx, dword [ebp - 0x10]
call fcn.0049f6e0
mov ecx, dword [ebp - 0x10]
call fcn.0049f720
jmp 0x4a0a46
push 0
push 8
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, 0x55add0
call fcn.004a0370
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
call fcn.00410ec0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004036f0
lea ecx, [ebp - 0x14]
call fcn.004037d0
movzx ecx, al
test ecx, ecx
jne 0x4a0947
lea ecx, [ebp - 0x14]
call fcn.004038a0
push eax
call fcn.004e620a
add esp, 4
mov dword [ebp - 0x18], eax
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
push 0x4a1270
push 0
push 0
call fcn.004dd348
add esp, 0x18
jmp 0x4a0a46
push 0
push 8
push 1
push 0
lea eax, [ebp - 0x38]
push eax
mov ecx, 0x55add0
call fcn.004a0370
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x34]
push edx
lea ecx, [ebp - 0x14]
call fcn.00410ec0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.004036f0
mov ecx, 0x55add0
call fcn.0049f650
test eax, eax
je 0x4a09c6
lea ecx, [ebp - 0x14]
call fcn.004037d0
movzx eax, al
test eax, eax
jne 0x4a09c6
push 0
push str.msg_import_failed_scanning.xml
mov ecx, 0x55add0
call fcn.0043e040
mov ecx, dword [eax + 4]
push ecx
call fcn.0044c6c0
add esp, 0xc
jmp 0x4a0a46
lea ecx, [ebp - 0x14]
call fcn.004037d0
movzx edx, al
test edx, edx
jne 0x4a0a46
lea ecx, [ebp - 0x14]
call fcn.004038a0
push eax
call fcn.004e620a
add esp, 4
mov dword [ebp - 0x18], eax
push str.dlg_config_import.xml
push 0
mov eax, dword [ebp - 0x18]
push eax
push 0x4a1160
mov ecx, dword [ebp - 0x10]
call fcn.0043e040
mov ecx, dword [eax + 4]
push ecx
call fcn.0048e420
add esp, 0x14
cmp eax, 1
jne 0x4a0a46
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
call fcn.0041a390
mov ecx, eax
call fcn.00492510
mov ecx, dword [ebp - 0x10]
call fcn.0043e040
mov edx, dword [eax + 4]
push edx
call fcn.004a0760
add esp, 4
mov ecx, dword [ebp - 0x10]
call fcn.0049f760
call fcn.004b2d30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004036f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CWaitCursor::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4