Function at 0x410910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f837
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x5b7f60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
cmp dword [edi + 0x18], 8
lea ebx, [edi + 4]
mov dword [ebp - 0x108], eax
jb 0x410956
mov eax, dword [ebx]
jmp 0x410958
mov eax, ebx
push eax
push str.Attempting_to_load_configuration_file__s
push 0x200
call fcn.004060b0
add esp, 0xc
push 0x3c
call fcn.0043094c
xor esi, esi
add esp, 4
cmp eax, esi
je 0x410986
mov esi, eax
call fcn.00411410
xor esi, esi
jmp 0x410988
xor eax, eax
push eax
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x100], esi
call fcn.00413440
mov dword [ebp - 4], esi
cmp dword [ebx + 0x14], 8
jb 0x4109ad
mov eax, dword [ebx]
jmp 0x4109af
mov eax, ebx
push 1
lea ecx, [ebp - 0xf5]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.004136e0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x104]
push edx
lea ecx, [ebp - 0x48]
call fcn.00401060
movzx eax, al
lea ecx, [ebp - 0x48]
mov dword [ebp - 0xfc], eax
mov byte [ebp - 4], 0
call fcn.004026f0
cmp dword [ebp - 0xfc], esi
je 0x410a20
mov ecx, dword [ebp - 0x104]
neg edi
sbb edi, edi
push 0xffffffffffffffff
push esi
and edi, ebx
push edi
add ecx, 0xc
call fcn.004021c0
mov edi, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
push ecx
call fcn.00411ba0
jmp 0x410d36
push esi
push esi
lea edx, [ebp - 0xd4]
push edx
mov ecx, edi
call fcn.00411700
add eax, 4
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x410a3f
mov eax, dword [eax]
push eax
push str.Creating_directory__s
push 0x200
call fcn.004060b0
add esp, 0xc
lea ecx, [ebp - 0xd4]
call fcn.004026f0
mov dword [ebp - 0x48], 0x58dcc8
mov dword [ebp - 0x1c], 0x58ed8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov eax, edi
neg eax
sbb eax, eax
push 0xffffffffffffffff
mov byte [ebp - 4], 3
xor ecx, ecx
and eax, ebx
push esi
mov word [ebp - 0x44], cx
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], esi
call fcn.004021c0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov eax, dword [edx + 4]
lea eax, [ebp + eax - 0x1c]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 4], 4
mov ecx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00412a60
add esp, 4
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.004026f0
lea ecx, [ebp - 0x9c]
call fcn.0040feb0
cmp dword [ebx + 0x14], 8
jb 0x410af5
mov edx, dword [ebx]
mov dword [ebp - 0xfc], edx
jmp 0x410afb
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0x48], 0x58dcc8
mov dword [ebp - 0x1c], 0x58ed8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xfc]
cmp edx, esi
jne 0x410b25
mov edx, 0x58dc88
xor eax, eax
mov word [ebp - 0x44], ax
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], esi
mov dword [ebp - 0xfc], ecx
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x410b40
sub eax, dword [ebp - 0xfc]
lea ecx, [ebp - 0x44]
sar eax, 1
push eax
push edx
call fcn.00402040
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov eax, dword [edx + 4]
lea eax, [ebp + eax - 0x1c]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push esi
push 2
push 0x80
push 1
push 0x40000000
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 7
call fcn.0040ffd0
test eax, eax
lea ecx, [ebp - 0x48]
sete byte [ebp - 0xf5]
mov byte [ebp - 4], 5
call fcn.004026f0
cmp byte [ebp - 0xf5], 0
je 0x410cfa
push 1
lea edx, [ebp - 0xf5]
push edx
push str.__xml_version_1.0__encoding_UTF_8_____r_n_configuration__r_n__configuration_
lea ecx, [ebp - 0x48]
call fcn.004136e0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0xfc], eax
call fcn.00401c50
cmp dword [ebp - 0xfc], 0xffffffff
jne 0x410bfc
mov dword [ebp - 0xfc], 1
mov edx, dword [ebp - 0xfc]
push esi
lea ecx, [ebp - 0xfc]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410c42
push 1
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0xf4]
call fcn.0040f9e0
push 0x5ab0d8
lea edx, [ebp - 0xf4]
push edx
call fcn.00533fcd
lea ecx, [ebp - 0x9c]
call fcn.004102b0
cmp dword [ebx + 0x14], 8
jb 0x410c57
mov eax, dword [ebx]
jmp 0x410c59
mov eax, ebx
push 1
lea ecx, [ebp - 0xf5]
push ecx
push eax
lea ecx, [ebp - 0xd4]
call fcn.004136e0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x104]
push edx
lea ecx, [ebp - 0xd4]
call fcn.00401060
movzx eax, al
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0xfc], eax
mov byte [ebp - 4], 8
call fcn.004026f0
cmp dword [ebp - 0xfc], esi
je 0x410cd8
mov ecx, dword [ebp - 0x104]
neg edi
sbb edi, edi
push 0xffffffffffffffff
push esi
and edi, ebx
push edi
add ecx, 0xc
call fcn.004021c0
mov edi, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
push ecx
call fcn.00411ba0
lea ecx, [ebp - 0x48]
call fcn.004026f0
jmp 0x410d12
cmp dword [ebx + 0x14], 8
jb 0x410ce0
mov ebx, dword [ebx]
push ebx
push str.Cannot_work_with_configuration_file__s
push 8
call fcn.004060b0
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.004026f0
jmp 0x410d12
cmp dword [ebx + 0x14], 8
jb 0x410d02
mov ebx, dword [ebx]
push ebx
push str.Failed_to_create_configuration_file__s
push 8
call fcn.004060b0
add esp, 0xc
mov dword [ebp - 0x9c], vtable.is::file.0
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xa
call fcn.004102b0
lea ecx, [ebp - 0x90]
call fcn.004026f0
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x100]
cmp edi, esi
je 0x410d70
lea edx, [edi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x410d70
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x410d70
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005319a6
mov esp, ebp
pop ebp
ret