Function at 0x411313
Capabilities:
Create directory
Create thread
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0xa1220
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x46233c], eax
cmp dword [0x46233c], 0
jne 0x411362
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._r_nCRITICAL_OFFLINE_BUF_FAILURE_X11._d
call fcn.00452380
add esp, 8
jmp 0x411909
mov edi, 0x5acd60
xor eax, eax
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov edi, 0x481800
xor eax, eax
mov ecx, 0x20
rep stosd dword es:[edi], eax
mov edi, 0x5f3340
xor eax, eax
mov ecx, 0x2ee
rep stosd dword es:[edi], eax
mov edi, 0x482500
xor eax, eax
mov ecx, 0x4d
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [0x482500], 0x89
mov byte [0x482501], 0x91
mov eax, dword [0x462304]
mov dword [0x482504], eax
mov edi, 0x9854e0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
lea edi, [0x48250c]
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x5dfaa0]
mov dword [0x482550], eax
mov eax, dword [0x46233c]
mov byte [eax], 0xff
mov eax, dword [0x46233c]
mov byte [eax + 1], 0xee
cmp dword [0x462198], 0
jne 0x411415
push 0
push 0x462198
call fcn.0042b8a3
add esp, 8
cmp dword [0x462198], 0
je 0x41145f
cmp dword [0x46219c], 0
je 0x41145f
push 1
lea eax, [ebp - 0x14]
push eax
push 0xa1220
mov eax, dword [0x46233c]
push eax
push pe_nt_image_headers32
push 0x482500
push 0xb4bbc0
call fcn.00437f8d
add esp, 0x1c
test eax, eax
jne 0x41145f
mov eax, dword [0x46233c]
cmp dword [eax], 0x77665544
je 0x4115e6
cmp dword [0x45e03c], 0
je 0x411492
mov eax, dword [0x46233c]
mov eax, dword [eax]
push eax
push str._r_nORX_9189___x_
call fcn.00452380
add esp, 8
mov edi, 0x481800
xor eax, eax
mov ecx, 0x20
rep stosd dword es:[edi], eax
mov edi, 0x5f3340
xor eax, eax
mov ecx, 0x2ee
rep stosd dword es:[edi], eax
mov edi, 0x482500
xor eax, eax
mov ecx, 0x4d
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [0x482500], 0x88
mov byte [0x482501], 0x91
mov eax, dword [0x462304]
mov dword [0x482504], eax
mov edi, 0x9854e0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
lea edi, [0x48250c]
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x5dfaa0]
mov dword [0x482550], eax
mov eax, dword [0x46233c]
mov byte [eax], 0xff
mov eax, dword [0x46233c]
mov byte [eax + 1], 0xee
cmp dword [0x462198], 0
jne 0x411537
push 0
push 0x462198
call fcn.0042b8a3
add esp, 8
cmp dword [0x462198], 0
je 0x411579
cmp dword [0x46219c], 0
je 0x411579
push 1
lea eax, [ebp - 0x14]
push eax
push 0xa1220
mov eax, dword [0x46233c]
push eax
push pe_nt_image_headers32
push 0x482500
push 0xb4bbc0
call fcn.00437f8d
add esp, 0x1c
mov eax, dword [0x46233c]
cmp dword [eax], 0x77665544
je 0x4115e1
cmp dword [0x45e03c], 0
je 0x4115ac
mov eax, dword [0x46233c]
mov eax, dword [eax]
push eax
push str._r_nORX_9188___x_
call fcn.00452380
add esp, 8
push 0
push 0xa1220
mov eax, dword [0x46233c]
push eax
call fcn.0042b739
add esp, 0xc
cmp dword [0x45e03c], 0
je 0x4115e1
mov eax, dword [0x462354]
push eax
push str._r_nV2___d_
call fcn.00452380
add esp, 8
jmp 0x4115f0
mov dword [0x462354], 1
cmp dword [0x45e03c], 0
je 0x41162f
mov eax, dword [0x462354]
push eax
mov eax, dword [0x46233c]
mov eax, dword [eax + 0xc4]
push eax
push 0xb4bbc0
mov eax, dword [0x462198]
push eax
mov eax, dword [0x46233c]
mov eax, dword [eax]
push eax
push str._r_nOFFLINE_CHECK_RESPONSE___X___ALT_08X__sendto__S__size__d__v2__d_
call fcn.00452380
add esp, 0x18
mov eax, dword [0x46233c]
cmp dword [eax], 0x77665544
jne 0x4118a7
push 1
push 0x462198
call fcn.0042b8a3
add esp, 8
mov eax, dword [0x46233c]
add eax, 0x64
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax]
test ecx, ecx
je 0x41188d
mov edi, 0x9a3940
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
mov edi, 0x704c40
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x704c40
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4116e1
dec dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x704c40]
cmp ecx, 0x5c
je 0x4116e1
mov edi, 0x704c40
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
mov ax, word [0x46d440]
mov word [edi - 1], ax
mov edx, 0x46d444
mov edi, 0x704c40
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov eax, dword [edx]
mov dword [edi], eax
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
mov al, byte [edx + 8]
mov byte [edi + 8], al
push 0
push 0x704c40
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x411771
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x411771
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x704c40
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x411771
cmp dword [0x45e03c], 0
je 0x411771
push 0x704c40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._r_nERROR__d_creating___s_
call fcn.00452380
add esp, 0xc
cmp dword [0x45e03c], 0
je 0x41179c
push 0x704c40
push 0x704c40
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
push str._r_nOFFLINE_LOG_PATH___X___s_
call fcn.00452380
add esp, 0xc
mov word [0x46231c], 1
mov eax, dword [ebp - 4]
movzx ax, byte [eax + 1]
mov word [0x462320], ax
mov eax, dword [ebp - 4]
movzx ax, byte [eax + 2]
mov word [0x462324], ax
mov eax, dword [ebp - 4]
movzx ax, byte [eax + 2]
mov word [0x462330], ax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax + 3]
mov dword [0x462154], ecx
mov eax, dword [ebp - 4]
movzx ax, byte [eax + 4]
mov word [0x46232c], ax
mov esi, dword [ebp - 4]
mov edi, 0x481800
add esi, 0x10
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
movzx ax, byte [0x481815]
mov word [0x462328], ax
mov esi, dword [ebp - 4]
mov edi, 0x5f3340
add esi, 0x64
mov ecx, 0x271
rep movsd dword es:[edi], dword [esi]
push 0
push 0x200
push 0x5acd60
call fcn.00431d2a
add esp, 0xc
cmp dword [0x462334], 0
je 0x411847
mov word [0x462324], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x60], 0
je 0x411873
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
add eax, 0x10
push eax
mov eax, dword [0x46233c]
push eax
call fcn.0042b739
add esp, 0xc
jmp 0x411888
push 1
push 0xa1220
mov eax, dword [0x46233c]
push eax
call fcn.0042b739
add esp, 0xc
jmp 0x4118a2
push 3
push 0xa1220
mov eax, dword [0x46233c]
push eax
call fcn.0042b739
add esp, 0xc
jmp 0x4118ae
mov dword [ebp - 8], 1
mov dword [0x462338], 1
cmp dword [ebp - 8], 0
jne 0x4118d2
xor eax, eax
mov ax, word [0x46231c]
test eax, eax
je 0x4118e9
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x40d5dd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x45e03c], 0
je 0x411909
mov eax, dword [0x462154]
push eax
push str._r_nNumber_for_TRAY___d_
call fcn.00452380
add esp, 8
pop edi
pop esi
pop ebx
leave
ret