Function at 0x403cb0
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x55c]
sub esp, 0x55c
push 0xffffffffffffffff
push 0x431b8b
mov eax, dword fs:[0]
push eax
sub esp, 0xb88
mov eax, dword [0x440388]
xor eax, ebp
mov dword [ebp + 0x558], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x564]
xor edi, edi
push esi
lea ecx, [ebp]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], 1
call fcn.00402700
lea eax, [ebp]
mov ecx, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], eax
call fcn.004238d0
mov ecx, dword [esi + 0x58]
mov byte [ebp + 0x8c], 1
mov dword [ebp + 0x2ec], 0xffffffff
mov dword [ebp - 0x20], ecx
xor eax, eax
jmp 0x403d40
lea esi, [eax + 0x4335d8]
lea edi, [ebp + eax - 0xb94]
mov ecx, 0xe
rep movsd dword es:[edi], dword [esi]
mov byte [ebp + eax - 0xb6c], 0
add eax, 0x38
cmp eax, 0x930
jb 0x403d40
mov ebx, 1
cmp dword [ebp - 0x20], ebx
jle 0x403dc7
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x60]
add eax, 4
lea eax, [edx + ebx*4]
mov edx, dword [eax]
push 0
sub esp, 0x2c
mov eax, edx
mov dword [ebp - 0x2c], esp
mov esi, esp
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403d90
sub eax, edi
push edx
push eax
mov ecx, esi
call fcn.00429830
lea edi, [ebp - 0xb94]
call fcn.004031a0
add esp, 0x30
test eax, eax
je 0x403dbf
cmp dword [eax], 0x22
je 0x403efe
add ebx, 1
cmp ebx, dword [ebp - 0x20]
jl 0x403d70
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov byte [ebp - 4], 1
call eax
mov esi, dword [ebp - 0x20]
cmp esi, 1
jg 0x403dfa
lea ecx, [ebp - 0xb94]
push ecx
call fcn.004024a0
add esp, 4
lea edx, [ebp]
push edx
push 1
call fcn.00401570
add esp, 8
cmp esi, 2
jne 0x403e38
mov eax, dword [ebp - 0x14]
add eax, 4
mov eax, dword [eax + 0x5c]
mov esi, dword [eax + 4]
mov edi, 0x433fcc
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x403e38
lea eax, [ebp - 0xb94]
push eax
call fcn.004024a0
add esp, 4
lea ecx, [ebp]
push ecx
push 0
call fcn.00401570
add esp, 8
mov edx, dword [str._NONE]
mov eax, dword [0x433fc8]
xor edi, edi
mov dword [ebp - 0x28], edi
mov byte [ebp + 0x40], 1
mov byte [ebp + 0x58], 0
mov byte [ebp + 0x42], 1
mov byte [ebp + 0x3b], 0
mov word [ebp + 0x46], di
mov byte [ebp + 0x56], 0
mov byte [ebp + 0x57], 0
mov byte [ebp + 0x59], 0
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x80], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x34], edi
mov dword [ebp + 0x84], 0x2000
mov dword [ebp + 0x550], edx
mov dword [ebp + 0x554], eax
mov ebx, 1
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
jge 0x4049c4
mov eax, dword [ebp - 0x14]
add eax, 4
mov eax, dword [eax + 0x5c]
lea ecx, [ebx*4]
add eax, ecx
mov ecx, dword [eax]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403eb7
push ecx
sub eax, esi
push eax
lea ecx, [ebp + 0x524]
call fcn.00429830
mov ax, word [ebp + 0x54c]
cmp ax, di
mov byte [ebp - 4], 2
jne 0x403f30
mov eax, dword [ebp + 0x548]
lea ecx, [ebp + 0x528]
cmp eax, ecx
mov byte [ebp - 4], 1
je 0x4049ba
cmp eax, edi
jmp 0x4049af
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0xb94]
push eax
call fcn.00403350
mov esi, eax
mov eax, dword [ebp + 0x14]
add esp, 4
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x403f29
mov ecx, dword [ebp + 8]
push eax
call fcn.00428be0
mov eax, esi
jmp 0x405241
movzx ecx, ax
lea esi, [ecx - 1]
cmp esi, ecx
jb 0x403f4e
push str.Firebird::string___pos_out_of_range
call fcn.004254f0
mov ax, word [ebp + 0x54c]
add esp, 4
mov edx, dword [ebp + 0x548]
cmp byte [edx + esi], 0x2c
jne 0x403f75
movzx eax, ax
sub eax, 1
push 1
push eax
lea ecx, [ebp + 0x524]
call fcn.00429190
mov ax, word [ebp + 0x54c]
cmp ax, di
ja 0x403f8e
push str.Firebird::string___pos_out_of_range
call fcn.004254f0
mov ax, word [ebp + 0x54c]
add esp, 4
mov ecx, dword [ebp + 0x548]
cmp byte [ecx], 0x2d
je 0x4040a5
mov edx, dword [ebp - 0x24]
cmp edx, edi
je 0x403fce
cmp dword [edx + 0x30], edi
jne 0x403fce
mov eax, dword [ebp - 0x14]
add eax, 4
mov eax, dword [eax + 0x5c]
lea ecx, [ebx*4]
add eax, ecx
mov eax, dword [eax]
push edx
call fcn.00401670
add esp, 4
cmp eax, edi
jne 0x404086
mov ecx, dword [0x44062c]
push 0x40
call fcn.00426530
cmp eax, edi
je 0x404013
mov ecx, dword [0x44062c]
mov dword [eax], edi
mov dword [eax + 4], ecx
mov word [eax + 0x2c], di
mov word [eax + 0x2e], 0x20
lea ecx, [eax + 8]
mov dword [eax + 0x28], ecx
mov byte [ecx], 0
mov dword [eax + 0x30], edi
mov dword [eax + 0x34], 0xffffffff
mov word [eax + 0x38], di
mov dword [eax + 0x3c], edi
mov dword [ebp - 0x24], eax
jmp 0x404016
mov dword [ebp - 0x24], edi
lea edx, [ebp + 0x4f8]
push edx
lea ecx, [ebp + 0x524]
call fcn.00401de0
movzx esi, word [eax + 0x28]
mov ecx, dword [ebp - 0x24]
mov edi, dword [eax + 0x24]
add ecx, 4
push esi
mov byte [ebp - 4], 3
call fcn.00429900
push esi
push edi
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp + 0x51c]
lea ecx, [ebp + 0x4fc]
add esp, 0xc
cmp eax, ecx
mov byte [ebp - 4], 2
je 0x40406b
test eax, eax
je 0x40406b
mov ecx, dword [eax - 4]
push eax
call fcn.00428be0
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x24]
mov edx, ecx
neg edx
sbb edx, edx
neg edx
sub edx, 1
mov dword [eax + 0x30], edx
mov dword [eax], ecx
mov dword [ebp - 0x34], eax
xor edi, edi
mov eax, dword [ebp + 0x548]
lea ecx, [ebp + 0x528]
cmp eax, ecx
mov byte [ebp - 4], 1
je 0x4049ba
cmp eax, edi
jmp 0x4049af
cmp ax, 1
jne 0x4040de
lea eax, [ebp + 0x550]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4040b4
sub eax, edx
mov esi, eax
push esi
lea ecx, [ebp + 0x524]
call fcn.00429900
push esi
lea edx, [ebp + 0x550]
push edx
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push 1
sub esp, 0x2c
lea eax, [ebp + 0x524]
mov dword [ebp - 0x2c], esp
mov ecx, esp
push eax
call fcn.004297f0
lea edi, [ebp - 0xb94]
call fcn.004031a0
mov ecx, eax
mov eax, dword [ecx]
add esp, 0x30
cmp eax, 0x26
mov dword [ebp - 0x2c], ecx
mov byte [ecx + 0x28], 1
jne 0x4041d2
mov edx, dword [ebp - 0x20]
add edx, 0xffffffff
cmp ebx, edx
mov edi, 2
jge 0x4041b6
mov eax, dword [ebp - 0x14]
add eax, 4
mov eax, dword [eax + 0x5c]
mov edx, dword [eax + ebx*4 + 4]
cmp byte [edx], 0x2d
lea eax, [eax + ebx*4 + 4]
je 0x4041b6
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404144
sub eax, esi
push edx
push eax
lea ecx, [ebp + 0x4f8]
call fcn.00429830
lea ecx, [ebp + 0x4f8]
mov byte [ebp - 4], 4
call fcn.00429520
mov eax, dword [ebp + 0x51c]
mov ecx, dword [str.OVERWRITE]
push eax
push ecx
call dword [sym.imp.MSVCR80.dll_strstr]
add esp, 8
cmp eax, dword [str.OVERWRITE]
jne 0x404192
mov edi, 7
add ebx, 1
mov eax, dword [ebp + 0x51c]
lea edx, [ebp + 0x4fc]
cmp eax, edx
mov byte [ebp - 4], 2
je 0x4041b3
test eax, eax
je 0x4041b3
mov ecx, dword [eax - 4]
push eax
call fcn.00428be0
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x28], 0
lea eax, [ebp - 0xb94]
cmp dword [eax], edi
je 0x4041c9
add eax, 0x38
jmp 0x4041c0
mov byte [eax + 0x28], 1
jmp 0x404999
cmp eax, 0x1c
jne 0x40423f
add ebx, 1
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
jl 0x404206
xor eax, eax
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x1ac]
push eax
push 1
push 0xc8
call fcn.00402830
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x60]
add eax, 4
mov eax, dword [ecx + ebx*4]
lea esi, [ecx + ebx*4]
call fcn.00401630
test eax, eax
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x6c], eax
jne 0x404996
mov eax, dword [esi]
push eax
push 1
push 0xc9
call fcn.004028d0
add esp, 0xc
jmp 0x404999
cmp eax, 6
jne 0x4042a8
add ebx, 1
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
jl 0x404270
lea ecx, [ebp - 0x1ac]
push ecx
xor eax, eax
push 1
push 2
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xfc], eax
call fcn.00402830
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x60]
add eax, 4
mov eax, dword [edx + ebx*4]
lea esi, [edx + ebx*4]
call fcn.00401630
test ax, ax
mov ecx, dword [ebp - 0x18]
mov word [ecx + 0x3e], ax
jne 0x404996
mov edx, dword [esi]
push edx
push 1
push 0xc
call fcn.004028d0
add esp, 0xc
jmp 0x404999
cmp eax, 0x21
jne 0x404315
add ebx, 1
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
jl 0x4042dc
xor eax, eax
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x1ac]
push eax
push 1
push 0x102
call fcn.00402830
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x60]
add eax, 4
mov eax, dword [ecx + ebx*4]
lea esi, [ecx + ebx*4]
call fcn.00401630
test eax, eax
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x70], eax
jne 0x404996
mov eax, dword [esi]
push eax
push 1
push 0x103
call fcn.004028d0
add esp, 0xc
jmp 0x404999
cmp eax, 0x23
jne 0x40445d
add ebx, 1
cmp ebx, dword [ebp - 0x20]
jl 0x40434a
lea ecx, [ebp - 0x1ac]
push ecx
xor eax, eax
push 1
push 0x117
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xfc], eax
call fcn.00402830
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x60]
mov edi, dword [edx + ebx*4]
add eax, 4
mov eax, edi
lea edx, [eax + 1]
jmp 0x404360
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404360
sub eax, edx
mov esi, eax
push esi
lea ecx, [ebp + 0x524]
call fcn.00429900
push esi
push edi
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
lea ecx, [ebp + 0x524]
call fcn.00429530
mov edi, dword [str.read_only]
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4043a0
movzx esi, word [ebp + 0x54c]
sub eax, edx
cmp esi, eax
jne 0x4043e4
push eax
mov eax, dword [ebp + 0x548]
push edi
push eax
call fcn.00401280
add esp, 0xc
neg eax
sbb eax, eax
add eax, 1
test al, al
je 0x4043e4
mov ecx, dword [ebp - 0x18]
mov edx, ecx
mov byte [ecx + 0x5a], 1
mov byte [edx + 0x59], 1
jmp 0x404999
mov edi, dword [str.read_write]
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4043f0
sub eax, edx
cmp esi, eax
jne 0x40442d
mov edx, dword [ebp + 0x548]
push eax
push edi
push edx
call fcn.00401280
add esp, 0xc
neg eax
sbb eax, eax
add eax, 1
test al, al
je 0x40442d
mov eax, dword [ebp - 0x18]
mov edx, eax
mov byte [eax + 0x5a], 0
mov byte [edx + 0x59], 1
jmp 0x404999
lea ecx, [ebp - 0x1ac]
push ecx
xor eax, eax
push 1
push 0x117
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xfc], eax
call fcn.00402830
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov byte [edx + 0x59], 1
jmp 0x404999
cmp eax, 0x1b
jne 0x4044d7
add ebx, 1
cmp ebx, dword [ebp - 0x20]
jl 0x40448e
xor eax, eax
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x1ac]
push eax
push 1
push 0xbd
call fcn.00402830
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
push ebx
lea esi, [ecx + 4]
push esi
call eax
mov edi, dword [ebp - 0x18]
xor eax, eax
cmp dword [edi + 0x64], eax
je 0x4044c9
lea ecx, [ebp - 0x1ac]
push ecx
push 1
push 0x133
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xfc], eax
call fcn.00402830
add esp, 0xc
mov edx, dword [esi + 0x5c]
mov eax, dword [edx + ebx*4]
mov dword [edi + 0x64], eax
jmp 0x404999
cmp eax, 0x2d
jne 0x40468c
add ebx, 1
xor esi, esi
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
jl 0x40450f
lea ecx, [ebp - 0x1ac]
push ecx
push 1
push 0xbd
mov dword [ebp - 0x1ac], esi
mov dword [ebp - 0xfc], esi
call fcn.00402830
add esp, 0xc
mov eax, dword [ebp - 0x18]
add eax, 0x64
cmp dword [eax], esi
mov dword [ebp - 0x2c], eax
je 0x40453e
lea edx, [ebp - 0x1ac]
push edx
push 1
push 0x133
mov dword [ebp - 0x1ac], esi
mov dword [ebp - 0xfc], esi
call fcn.00402830
add esp, 0xc
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x60]
add edi, edi
add edi, edi
mov ecx, dword [eax + edi]
add eax, edi
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x404555
push ecx
sub eax, esi
push eax
lea ecx, [ebp + 0x4f8]
call fcn.00429830
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x4f8]
push ecx
mov byte [ebp - 4], 5
call fcn.0042dfc0
mov esi, eax
mov eax, dword [ebp + 0x51c]
lea edx, [ebp + 0x4fc]
add esp, 8
cmp eax, edx
mov byte [ebp - 4], 2
je 0x4045a7
test eax, eax
je 0x4045a7
mov ecx, dword [eax - 4]
push eax
call fcn.00428be0
mov eax, esi
sub eax, 1
je 0x404644
sub eax, 1
je 0x4045f9
sub eax, 1
jne 0x404996
mov eax, dword [ebx + 0x60]
add ebx, 4
xor ecx, ecx
add eax, edi
mov dword [ebp - 0x1ac], ecx
mov dword [ebp - 0xfc], ecx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x1ac]
call fcn.0042bde0
push eax
push 1
push 0x136
call fcn.00402830
add esp, 0xc
jmp 0x404996
mov esi, dword [ebx + 0x60]
add ebx, 4
xor eax, eax
add esi, edi
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x1b4], eax
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [esi]
push ecx
lea ecx, [ebp - 0x264]
mov edi, eax
call fcn.0042bde0
mov edx, dword [edi]
push edx
mov ecx, eax
call fcn.0042bc50
push eax
push 1
push 0x135
call fcn.00402830
add esp, 0xc
jmp 0x404996
mov esi, dword [ebx + 0x60]
add ebx, 4
xor eax, eax
add esi, edi
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x40], eax
call dword [sym.imp.MSVCR80.dll__errno]
mov edi, eax
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0xf0]
call fcn.0042bde0
mov ecx, dword [edi]
push ecx
mov ecx, eax
call fcn.0042bc50
push eax
push 1
push 0x134
call fcn.00402830
add esp, 0xc
jmp 0x404996
cmp eax, 0x1a
jne 0x4046d1
add ebx, 1
cmp ebx, dword [ebp - 0x20]
jl 0x4046ba
lea edx, [ebp - 0xf0]
push edx
xor eax, eax
push 1
push 0xbc
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x40], eax
call fcn.00402830
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add eax, 4
mov eax, dword [eax + 0x5c]
mov ecx, dword [eax + ebx*4]
mov dword [edx + 0x60], ecx
jmp 0x404999
cmp eax, 0x29
jne 0x40471f
mov esi, dword [ebp - 0x14]
mov eax, dword [esi]
mov edx, dword [eax + 0x40]
mov ecx, esi
call edx
add ebx, 1
cmp ebx, dword [ebp - 0x20]
jl 0x40470b
xor eax, eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0xf0]
push eax
push 1
push 0xbc
call fcn.00402830
add esp, 0xc
mov ecx, dword [esi + 0x60]
mov edx, dword [ecx + ebx*4]
lea eax, [esi + 4]
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x68], edx
jmp 0x404999
cmp eax, 0x1f
jne 0x404764
add ebx, 1
cmp ebx, dword [ebp - 0x20]
jl 0x40474d
lea ecx, [ebp - 0xf0]
push ecx
xor eax, eax
push 1
push 0xfd
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x40], eax
call fcn.00402830
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x60]
mov ecx, dword [ebp - 0x18]
add eax, 4
mov eax, dword [edx + ebx*4]
mov dword [ecx + 0x5c], eax
jmp 0x404999
cmp eax, 0x16
jne 0x4047cf
add ebx, 1
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
jl 0x404795
lea edx, [ebp - 0xf0]
push edx
xor eax, eax
push 1
push 0xb6
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x40], eax
call fcn.00402830
add esp, 0xc
mov eax, dword [ebp - 0x14]
add eax, 4
mov eax, dword [eax + 0x5c]
lea esi, [eax + ebx*4]
mov eax, dword [esi]
call fcn.00401630
test ax, ax
mov ecx, dword [ebp - 0x18]
mov word [ecx + 0x46], ax
jne 0x404996
mov edx, dword [esi]
push edx
push 1
push 0xb7
call fcn.004028d0
add esp, 0xc
jmp 0x404999
cmp eax, 0x2b
jne 0x404814
add ebx, 1
cmp ebx, dword [ebp - 0x20]
jl 0x4047fd
xor eax, eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0xf0]
push eax
push 1
push 0x130
call fcn.00402830
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x60]
mov edx, dword [ecx + ebx*4]
add eax, 4
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x48], edx
jmp 0x404999
cmp eax, 0x2c
jne 0x404859
add ebx, 1
cmp ebx, dword [ebp - 0x20]
jl 0x404842
lea ecx, [ebp - 0xf0]
push ecx
xor eax, eax
push 1
push 0x130
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x40], eax
call fcn.00402830
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x60]
mov ecx, dword [ebp - 0x18]
add eax, 4
mov eax, dword [edx + ebx*4]
mov dword [ecx + 0x50], eax
jmp 0x404999
cmp eax, 0x22
jne 0x404893
add ebx, 1
cmp ebx, dword [ebp - 0x20]
jl 0x40488a
lea edx, [ebp - 0xf0]
push edx
xor eax, eax
push 1
push 0x111
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x40], eax
call fcn.00402830
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
mov byte [ecx + 0x28], 0
jmp 0x404999
cmp eax, 0xe
jne 0x404996
add ebx, 1
xor ecx, ecx
xor esi, esi
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
jge 0x4048be
mov eax, dword [ebp - 0x14]
add eax, 4
mov eax, dword [eax + 0x5c]
mov esi, dword [eax + ebx*4]
cmp byte [esi], 0x2d
jne 0x4048da
xor esi, esi
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0xf0]
push ecx
push 1
push 4
call fcn.00402830
add esp, 0xc
push esi
lea ecx, [ebp + 0x4f8]
call fcn.004017c0
lea ecx, [ebp + 0x4f8]
mov byte [ebp - 4], 6
call fcn.00429520
push str.SUPPRESS
lea ecx, [ebp + 0x4f8]
call fcn.00401e20
mov edi, dword [ebp - 0x18]
neg al
sbb eax, eax
neg eax
add eax, 1
cmp eax, 1
mov dword [edi + 0x88], eax
jne 0x404987
mov edx, dword [0x440014]
push edx
push esi
call dword [sym.imp.MSVCR80.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x404955
push esi
push 0x42
push 1
call fcn.004020e0
add esp, 0xc
push ebx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
push edi
push 1
call fcn.00401570
add esp, 8
mov eax, dword [0x440010]
push eax
push esi
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 8
test eax, eax
mov dword [edi + 0x348], eax
jne 0x404987
push esi
push 0x42
push 1
call fcn.004020e0
add esp, 0xc
push edi
push 1
call fcn.00401570
add esp, 8
lea ecx, [ebp + 0x4f8]
mov byte [ebp - 4], 2
call fcn.00401310
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x548]
lea ecx, [ebp + 0x528]
cmp eax, ecx
mov byte [ebp - 4], 1
je 0x4049ba
test eax, eax
je 0x4049ba
mov ecx, dword [eax - 4]
push eax
call fcn.00428be0
add ebx, 1
xor edi, edi
jmp 0x403e92
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x34]
mov dword [ecx + 0x74], edi
lea ecx, [ecx]
cmp eax, edi
je 0x4049e2
mov edx, dword [eax]
mov esi, dword [ecx + 0x74]
mov dword [eax], esi
mov dword [ecx + 0x74], eax
mov eax, edx
jmp 0x4049d0
mov ebx, ecx
mov edi, dword [ebx + 0x74]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
test edi, edi
je 0x404a67
cmp dword [ebp - 0x24], 0
jne 0x404a07
mov edx, dword [edi + 0x28]
mov dword [ebp - 0x24], edx
jmp 0x404a13
cmp dword [ebp - 0x1c], 0
jne 0x404a13
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x1c], eax
mov esi, dword [edi]
test esi, esi
je 0x404a63
movzx edx, word [esi + 0x2c]
movzx ecx, word [edi + 0x2c]
cmp ecx, edx
jne 0x404a5f
mov eax, dword [esi + 0x28]
mov ecx, dword [edi + 0x28]
push edx
push eax
push ecx
call sub.MSVCR80.dll__strnicmp
xor ecx, ecx
add esp, 0xc
test eax, eax
sete cl
test cl, cl
je 0x404a5f
lea edx, [ebp - 0xf0]
push edx
xor eax, eax
push 1
push 9
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x40], eax
call fcn.00402830
add esp, 0xc
mov esi, dword [esi]
jmp 0x404a15
mov edi, dword [edi]
jmp 0x4049f5
push 1
push 0x400
xor esi, esi
push esi
lea ecx, [ebp + 0x448]
call fcn.0042cc30
push 0x1c
push str.WI_V2.5.2.26540_Firebird_2.5
push 0x3b
lea ecx, [ebp + 0x448]
mov byte [ebp - 4], 7
call fcn.0042cba0
push 1
push 0x45
lea ecx, [ebp + 0x448]
call fcn.0042cbc0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x48]
lea edx, [ebp + 0x448]
push edx
call eax
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0xb94]
cmp dword [eax + 8], esi
mov dword [ebp - 0x2c], eax
je 0x404e2a
cmp byte [eax + 0x28], 0
je case.0x404ae8.2
mov eax, dword [eax]
add eax, 0xffffffff
cmp eax, 0x2c
ja case.0x404ae8.2
movzx ecx, byte [eax + 0x4053a4]
jmp dword [ecx*4 + 0x405334]
cmp di, si
je 0x404b10
lea edx, [ebp - 0xf0]
push edx
push 1
push 5
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0x40], esi
call fcn.00402830
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov edi, 1
mov dword [ebp - 0x28], edi
add eax, 0x38
jmp 0x404abd
cmp di, 1
jne 0x404b45
lea eax, [ebp - 0x264]
push eax
push 1
push 5
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x1b4], esi
call fcn.00402830
add esp, 0xc
cmp di, 7
je case.0x404ae8.2
mov eax, dword [ebp - 0x2c]
mov edi, 2
mov dword [ebp - 0x28], edi
add eax, 0x38
jmp 0x404abd
mov eax, dword [ebp - 0x2c]
mov byte [ebx + 0x58], 1
add eax, 0x38
jmp 0x404abd
mov eax, dword [ebp - 0x2c]
mov byte [ebx + 0x40], 0
add eax, 0x38
jmp 0x404abd
push 0x10
lea ecx, [ebp + 0x448]
call fcn.0042c730
mov eax, dword [ebp - 0x2c]
add eax, 0x38
jmp 0x404abd
mov eax, dword [ebp - 0x2c]
mov byte [ebx + 0x44], 1
add eax, 0x38
jmp 0x404abd
push 1
push 0x11
lea ecx, [ebp + 0x448]
call fcn.0042cbc0
mov eax, dword [ebp - 0x2c]
add eax, 0x38
jmp 0x404abd
mov eax, dword [ebp - 0x2c]
mov byte [ebx + 0x45], 1
add eax, 0x38
jmp 0x404abd
mov eax, dword [ebp - 0x2c]
mov byte [ebx + 0x3b], 1
add eax, 0x38
jmp 0x404abd
mov eax, dword [ebp - 0x2c]
mov byte [ebx + 0x3c], 1
add eax, 0x38
jmp 0x404abd
mov eax, dword [ebp - 0x2c]
mov byte [ebx + 0x59], 1
add eax, 0x38
jmp 0x404abd
mov eax, dword [ebp - 0x2c]
mov byte [ebx + 0x3d], 1
add eax, 0x38
jmp 0x404abd
push 1
push 0x48
lea ecx, [ebp + 0x448]
call fcn.0042cbc0
mov eax, dword [ebp - 0x2c]
add eax, 0x38
jmp 0x404abd
mov eax, dword [ebp - 0x2c]
mov byte [ebx + 0x42], 0
add eax, 0x38
jmp 0x404abd
mov eax, dword [ebp - 0x2c]
mov byte [ebx + 0x43], 1
add eax, 0x38
jmp 0x404abd
mov eax, dword [ebp - 0x2c]
mov byte [ebx + 0x57], 1
add eax, 0x38
jmp 0x404abd
mov eax, dword [ebx + 0x64]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404c60
mov ecx, dword [ebx + 0x43c]
sub eax, edx
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [edx]
call eax
mov ecx, dword [ebx + 0x64]
test al, al
setne dl
add dl, 0x1d
push esi
push ecx
lea ecx, [ebp + 0x448]
push edx
call fcn.0042cba0
mov eax, dword [ebp - 0x2c]
xor esi, esi
add eax, 0x38
jmp 0x404abd
cmp di, 1
jne 0x404cc4
lea eax, [ebp - 0x1ac]
push eax
push 1
push 5
mov dword [ebp - 0x1ac], esi
mov dword [ebp - 0xfc], esi
call fcn.00402830
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov edi, 7
mov dword [ebp - 0x28], edi
add eax, 0x38
jmp 0x404abd
mov eax, dword [ebp - 0x2c]
mov byte [ebx + 0x42], 1
add eax, 0x38
jmp 0x404abd
mov eax, dword [ebp - 0x2c]
mov byte [ebx + 0x56], 1
add eax, 0x38
jmp 0x404abd
mov edx, dword [ebx + 0x5c]
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404d00
sub eax, esi
push eax
push edx
push 0x3c
lea ecx, [ebp + 0x448]
call fcn.0042cba0
mov eax, dword [ebp - 0x2c]
xor esi, esi
add eax, 0x38
jmp 0x404abd
mov edx, dword [ebx + 0x60]
mov eax, edx
lea esi, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404d30
sub eax, esi
push eax
push edx
push 0x1c
lea ecx, [ebp + 0x448]
call fcn.0042cba0
mov eax, dword [ebp - 0x2c]
xor esi, esi
add eax, 0x38
jmp 0x404abd
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
call eax
push 0x49
lea ecx, [ebp + 0x448]
call fcn.0042c110
mov edx, dword [ebx + 0x68]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404d76
sub eax, esi
push eax
push edx
push 0x49
lea ecx, [ebp + 0x448]
call fcn.0042cba0
mov eax, dword [ebp - 0x2c]
xor esi, esi
add eax, 0x38
jmp 0x404abd
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
call eax
push 0x4b
lea ecx, [ebp + 0x448]
call fcn.0042c110
push 9
push str.RDB_ADMIN
push 0x4b
lea ecx, [ebp + 0x448]
call fcn.0042cba0
mov eax, dword [ebp - 0x2c]
add eax, 0x38
jmp 0x404abd
push 0x49
lea ecx, [ebp + 0x448]
call fcn.0042a750
test al, al
jne case.0x404ae8.2
push 0x49
lea ecx, [ebp + 0x448]
call fcn.0042c730
mov eax, dword [ebp - 0x2c]
add eax, 0x38
jmp 0x404abd
mov eax, dword [ebp - 0x2c]
mov byte [ebx + 0x3a], 1
add eax, 0x38
jmp 0x404abd
push str.WI_V2.5.2.26540_Firebird_2.5
push 0x5b
push esi
call fcn.004020e0
add esp, 0xc
mov byte [ebx + 0x41], 1
mov eax, dword [ebp - 0x2c]
add eax, 0x38
jmp 0x404abd
cmp di, si
jne 0x404e38
mov dword [ebp - 0x28], 1
jmp 0x404e3e
cmp di, 1
jne 0x404e7b
mov esi, dword [ebx + 0x74]
mov edi, 6
test esi, esi
je 0x404e7b
cmp word [esi + 0x2c], di
jne 0x404e77
mov eax, dword [esi + 0x28]
push edi
push str.stdout
push eax
call sub.MSVCR80.dll__strnicmp
xor ecx, ecx
add esp, 0xc
test eax, eax
sete cl
test cl, cl
je 0x404e77
mov ecx, dword [ebx + 0x43c]
mov byte [ecx + 0x64], 1
mov esi, dword [esi]
jmp 0x404e46
cmp word [ebx + 0x3e], 0
je 0x404f2f
cmp word [ebp - 0x28], 1
jne 0x404eab
lea edx, [ebp - 0xf0]
push edx
xor eax, eax
push 1
push 8
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x40], eax
call fcn.00402830
add esp, 0xc
movzx esi, word [ebx + 0x3e]
mov eax, 0x1000
cmp eax, 0x4000
jg 0x404ec5
cmp esi, eax
jg 0x404fc0
mov esi, eax
cmp esi, 0x4000
jle 0x404ef5
xor eax, eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x40], eax
movzx eax, word [ebx + 0x3e]
push eax
lea ecx, [ebp - 0xf0]
call fcn.0042bc20
push eax
push 1
push 3
call fcn.00402830
add esp, 0xc
movzx eax, word [ebx + 0x3e]
movzx ecx, ax
cmp esi, ecx
je 0x404f2f
xor edi, edi
push eax
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0x40], edi
call fcn.0042bc20
push esi
mov ecx, eax
call fcn.0042bc50
push eax
push 0x67
push edi
call fcn.00402090
add esp, 0xc
mov word [ebx + 0x3e], si
cmp dword [ebx + 0x70], 0
je 0x404f5d
cmp word [ebp - 0x28], 1
jne 0x404f5d
lea edx, [ebp - 0xf0]
push edx
xor eax, eax
push 1
push 0x104
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x40], eax
call fcn.00402830
add esp, 0xc
cmp word [ebx + 0x46], 0
je 0x404f6b
cmp word [ebp - 0x28], 1
je 0x404f71
mov word [ebx + 0x46], 1
cmp dword [ebp - 0x1c], 0
jne 0x404f95
xor eax, eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0xf0]
push eax
push 1
push 0xa
call fcn.00402830
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
jmp 0x404fa0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404fc7
test dl, dl
je 0x404fbc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404fc7
add eax, 2
add ecx, 2
test dl, dl
jne 0x404fa0
xor eax, eax
jmp 0x404fcc
add eax, eax
jmp 0x404eb4
sbb eax, eax
sbb eax, 0xffffffff
xor esi, esi
cmp eax, esi
jne 0x404fee
lea ecx, [ebp - 0xf0]
push ecx
push 1
push 0xb
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0x40], esi
call fcn.00402830
add esp, 0xc
push esi
call dword [sym.imp.MSVCR80.dll__time64]
mov dword [ebp + 0x554], edx
lea edx, [ebp + 0x550]
add esp, 4
push edx
mov dword [ebp + 0x550], eax
call dword [sym.imp.MSVCR80.dll__ctime64]
add esp, 4
push 0x1e
push eax
lea esi, [ebx + 0x1c]
push esi
call fcn.0042ce00
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405028
sub eax, edx
cmp byte [eax + ebx + 0x1b], 0xa
jne 0x40503e
mov byte [eax + ebx + 0x1b], cl
push 0xc
call fcn.00405fc0
mov edi, dword [ebp - 0x24]
mov dword [ebx + 0x80], eax
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebx + 0x80]
mov dword [eax + 4], ecx
mov edx, dword [ebx + 0x80]
add esp, 4
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0x28]
movzx edx, byte [ebx + 0x3a]
lea eax, [ebp + 0x448]
push eax
push ecx
push edx
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.00402940
mov ecx, dword [ebx + 0x84]
add esp, 0x14
mov esi, eax
push ecx
mov dword [ebp - 0x38], esi
call fcn.004062e0
mov ecx, dword [ebx + 0x43c]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 4
call eax
mov eax, esi
sub eax, 0
je 0x405266
sub eax, 1
je 0x4050db
sub eax, 1
je 0x4050c4
mov byte [ebp - 4], 9
jmp 0x40526f
cmp word [ebp - 0x28], 7
mov eax, dword [ebp - 0x1c]
push eax
sete dl
push edi
mov byte [ebx + 0x5b], dl
call fcn.00420c40
jmp 0x4050e5
mov ecx, dword [ebp - 0x1c]
push ecx
push edi
call fcn.00411c80
mov esi, eax
add esp, 8
test esi, esi
je 0x4050f8
cmp esi, 2
je 0x4050f8
call fcn.004027c0
push ebx
push esi
call fcn.00401570
add esp, 8
mov eax, dword [ebp + 0x4f4]
lea edx, [ebp + 0x46c]
cmp eax, edx
mov byte [ebp - 4], 0xa
je 0x405122
mov ecx, dword [ebp + 0x468]
push eax
call fcn.00428be0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov esi, dword [edi + 0x78]
test esi, esi
je 0x405189
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea esp, [esp]
push 0xfffffffffffffff6
call ebx
cmp dword [esi + 0x34], eax
je 0x405183
push 0xfffffffffffffff5
call ebx
mov ecx, dword [esi + 0x34]
cmp ecx, eax
je 0x405183
cmp ecx, 0xffffffff
je 0x405160
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], 0
je 0x405183
mov ecx, dword [edi + 0x80]
mov eax, dword [ecx + 8]
cmp eax, 2
je 0x405179
cmp eax, 1
jne 0x405183
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esi]
test esi, esi
jne 0x405140
cmp dword [edi + 0x2e0], 0
lea ebx, [edi + 0x2e0]
je 0x4051d5
mov edx, dword [ebp - 0x38]
lea esi, [edi + 0x2e4]
push edx
call fcn.00402440
mov eax, dword [ebp - 0x38]
lea esi, [edi + 0x2e8]
push eax
call fcn.00402440
add esp, 8
push ebx
lea esi, [edi + 0x2f0]
push esi
call sub.fbclient.dll_Ordinal_128
test eax, eax
je 0x4051d5
push esi
push 1
call fcn.00402160
add esp, 8
cmp dword [edi + 0x88], 1
jne 0x4051fc
mov eax, dword [edi + 0x348]
test eax, eax
je 0x4051fc
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov dword [edi + 0x348], 0
cmp dword [edi + 0x344], 0
je 0x405222
mov eax, dword [edi + 0x344]
mov ecx, dword [eax]
push eax
mov dword [edi + 0x344], ecx
call sub.fbclient.dll_Ordinal_37
cmp dword [edi + 0x344], 0
jne 0x405205
call fcn.00423920
mov eax, dword [ebp + 0x14]
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x40523e
mov ecx, dword [ebp + 8]
push eax
call fcn.00428be0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x558]
xor ecx, ebp
call fcn.00430baf
add ebp, 0x55c
mov esp, ebp
pop ebp
ret
call fcn.004027c0
mov byte [ebp - 4], 8
mov eax, dword [ebp + 0x4f4]
lea ecx, [ebp + 0x46c]
cmp eax, ecx
je 0x40528b
mov ecx, dword [ebp + 0x468]
push eax
call fcn.00428be0
mov eax, dword [ebp + 0x14]
test eax, eax
mov dword [ebp + 0x448], 0x433f30
mov dword [ebp - 4], 0xffffffff
je 0x4052ac
mov ecx, dword [ebp + 8]
push eax
call fcn.00428be0
xor eax, eax
jmp 0x405241