Function at 0x401a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55ece7
mov eax, dword fs:[0]
push eax
sub esp, 0x8d0
mov eax, dword [0x5b5be8]
xor eax, esp
mov dword [esp + 0x8c8], eax
push ebx
push esi
push edi
mov eax, dword [0x5b5be8]
xor eax, esp
push eax
lea eax, [esp + 0x8e0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, 1
mov edi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
test byte [0x5be900], bl
jne 0x401ade
or dword [0x5be900], ebx
push 0x58
mov dword [esp + 0x8ec], 0
call fcn.004310a7
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x8e8], bl
test eax, eax
je 0x401abf
push eax
call fcn.00423b70
jmp 0x401ac1
xor eax, eax
push 0x560d70
mov dword [0x5be8fc], eax
call fcn.00532226
add esp, 4
mov dword [esp + 0x8e8], 0xffffffff
mov ecx, dword [0x5be8fc]
test ecx, ecx
je 0x401b41
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov edi, ecx
call eax
mov dword [edi + 0x20], str.XEnv.cpp_:_XEnvStruct::GetInt
mov dword [edi + 0x24], 0x495
mov dword [esp + 0x14], edi
push ebx
mov dword [esp + 0x8ec], 2
mov ecx, dword [0x5be8fc]
push str.logging.able
call fcn.004242f0
mov dword [esp + 0x8e8], 0xffffffff
mov edx, dword [edi]
mov ebx, eax
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
test ebx, ebx
je 0x401ccd
mov edi, dword [esp + 0x1c]
push str.logging.level
call fcn.00424920
mov ebx, 3
mov ecx, eax
call fcn.004247d0
cmp eax, dword [ebp + 8]
jg 0x401ccd
xor ebx, ebx
push ebx
call fcn.00532a03
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], edx
push ecx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x2c], eax
call fcn.00532a54
push 0x7f
lea eax, [esp + 0x61]
push ebx
push eax
mov byte [esp + 0x68], bl
call fcn.00535390
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
add esp, 0x14
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x50]
push ecx
inc edx
push edx
add eax, 0x76c
push eax
push str._04d__02d__02d__02d:_02d:_02d
mov eax, 0x80
lea edx, [esp + 0x70]
call fcn.00422400
add esp, 0x1c
push 0x7ff
lea ecx, [esp + 0xd9]
push ebx
push ecx
mov byte [esp + 0xe0], bl
call fcn.00535390
add esp, 0xc
cmp esi, ebx
je 0x401c22
mov edx, dword [esp + 0x18]
push edx
push esi
lea eax, [esp + 0xdc]
push 0x7ff
push eax
call fcn.0054f9a3
add esp, 0x10
cmp eax, ebx
jl 0x401c19
cmp eax, 0x7ff
ja 0x401c19
jne 0x401c29
mov byte [esp + 0x8d3], bl
jmp 0x401c29
mov byte [esp + 0xd4], bl
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
lea ecx, [esp + 0xd8]
push eax
mov dword [esp + 0x20], ebx
push 0x58bdb4
mov eax, 0x800
mov ebx, ecx
mov dword [esp + 0x20], ecx
call fcn.00422220
cmp dword [edi + 4], 0xffffffff
jne 0x401c64
mov esi, edi
call fcn.00401940
test al, al
je 0x401ccd
lea eax, [esp + 0x54]
mov dword [esp + 0x20], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401c73
push 0
sub eax, edx
lea ecx, [esp + 0x24]
push ecx
push eax
mov eax, dword [edi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x60]
push edx
push eax
call edi
lea eax, [esp + 0xd4]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ca0
mov esi, dword [esp + 0x1c]
push 0
sub eax, edx
lea ecx, [esp + 0x24]
push ecx
push eax
mov eax, dword [esi + 4]
lea edx, [esp + 0xe0]
push edx
push eax
call edi
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [esp + 0x8e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8c8]
xor ecx, esp
call fcn.005320a3
mov esp, ebp
pop ebp
ret 0xc