Function at 0x468600
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x218
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esi + 0x44]
push edi
push eax
mov ebx, edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, 1
cmp ebx, 0xffffffff
je 0x468788
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea ecx, [esp + 0x20]
push ecx
push ebx
mov byte [esp + 0x28], 0xff
mov byte [esp + 0x29], 0xfe
call edi
cmp dword [esp + 0x10], 2
je 0x468662
xor ebp, ebp
push str._THEME
lea edx, [esp + 0x20]
call fcn.0040a1c0
lea eax, [esp + 0x20]
add esp, 4
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468680
sub eax, edx
push 0
sar eax, 1
lea edx, [esp + 0x14]
push edx
add eax, eax
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
call edi
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x4686b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4686b0
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
cmp edx, dword [esp + 0x10]
je 0x4686ca
xor ebp, ebp
push 0x30001
push 0x4cd3d0
lea edx, [esp + 0x24]
call fcn.0040a1c0
lea eax, [esp + 0x24]
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4686e7
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
call edi
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468710
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
cmp ecx, dword [esp + 0x10]
je 0x46872a
xor ebp, ebp
push 0x4cbba0
lea edx, [esp + 0x20]
call fcn.0040a1c0
lea eax, [esp + 0x20]
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468742
sub eax, edx
push 0
sar eax, 1
lea edx, [esp + 0x14]
push edx
add eax, eax
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
call edi
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468770
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
cmp edx, dword [esp + 0x10]
je 0x46878a
xor ebp, ebp
mov esi, dword [esi + 0x2c]
test esi, esi
je 0x4687b4
test ebp, ebp
je 0x46881a
mov eax, esi
mov eax, dword [eax + 8]
mov esi, dword [esi]
push eax
lea ecx, [esp + 0x14]
call fcn.00469420
test eax, eax
jne 0x4687b0
xor ebp, ebp
test esi, esi
jne 0x468791
test ebp, ebp
je 0x46881a
push str.__THEME__r_n
lea edx, [esp + 0x20]
call fcn.0040a1c0
lea eax, [esp + 0x20]
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4687d0
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
call edi
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468800
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
cmp ecx, dword [esp + 0x10]
je 0x46881a
xor ebp, ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0049dc2a
add esp, 0x218
ret