Function at 0x489500
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b0262
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, dword [esp + 0x88]
mov edi, ecx
cmp dword [edi + esi*4 + 0xc], 0xffffffff
jne 0x489549
xor eax, eax
jmp 0x4896fb
push 0x23
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x20], 1
call fcn.00488a00
xor ebp, ebp
mov ebx, 0x10
cmp dword [eax + 0x18], ebx
mov dword [esp + 0x80], ebp
jb 0x489575
mov eax, dword [eax + 4]
jmp 0x489578
add eax, 4
lea ecx, [esi + 0x41]
push ecx
push eax
lea edx, [esp + 0x60]
push str._sKingsoftksearch_cSearchLoc.db
push edx
call fcn.0044a0b0
add esp, 0x10
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [esp + 0x70], ebx
mov eax, dword [esp + 0x5c]
jae 0x4895af
lea eax, [esp + 0x5c]
push ebp
push 0x80
push 2
push ebp
push ebp
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4895d5
mov dword [esp + 0x18], ebp
jmp 0x4896ce
lea eax, [edi + 0x864]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
lea ecx, [esi + esi*8]
lea ebp, [edi + ecx*4]
lea ecx, [ebp + 0xdc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
call fcn.004877b0
mov edx, dword [ebp + 0xe4]
mov ecx, dword [edi + esi*8 + 0x794]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov dword [esp + 0x28], edx
mov edx, dword [edi + esi*8 + 0x6c0]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x28], eax
mov eax, dword [edi + esi*8 + 0x790]
mov dword [esp + 0x38], edx
push 0x1c
lea edx, [esp + 0x28]
mov dword [esp + 0x34], eax
mov eax, dword [edi + esi*8 + 0x6c4]
push edx
push ebx
mov dword [esp + 0x30], 0x2712
mov dword [esp + 0x48], eax
call ebp
test eax, eax
je 0x4896ca
cmp dword [esp + 0x14], 0x1c
jne 0x4896ca
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
test esi, esi
je 0x4896ca
mov eax, dword [esi]
push 0
lea edx, [esp + 0x18]
push edx
push 0x1d
push eax
push ebx
call ebp
test eax, eax
je 0x4896ca
cmp dword [esp + 0x14], 0x1d
jne 0x4896ca
mov eax, dword [esi]
mov edx, dword [eax + 5]
mov eax, dword [eax + 1]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
push ebx
call ebp
test eax, eax
je 0x4896ca
mov ecx, dword [esi]
mov edx, dword [ecx + 5]
cmp edx, dword [esp + 0x14]
jne 0x4896ca
mov esi, dword [esi + 4]
test esi, esi
jne 0x489686
test ebx, ebx
je 0x4896d5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 0x864
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x58]
mov dword [esp + 0x80], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0048e5b2
add esp, 0x70
ret 4