Function at 0x421b10
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xf98
mov eax, dword [0x44d558]
mov dword [ebp - 0xc], eax
push esi
push edi
mov ecx, 9
mov esi, str.LoadOperationCache
lea edi, [ebp - 0xc78]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [0x44e960]
mov word [ebp - 0xe80], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xe7e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44e968]
mov word [ebp - 0xc18], cx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xc16]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [0x44e970]
mov word [ebp - 0xf80], dx
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0xf7e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x44e978]
mov word [ebp - 0x810], ax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x80e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0xc50], 0
mov dword [ebp - 0x814], 0
mov dword [ebp - 0xc20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc24], 0
mov dword [ebp - 0xc1c], 0
mov dword [ebp - 0xc4c], 0
mov dword [ebp - 0xc48], 0
mov dword [ebp - 8], 0
push 0x20
push 0
lea ecx, [ebp - 0xc44]
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
push 0x450878
lea edx, [ebp - 0xe80]
push edx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
push 0x4450dc
lea eax, [ebp - 0xe80]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
push 0
push 0x100080
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0xe80]
push ecx
call dword [sym.imp.SQLUNIRL.dll__CreateFile_28]
mov dword [ebp - 0xc4c], eax
cmp dword [ebp - 0xc4c], 0xffffffff
je 0x422171
push 0
lea edx, [ebp - 0xc50]
push edx
push 4
lea eax, [ebp - 0xc20]
push eax
mov ecx, dword [ebp - 0xc4c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc20], 0x6acfc0
jge 0x421ccb
mov edx, dword [ebp - 0xc20]
push edx
push 0xea
push 0
push 1
call fcn.0041d760
add esp, 0x10
mov eax, dword [ebp - 0xc4c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x422171
push 0
lea ecx, [ebp - 0xc50]
push ecx
push 4
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0xc4c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0xe80]
push ecx
call dword [sym.imp.MSVCR71.dll__wcslwr]
add esp, 4
push eax
mov edx, dword [ebp - 4]
push edx
push 0x71
push 0
push 2
call fcn.0041d760
add esp, 0x14
cmp dword [0x44de90], 0
je 0x421d20
push 0x44f060
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x421d61
push 0x44f060
call dword [0x44e628]
test eax, eax
jne 0x421d61
cmp dword [0x44de94], 0
je 0x421d56
cmp dword [0x450a88], 0
je 0x421d56
lea eax, [ebp - 0xc78]
push eax
push 0x4450f8
call dword [sym.imp.MSVCR71.dll_wprintf]
add esp, 8
push 0x44f060
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x44de94], 0
je 0x421d88
cmp dword [0x450a88], 0
je 0x421d88
lea ecx, [ebp - 0xc78]
push ecx
push 0x445134
call dword [sym.imp.MSVCR71.dll_wprintf]
add esp, 8
mov dword [ebp - 0x814], 0
jmp 0x421da3
mov edx, dword [ebp - 0x814]
add edx, 1
mov dword [ebp - 0x814], edx
mov eax, dword [ebp - 0x814]
cmp eax, dword [ebp - 4]
jge 0x421eb3
push 0
lea ecx, [ebp - 0xc50]
push ecx
push 0x14
lea edx, [ebp - 0xf94]
push edx
mov eax, dword [ebp - 0xc4c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421eae
cmp dword [ebp - 0xc50], 0x14
jne 0x421eae
push 0x684
lea ecx, [ebp - 0xc78]
push ecx
mov edx, dword [ebp - 0xf8c]
push edx
call fcn.00422830
add esp, 0xc
mov dword [ebp - 0xf88], eax
cmp dword [ebp - 0xf88], 0
je 0x421eae
push 0
lea eax, [ebp - 0xc50]
push eax
mov ecx, dword [ebp - 0xf8c]
push ecx
mov edx, dword [ebp - 0xf88]
push edx
mov eax, dword [ebp - 0xc4c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421eae
mov ecx, dword [ebp - 0xc50]
cmp ecx, dword [ebp - 0xf8c]
jne 0x421eae
lea edx, [ebp - 0xf94]
push edx
push 0x44f180
call dword [sym.imp.SQLSVC.dll_SHRecMemAdd]
add esp, 8
cmp dword [ebp - 0xf90], 0
jb 0x421e90
cmp dword [ebp - 0xf90], 7
jae 0x421e90
mov eax, dword [ebp - 0xf90]
mov ecx, dword [ebp + eax*4 - 0xc44]
add ecx, 1
mov edx, dword [ebp - 0xf90]
mov dword [ebp + edx*4 - 0xc44], ecx
jmp 0x421e9f
mov eax, dword [ebp - 0xc28]
add eax, 1
mov dword [ebp - 0xc28], eax
mov ecx, dword [ebp - 0xc24]
add ecx, 1
mov dword [ebp - 0xc24], ecx
jmp 0x421d94
push 0x44f060
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x44de94], 0
je 0x421ee5
cmp dword [0x450a88], 0
je 0x421ee5
lea edx, [ebp - 0xc78]
push edx
push 0x445168
call dword [sym.imp.MSVCR71.dll_wprintf]
add esp, 8
mov eax, dword [ebp - 0xc4c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x400
lea ecx, [ebp - 0x810]
push ecx
push 0x72
mov edx, dword [0x44e620]
push edx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
mov dword [ebp - 0xc48], 0
jmp 0x421f28
mov eax, dword [ebp - 0xc48]
add eax, 1
mov dword [ebp - 0xc48], eax
cmp dword [ebp - 0xc48], 8
jae 0x421faf
mov ecx, dword [ebp - 0xc48]
cmp dword [ebp + ecx*4 - 0xc44], 0
je 0x421faa
push 0x200
lea edx, [ebp - 0xc18]
push edx
mov eax, dword [ebp - 0xc48]
add eax, 0x28
push eax
mov ecx, dword [0x44e620]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
mov edx, dword [ebp - 0xc48]
mov eax, dword [ebp + edx*4 - 0xc44]
push eax
lea ecx, [ebp - 0xc18]
push ecx
push str._s___ld__
lea edx, [ebp - 0xf80]
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x4cc]
add esp, 0x10
lea ecx, [ebp - 0xf80]
push ecx
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
jmp 0x421f19
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
mov word [ebp + eax*2 - 0x814], 0
push 0
lea ecx, [ebp - 0x810]
push ecx
push 2
call fcn.0041d760
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x422171
lea edx, [ebp - 0xe80]
push edx
call dword [sym.imp.MSVCR71.dll__wcslwr]
add esp, 4
push eax
call fcn.004221b0
add esp, 4
mov eax, dword [ebp - 0xc24]
sub eax, dword [0x44f188]
mov dword [ebp - 0xc1c], eax
mov ecx, dword [0x44f188]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x422171
mov edx, dword [ebp - 4]
push edx
push 0x76
push 0
push 2
call fcn.0041d760
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
push pe_nt_image_headers32
push 0
push 2
call fcn.0041d760
add esp, 0x10
cmp dword [0x44de90], 0
je 0x422061
push 0x44f060
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x4220a2
push 0x44f060
call dword [0x44e628]
test eax, eax
jne 0x4220a2
cmp dword [0x44de94], 0
je 0x422097
cmp dword [0x450a88], 0
je 0x422097
lea ecx, [ebp - 0xc78]
push ecx
push 0x4451b4
call dword [sym.imp.MSVCR71.dll_wprintf]
add esp, 8
push 0x44f060
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x44de94], 0
je 0x4220c9
cmp dword [0x450a88], 0
je 0x4220c9
lea edx, [ebp - 0xc78]
push edx
push 0x4451f0
call dword [sym.imp.MSVCR71.dll_wprintf]
add esp, 8
mov dword [ebp - 0x814], 0
jmp 0x4220e4
mov eax, dword [ebp - 0x814]
add eax, 1
mov dword [ebp - 0x814], eax
mov ecx, dword [ebp - 0x814]
cmp ecx, dword [0x44f188]
jge 0x42213f
mov edx, dword [ebp - 0x814]
push edx
push 0x44f180
call dword [sym.imp.SQLSVC.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42213d
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
je 0x422128
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call fcn.00422e50
add esp, 4
mov eax, dword [ebp - 0x814]
push eax
push 0x44f180
call dword [sym.imp.SQLSVC.dll_SHRecMemDelete]
add esp, 8
jmp 0x4220d5
push 0x44f060
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x44de94], 0
je 0x422171
cmp dword [0x450a88], 0
je 0x422171
lea ecx, [ebp - 0xc78]
push ecx
push 0x445224
call dword [sym.imp.MSVCR71.dll_wprintf]
add esp, 8
cmp dword [ebp + 8], 0
je 0x422185
mov edx, dword [ebp - 0xc1c]
mov dword [ebp - 0xf98], edx
jmp 0x422191
mov eax, dword [ebp - 0xc24]
mov dword [ebp - 0xf98], eax
mov eax, dword [ebp - 0xf98]
mov ecx, dword [ebp - 0xc]
call fcn.00434de1
pop edi
pop esi
mov esp, ebp
pop ebp
ret