Function at 0x42c140
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x164
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x15c], eax
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x4f
lea esi, [esp + 0x178]
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x51728]
sub ecx, dword [ebx + 0x51724]
movsw word es:[edi], word [esi]
lea esi, [ebx + 0x51718]
mov eax, 0x19c2d14f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
mov dword [esp + 0x18], ebx
je 0x42c2a2
xor ebp, ebp
nop
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x19c2d14f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x42c1c0
call fcn.0043f37f
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x28]
add eax, ebp
push edx
push eax
call fcn.0043ec25
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
add esp, 8
test eax, eax
mov eax, 0x19c2d14f
je 0x42c1fe
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebp, 0x13e
cmp edi, eax
jb 0x42c1a0
jmp 0x42c2a2
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x42c213
call fcn.0043f37f
mov edx, dword [esi + 0xc]
mov al, byte [esp + 0x154]
mov ebx, edi
imul ebx, ebx, 0x13e
cmp byte [edx + ebx + 0x12c], al
je 0x42c500
cmp al, 5
je 0x42c4af
lea eax, [esp + 0x28]
push eax
push str.erase_black_domain__ws_n
call fcn.00404c20
mov edi, dword [esi + 0xc]
add esp, 8
cmp edi, dword [esi + 0x10]
jbe 0x42c259
call fcn.0043f37f
mov ebp, dword [esi]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edi
test ebp, ebp
jne 0x42c27e
call fcn.0043f37f
xor eax, eax
add edi, ebx
cmp edi, dword [eax + 0x10]
ja 0x42c28a
test ebp, ebp
je 0x42c283
mov ebp, dword [ebp]
jmp 0x42c285
mov eax, dword [ebp]
jmp 0x42c26e
xor ebp, ebp
cmp edi, dword [ebp + 0xc]
jae 0x42c28f
call fcn.0043f37f
mov ecx, dword [esp + 0x1c]
push edi
push ecx
lea edi, [esp + 0x24]
call fcn.0042d580
mov ebx, dword [esp + 0x18]
cmp byte [esp + 0x154], 5
jne 0x42c2d3
lea edx, [esp + 0x28]
push edx
push str.Add_black_domain__ws_n
call fcn.00404c20
add esp, 8
lea eax, [esp + 0x28]
mov edi, esi
mov dword [ebx + 0x51748], 1
call fcn.0042d4e0
mov ecx, dword [ebx + 0x51710]
sub ecx, dword [ebx + 0x5170c]
add ebx, 0x51700
mov eax, 0x19c2d14f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
xor ebp, ebp
add eax, edx
je 0x42c44a
xor esi, esi
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, 0x19c2d14f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebp, ecx
jb 0x42c320
call fcn.0043f37f
mov eax, dword [ebx + 0xc]
lea edx, [esp + 0x28]
add eax, esi
push edx
push eax
call fcn.0043ec25
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
add esp, 8
test eax, eax
mov eax, 0x19c2d14f
je 0x42c35e
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc ebp
add eax, edx
add esi, 0x13e
cmp ebp, eax
jb 0x42c300
jmp 0x42c44a
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebp, ecx
jb 0x42c373
call fcn.0043f37f
mov edx, dword [ebx + 0xc]
mov al, byte [esp + 0x154]
mov esi, ebp
imul esi, esi, 0x13e
cmp byte [edx + esi + 0x12c], al
je 0x42c500
cmp al, 5
je 0x42c4af
lea eax, [esp + 0x28]
push eax
push str.erase_black_domain__ws_n
call fcn.00404c20
mov eax, dword [ebx + 0xc]
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, dword [ebx + 0x10]
jbe 0x42c3bd
call fcn.0043f37f
mov edi, dword [ebx]
test edi, edi
jne 0x42c3e1
call fcn.0043f37f
xor eax, eax
mov ecx, dword [esp + 0x14]
add esi, ecx
mov dword [esp + 0x1c], esi
cmp esi, dword [eax + 0x10]
ja 0x42c3ec
test edi, edi
je 0x42c3e5
mov edi, dword [edi]
jmp 0x42c3e7
mov eax, dword [edi]
jmp 0x42c3ca
xor edi, edi
cmp esi, dword [edi + 0xc]
jae 0x42c3f1
call fcn.0043f37f
mov ecx, dword [ebx + 0x10]
lea eax, [esi + 0x13e]
mov dword [esp + 0x14], ecx
cmp eax, ecx
je 0x42c432
lea edx, [eax - 0x13e]
jmp 0x42c410
mov esi, eax
mov edi, edx
mov ecx, 0x4f
rep movsd dword es:[edi], dword [esi]
add eax, 0x13e
add edx, 0x13e
movsw word es:[edi], word [esi]
cmp eax, dword [esp + 0x14]
jne 0x42c410
mov esi, dword [esp + 0x1c]
add dword [ebx + 0x10], 0xfffffec2
mov eax, dword [ebx + 0x10]
cmp dword [ebx + 0xc], esi
ja 0x42c445
cmp esi, eax
jbe 0x42c44a
call fcn.0043f37f
cmp byte [esp + 0x154], 5
jne 0x42c47f
lea edx, [esp + 0x28]
push edx
push str.Add_black_domain__ws_n
call fcn.00404c20
mov eax, dword [esp + 0x20]
mov dword [eax + 0x51748], 1
add esp, 8
lea eax, [esp + 0x28]
mov edi, ebx
call fcn.0042d4e0
mov ecx, dword [esp + 0x18]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
add ecx, 0x1518
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42c4b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x42c505
imul ebp, ebp, 0x13e
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x28]
push edx
push 0x13e
lea eax, [esp + 0x34]
push eax
push esi
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x24], 0x13e
push esi
je 0x42c4fa
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x42c505
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043e4c7
add esp, 0x164
ret 0x140