Function at 0x22438c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x60
push ebp
push esi
mov esi, dword [esp + 0x6c]
lea eax, [esp + 0x14]
push eax
push esi
call sym.edb500x.dll_WidestTableColumn
mov ecx, dword [esp + 0x14]
inc ecx
push ecx
push 2
call fcn.0226b127
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x22438f5
pop esi
mov eax, 0x446
pop ebp
add esp, 0x60
ret
push ebx
mov ebx, dword [esp + 0x7c]
push edi
push ebx
push esi
call sym.edb500x.dll_CreateUpdateBlk
mov edx, dword [esp + 0x78]
mov edi, eax
mov eax, dword [edx + 0x10]
test eax, eax
mov dword [esp + 0x18], 0
jle 0x2243be9
jmp 0x2243920
test edi, edi
jne 0x2243bed
mov edx, dword [esp + 0x7c]
push edi
lea eax, [esp + 0x18]
push eax
push 0x20
lea ecx, [esp + 0x5c]
push ecx
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x74]
imul esi, esi, 0xc8
mov edx, dword [eax + 0x578]
mov eax, dword [esi + edx + 0x80]
add esi, edx
cmp eax, 2
je 0x22439c4
cmp eax, 0x14
je 0x22439c4
cmp eax, 0x13
je 0x22439c4
dec eax
cmp eax, 0x14
ja case.0x224397d.2
movzx ecx, byte [eax + 0x2243c18]
jmp dword [ecx*4 + 0x2243c10]
mov edx, dword [esi + 0x88]
mov eax, dword [esp + 0x7c]
push edx
push ebp
push eax
call fcn.02209f80
mov ecx, dword [esi + 0x84]
mov word [ebp + ecx*2], 0
jmp 0x22439c1
mov edx, dword [esi + 0x88]
mov eax, dword [esp + 0x7c]
push edx
push ebp
push eax
call fcn.02209f80
mov ecx, dword [esi + 0x84]
mov byte [ecx + ebp], 0
add esp, 0xc
mov eax, dword [esi + 0x80]
dec eax
cmp eax, 0x16
ja case.default.0x22439db
movzx edx, byte [eax + 0x2243c64]
jmp dword [edx*4 + 0x2243c30]
mov eax, dword [ebx]
push ebp
push 0x32
push esi
push eax
jmp 0x2243ba8
mov cl, byte [ebp]
mov eax, dword [ebx]
lea edx, [esp + 0x13]
push edx
push 0x32
push esi
mov byte [esp + 0x1f], cl
push eax
jmp 0x2243ba8
movsx cx, byte [ebp]
mov eax, dword [ebx]
lea edx, [esp + 0x20]
push edx
push 0x32
push esi
push eax
mov dword [esp + 0x30], ecx
jmp 0x2243ba8
mov eax, dword [ebx]
xor ecx, ecx
mov cx, word [ebp]
lea edx, [esp + 0x24]
push edx
push 0x32
push esi
push eax
mov dword [esp + 0x34], ecx
jmp 0x2243ba8
mov eax, dword [esp + 0x50]
cmp eax, 1
jae 0x2243a46
mov eax, 1
push eax
push 1
call fcn.0226b127
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x14], edi
jne 0x2243a65
mov edi, 0x446
jmp case.default.0x22439db
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x7c]
push ecx
push edi
push edx
call fcn.02209f80
mov eax, dword [ebx]
push edi
push 0x32
push esi
push eax
call fcn.02202280
mov ecx, dword [esp + 0x30]
push ecx
mov edi, eax
call fcn.0226affd
add esp, 0x20
jmp case.default.0x22439db
mov eax, dword [esp + 0x50]
cmp eax, 1
jge 0x2243aa3
mov eax, 1
push eax
push 2
call fcn.0226b127
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x14], edi
jne 0x2243ac2
mov edi, 0x446
jmp case.default.0x22439db
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x7c]
lea eax, [edx + edx]
push eax
push edi
push ecx
call fcn.02209f80
mov edx, dword [ebx]
push edi
push 0x32
push esi
push edx
call fcn.02202280
mov edi, eax
mov eax, dword [esp + 0x30]
push eax
call fcn.0226affd
add esp, 0x20
jmp case.default.0x22439db
mov ecx, dword [ebp]
lea edx, [esp + 0x28]
xor eax, eax
push edx
mov dword [esp + 0x2c], ecx
cmp dword [esi + 0x80], 2
setne al
dec eax
and eax, 0x31
add eax, 0x32
push eax
jmp 0x2243ba4
mov edx, dword [ebp]
lea ecx, [esp + 0x38]
push ecx
push 0x32
mov dword [esp + 0x40], edx
mov eax, dword [ebp + 4]
mov edx, dword [ebx]
push esi
mov dword [esp + 0x48], eax
push edx
jmp 0x2243ba8
mov eax, dword [ebp]
mov edx, dword [ebx]
lea ecx, [esp + 0x2c]
push ecx
push 0x32
push esi
mov dword [esp + 0x38], eax
push edx
jmp 0x2243ba8
mov edx, dword [ebx]
xor eax, eax
mov ax, word [ebp]
lea ecx, [esp + 0x30]
push ecx
push 0x32
push esi
push edx
mov dword [esp + 0x40], eax
jmp 0x2243ba8
mov eax, dword [ebp]
mov edx, dword [ebx]
lea ecx, [esp + 0x34]
push ecx
push 0x32
push esi
mov dword [esp + 0x40], eax
push edx
jmp 0x2243ba8
mov eax, dword [ebp]
lea edx, [esp + 0x40]
push edx
push 0x32
mov dword [esp + 0x48], eax
mov ecx, dword [ebp + 4]
mov eax, dword [ebx]
push esi
mov dword [esp + 0x50], ecx
push eax
jmp 0x2243ba8
mov ecx, dword [ebp]
lea eax, [esp + 0x48]
mov dword [esp + 0x48], ecx
mov edx, dword [ebp + 4]
push eax
mov dword [esp + 0x50], edx
push 0x32
mov ecx, dword [ebx]
push esi
push ecx
call fcn.02202280
add esp, 0x10
mov edi, eax
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x7c]
push 1
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x2243bd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 0x10]
inc eax
cmp eax, edx
mov dword [esp + 0x18], eax
jl 0x2243920
test edi, edi
je 0x2243bfb
mov edx, dword [ebx]
push edx
call sym.edb500x.dll_FreeUpdateBlk
mov dword [ebx], 0
push ebp
call fcn.0226affd
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x60
ret