Function at 0x6a23c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xdd6c
call fcn.006a8ce0
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
cmp eax, ebx
jne 0x6a23f6
mov eax, str.localtime
jmp 0x6a23fc
cmp byte [eax], 0x3a
jne 0x6a23fc
inc eax
push ecx
push eax
call sym.postgres.exe_pg_open_tzfile
mov edi, eax
add esp, 8
cmp edi, ebx
jl 0x6a2b78
push 0x99e8
lea eax, [ebp - 0xdd54]
push eax
push edi
call dword [sym.imp.MSVCR100.dll__read]
mov ebx, eax
push edi
mov dword [ebp - 0xdd60], ebx
call dword [sym.imp.MSVCR100.dll__close]
add esp, 0x10
test eax, eax
jne 0x6a2b78
test ebx, ebx
jle 0x6a2b78
mov dword [ebp - 0xdd5c], 4
nop
movzx eax, byte [ebp - 0xdd3c]
movzx ecx, byte [ebp - 0xdd3b]
movzx edx, byte [ebp - 0xdd3a]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0xdd39]
shl eax, 8
or eax, edx
movzx edx, byte [ebp - 0xdd3f]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0xdd3e]
mov dword [ebp - 0xdd64], eax
movzx eax, byte [ebp - 0xdd40]
shl eax, 8
or eax, edx
movzx edx, byte [ebp - 0xdd3d]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0xdd37]
shl eax, 8
or eax, edx
movzx edx, byte [ebp - 0xdd36]
mov dword [ebp - 0xdd68], eax
movzx eax, byte [ebp - 0xdd38]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0xdd35]
movzx edi, byte [ebp - 0xdd2f]
shl eax, 8
or eax, edx
movzx edx, byte [ebp - 0xdd34]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0xdd33]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebp - 0xdd32]
movzx ebx, byte [ebp - 0xdd2b]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebp - 0xdd31]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebp - 0xdd30]
shl ecx, 8
or ecx, edi
movzx edi, byte [ebp - 0xdd2e]
shl ecx, 8
or ecx, edi
movzx edi, byte [ebp - 0xdd2d]
shl ecx, 8
or ecx, edi
movzx edi, byte [ebp - 0xdd2c]
shl edi, 8
or edi, ebx
movzx ebx, byte [ebp - 0xdd2a]
shl edi, 8
or edi, ebx
movzx ebx, byte [ebp - 0xdd29]
shl edi, 8
or edi, ebx
mov dword [ebp - 0xdd58], edi
mov dword [esi + 0xc], edi
mov dword [esi], eax
mov dword [ebp - 0xdd6c], edx
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
lea edi, [ebp - 0xdd28]
cmp eax, 0x32
ja 0x6a2b78
lea ebx, [ecx - 1]
cmp ebx, 0xff
ja 0x6a2b78
cmp edx, 0x4b0
ja 0x6a2b78
cmp dword [ebp - 0xdd58], 0x32
ja 0x6a2b78
mov ebx, dword [ebp - 0xdd64]
cmp ebx, ecx
je 0x6a25be
test ebx, ebx
jne 0x6a2b78
mov ebx, dword [ebp - 0xdd68]
cmp ebx, ecx
je 0x6a25d0
test ebx, ebx
jne 0x6a2b78
mov ebx, dword [ebp - 0xdd5c]
inc ebx
imul ebx, edx
mov edx, dword [ebp - 0xdd5c]
add edx, 4
imul edx, eax
add edx, dword [ebp - 0xdd58]
lea eax, [ecx + ecx*2]
add edx, ebx
lea ecx, [edx + eax*2]
add ecx, dword [ebp - 0xdd68]
mov edx, dword [ebp - 0xdd60]
add ecx, dword [ebp - 0xdd64]
add edx, 0xffffffd4
cmp edx, ecx
jl 0x6a2b78
cmp dword [ebp - 0xdd6c], 0
mov dword [ebp - 0xdd58], 0
jle 0x6a2666
mov ecx, dword [ebp - 0xdd5c]
lea ebx, [esi + 0x18]
lea ecx, [ecx]
cmp ecx, 4
mov ecx, edi
jne 0x6a263f
call fcn.006a1480
cdq
jmp 0x6a2644
call fcn.006a14a0
mov ecx, dword [ebp - 0xdd5c]
mov dword [ebx], eax
mov eax, dword [ebp - 0xdd58]
mov dword [ebx + 4], edx
inc eax
add edi, ecx
add ebx, 8
mov dword [ebp - 0xdd58], eax
cmp eax, dword [esi + 4]
jl 0x6a2630
cmp dword [esi + 4], 0
jle 0x6a269a
mov ecx, 0xffffda68
lea eax, [esi + 0x2598]
sub ecx, esi
lea esp, [esp]
mov dl, byte [edi]
mov byte [eax], dl
movzx edx, dl
inc edi
cmp edx, dword [esi + 8]
jge 0x6a2b78
inc eax
lea edx, [ecx + eax]
cmp edx, dword [esi + 4]
jl 0x6a2680
xor edx, edx
cmp dword [esi + 8], edx
jle 0x6a2708
lea eax, [esi + 0x2a50]
jmp 0x6a26b0
movzx ecx, byte [edi]
movzx ebx, byte [edi + 1]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [edi + 2]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [edi + 3]
shl ecx, 8
or ecx, ebx
mov dword [eax - 8], ecx
movzx ecx, byte [edi + 4]
mov dword [eax - 4], ecx
test ecx, ecx
je 0x6a26e5
cmp ecx, 1
jne 0x6a2b78
movzx ecx, byte [edi + 5]
add edi, 6
mov dword [eax], ecx
test ecx, ecx
js 0x6a2b78
cmp ecx, dword [esi + 0xc]
jg 0x6a2b78
inc edx
add eax, 0x14
cmp edx, dword [esi + 8]
jl 0x6a26b0
xor eax, eax
cmp dword [esi + 0xc], eax
jle 0x6a2720
nop
mov dl, byte [edi]
mov byte [esi + eax + 0x3e48], dl
inc eax
inc edi
cmp eax, dword [esi + 0xc]
jl 0x6a2710
mov byte [esi + eax + 0x3e48], 0
cmp dword [esi], 0
mov dword [ebp - 0xdd58], 0
jle 0x6a27b9
mov ecx, dword [ebp - 0xdd5c]
lea ebx, [esi + 0x4048]
cmp ecx, 4
jne 0x6a276d
movzx eax, byte [edi]
movzx edx, byte [edi + 1]
shl eax, 8
or eax, edx
movzx edx, byte [edi + 2]
shl eax, 8
or eax, edx
movzx edx, byte [edi + 3]
shl eax, 8
or eax, edx
cdq
jmp 0x6a277a
mov ecx, edi
call fcn.006a14a0
mov ecx, dword [ebp - 0xdd5c]
mov dword [ebx], eax
add edi, ecx
mov dword [ebx + 4], edx
movzx eax, byte [edi]
movzx edx, byte [edi + 1]
shl eax, 8
or eax, edx
movzx edx, byte [edi + 2]
shl eax, 8
or eax, edx
movzx edx, byte [edi + 3]
shl eax, 8
or eax, edx
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0xdd58]
inc eax
add edi, 4
add ebx, 0x10
mov dword [ebp - 0xdd58], eax
cmp eax, dword [esi]
jl 0x6a2747
xor ebx, ebx
cmp dword [esi + 8], ebx
jle 0x6a27f4
mov ecx, dword [ebp - 0xdd64]
lea eax, [esi + 0x2a54]
lea esp, [esp]
test ecx, ecx
jne 0x6a27d8
mov dword [eax], ecx
jmp 0x6a27eb
movsx edx, byte [edi]
inc edi
mov dword [eax], edx
cmp edx, 1
je 0x6a27eb
test edx, edx
jne 0x6a2b78
inc ebx
add eax, 0x14
cmp ebx, dword [esi + 8]
jl 0x6a27d0
xor ebx, ebx
cmp dword [esi + 8], ebx
jle 0x6a282b
mov ecx, dword [ebp - 0xdd68]
lea eax, [esi + 0x2a58]
test ecx, ecx
jne 0x6a280f
mov dword [eax], ecx
jmp 0x6a2822
movsx edx, byte [edi]
inc edi
mov dword [eax], edx
cmp edx, 1
je 0x6a2822
test edx, edx
jne 0x6a2b78
inc ebx
add eax, 0x14
cmp ebx, dword [esi + 8]
jl 0x6a2807
mov ecx, dword [esi + 4]
sub ecx, 2
xor eax, eax
test ecx, ecx
jle 0x6a2865
lea edx, [esi + 0x18]
lea ebx, [ebx]
mov ecx, dword [edx + 4]
cmp ecx, dword [edx + 0xc]
jg 0x6a2861
jl 0x6a2851
mov ecx, dword [edx]
cmp ecx, dword [edx + 8]
ja 0x6a2861
mov ecx, dword [esi + 4]
inc eax
sub ecx, 2
add edx, 8
cmp eax, ecx
jl 0x6a2840
jmp 0x6a2865
inc eax
mov dword [esi + 4], eax
cmp byte [ebp - 0xdd50], 0
je 0x6a28bf
mov ebx, dword [ebp - 0xdd60]
lea edx, [ebp - 0xdd54]
sub edx, edi
add ebx, edx
xor eax, eax
mov dword [ebp - 0xdd60], ebx
test ebx, ebx
jle 0x6a28a3
lea ecx, [ebp - 0xdd54]
sub edi, ecx
lea edx, [ebp + eax - 0xdd54]
mov cl, byte [edi + edx]
inc eax
mov byte [edx], cl
cmp eax, ebx
jl 0x6a2892
mov eax, dword [ebp - 0xdd5c]
cmp eax, 8
jge 0x6a28bf
add eax, eax
mov dword [ebp - 0xdd5c], eax
cmp eax, 8
jle 0x6a2450
cmp dword [ebp + 0x14], 0
je 0x6a2a8e
cmp dword [ebp - 0xdd60], 2
jle 0x6a2a8e
cmp byte [ebp - 0xdd54], 0xa
jne 0x6a2a8e
mov eax, dword [ebp - 0xdd60]
cmp byte [ebp + eax - 0xdd55], 0xa
lea eax, [ebp + eax - 0xdd55]
jne 0x6a2a8e
mov edx, dword [esi + 8]
add edx, 2
cmp edx, 0x100
jg 0x6a2a8e
mov byte [eax], 0
push 0
lea eax, [ebp - 0x436c]
push eax
lea ecx, [ebp - 0xdd53]
push ecx
call sym.postgres.exe_tzparse
add esp, 0xc
test eax, eax
jne 0x6a2a8e
cmp dword [ebp - 0x4364], 2
jne 0x6a2a8e
mov edx, dword [esi + 0xc]
mov ecx, dword [ebp - 0x4360]
add edx, ecx
cmp edx, 0x32
jg 0x6a2a8e
mov eax, dword [esi + 0xc]
add dword [ebp - 0x191c], eax
add dword [ebp - 0x1908], eax
xor eax, eax
test ecx, ecx
jle 0x6a298d
lea esp, [esp]
mov ecx, dword [esi + 0xc]
mov dl, byte [ebp + eax - 0x524]
mov byte [esi + ecx + 0x3e48], dl
inc dword [esi + 0xc]
inc eax
cmp eax, dword [ebp - 0x4360]
jl 0x6a2970
mov edx, dword [ebp - 0x4368]
xor eax, eax
test edx, edx
jle 0x6a2a04
mov ecx, dword [esi + 4]
mov edi, dword [esi + ecx*8 + 0x10]
mov ecx, dword [esi + ecx*8 + 0x14]
cmp dword [ebp + eax*8 - 0x4350], ecx
jg 0x6a29bf
jl 0x6a29b8
cmp dword [ebp + eax*8 - 0x4354], edi
ja 0x6a29bf
inc eax
cmp eax, edx
jl 0x6a29a4
jmp 0x6a2a04
cmp eax, edx
jge 0x6a2a04
mov ecx, dword [esi + 4]
cmp ecx, 0x4b0
jge 0x6a2a04
mov edx, dword [ebp + eax*8 - 0x4354]
mov dword [esi + ecx*8 + 0x18], edx
mov edx, dword [ebp + eax*8 - 0x4350]
mov dword [esi + ecx*8 + 0x1c], edx
mov cl, byte [ebp + eax - 0x1dd4]
add cl, byte [esi + 8]
mov edx, dword [esi + 4]
mov byte [edx + esi + 0x2598], cl
inc dword [esi + 4]
inc eax
cmp eax, dword [ebp - 0x4368]
jl 0x6a29c3
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x1924]
lea eax, [eax + eax*4]
mov dword [esi + eax*4 + 0x2a48], ecx
mov edx, dword [ebp - 0x1920]
mov dword [esi + eax*4 + 0x2a4c], edx
mov ecx, dword [ebp - 0x191c]
mov dword [esi + eax*4 + 0x2a50], ecx
mov edx, dword [ebp - 0x1918]
lea eax, [esi + eax*4 + 0x2a48]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x1914]
mov dword [eax + 0x10], ecx
mov ecx, 1
add dword [esi + 8], ecx
mov eax, dword [esi + 8]
lea edx, [eax + eax*4]
lea eax, [esi + edx*4 + 0x2a48]
mov edx, dword [ebp - 0x1910]
mov dword [eax], edx
mov edx, dword [ebp - 0x190c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1908]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x1904]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x1900]
mov dword [eax + 0x10], edx
add dword [esi + 8], ecx
mov eax, dword [esi + 4]
cmp eax, 1
jle 0x6a2b65
mov ebx, 1
lea edi, [esi + 0x20]
jmp 0x6a2ab0
movzx eax, byte [esi + ebx + 0x2598]
movzx ecx, byte [esi + 0x2598]
mov edx, esi
call fcn.006a1550
test eax, eax
je 0x6a2ae1
mov eax, dword [edi]
sub eax, dword [esi + 0x18]
mov ecx, dword [edi + 4]
sbb ecx, dword [esi + 0x1c]
cmp eax, 0xf0605980
jne 0x6a2ae1
cmp ecx, 2
je 0x6a2aec
inc ebx
add edi, 8
cmp ebx, dword [esi + 4]
jl 0x6a2ab0
jmp 0x6a2af3
mov dword [esi + 0x10], 1
mov ebx, dword [esi + 4]
add ebx, 0xfffffffe
js 0x6a2b65
mov eax, dword [esi + 4]
movzx eax, byte [eax + esi + 0x2597]
mov dword [ebp - 0xdd6c], eax
lea edi, [esi + ebx*8 + 0x18]
movzx ecx, byte [esi + ebx + 0x2598]
mov eax, dword [ebp - 0xdd6c]
mov edx, esi
call fcn.006a1550
test eax, eax
je 0x6a2b45
mov ecx, dword [esi + 4]
mov eax, dword [esi + ecx*8 + 0x10]
sub eax, dword [edi]
mov ecx, dword [esi + ecx*8 + 0x14]
sbb ecx, dword [edi + 4]
cmp eax, 0xf0605980
jne 0x6a2b45
cmp ecx, 2
je 0x6a2b5e
sub edi, 8
dec ebx
jns 0x6a2b10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret