Function at 0x4f14d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x130
push ebx
push ebp
push edi
xor ebp, ebp
lea eax, [esp + 0x7c]
push 0x40
xor ebx, ebx
mov dword [esp + 0x14], ebp
push ebp
xor edi, edi
mov dword [esp + 0x24], ebx
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x84], ebx
mov dword [esp + 0xfc], ebx
mov byte [esp + 0x100], bl
call sub.MSVCRT.dll_memset
mov eax, dword [esp + 0x14c]
add esp, 0xc
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x148], ebx
jne 0x4f1534
pop edi
pop ebp
lea eax, [ebx + 7]
pop ebx
add esp, 0x130
ret
movzx edx, word [eax + 0x18]
movzx ecx, byte [eax + 0xc]
push esi
lea esi, [ecx + edx]
cmp esi, 2
jge 0x4f154b
mov dword [esp + 0x40], ebx
jmp 0x4f1585
mov eax, dword [esp + 0x148]
test eax, eax
jne 0x4f155c
mov dword [esp + 0x40], ebx
jmp 0x4f1577
cmp eax, esi
jne 0x4f1572
mov eax, dword [esp + 0x154]
add esi, 0xfffffffe
add esi, eax
mov dword [esp + 0x40], esi
jmp 0x4f157e
dec eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x154]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x40]
sub eax, ecx
lea ecx, [eax + esi]
cmp ecx, edx
jne 0x4f15ae
mov eax, dword [esp + 0x144]
movzx ecx, byte [eax + 9]
mov eax, dword [eax + 0x38]
add ecx, 8
add ecx, eax
jmp 0x4f15cc
mov edx, dword [esp + 0x144]
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [edx + 0x38]
mov eax, dword [ecx]
bswap eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x60], eax
lea esp, [esp]
test edi, edi
jne 0x4f28b8
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
cmp edi, dword [eax + 0x30]
jbe 0x4f161a
push 0x5cd89c
push 0x10b31
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004e9df0
add esp, 0x14
mov eax, 0xb
jmp 0x4f1696
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push 0
push ecx
push edi
push eax
mov eax, dword [eax + 0xdc]
call eax
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4f169a
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 8]
mov dword [esp + esi*4 + 0x54], ecx
cmp byte [ecx], al
jne 0x4f1694
cmp edi, dword [ecx + 4]
je 0x4f166c
mov eax, dword [edx + 4]
cmp edi, 1
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 0x34], eax
setne al
dec al
mov dword [ecx + 0x48], edx
and al, 0x64
mov dword [ecx + 4], edi
mov byte [ecx + 9], al
mov edi, ecx
push edi
call fcn.004f3cb0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x4f1694
test edi, edi
je 0x4f169a
push dword [edi + 0x48]
call fcn.00551310
mov eax, dword [esp + 0x14]
add esp, 4
jmp 0x4f169a
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4f28b8
mov edi, dword [esp + esi*4 + 0x54]
cmp dword [edi + 0x14], ebp
jge 0x4f16c8
push edi
call fcn.004f3230
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4f1801
movzx ecx, word [edi + 0x18]
add ecx, 4
add ebx, ecx
mov ecx, esi
dec esi
mov dword [esp + 0x1c], ebx
test ecx, ecx
je 0x4f180d
mov edi, dword [esp + 0x144]
mov dl, byte [edi + 0xc]
test dl, dl
je 0x4f1730
mov ecx, dword [esp + 0x40]
movzx eax, word [edi + 0x1c]
add ecx, esi
cmp ecx, eax
jne 0x4f1730
mov eax, dword [edi + 0x24]
push eax
mov dword [esp + esi*4 + 0xd8], eax
push edi
mov ecx, dword [eax]
mov eax, dword [edi + 0x4c]
bswap ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x68], ecx
call eax
movzx eax, ax
add esp, 8
mov byte [edi + 0xc], 0
mov edi, dword [esp + 0x10]
mov dword [esp + esi*4 + 0x64], eax
jmp 0x4f15e0
mov ecx, dword [esp + 0x40]
movzx eax, dl
sub ecx, eax
mov eax, dword [edi + 0x40]
add ecx, esi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [edi + 0x38]
add eax, ecx
push eax
mov dword [esp + esi*4 + 0xd8], eax
push edi
mov ecx, dword [eax]
mov eax, dword [edi + 0x4c]
bswap ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x68], ecx
call eax
mov edx, dword [esp + 0x30]
add esp, 8
movzx ebx, ax
mov dword [esp + esi*4 + 0x64], ebx
test byte [edx + 0x18], 0xc
je 0x4f17d4
mov eax, dword [esp + 0x144]
mov edi, dword [esp + esi*4 + 0xd4]
mov ecx, edi
sub ecx, dword [eax + 0x38]
lea eax, [ebx + ecx]
cmp eax, dword [edx + 0x28]
jg 0x4f17cd
mov eax, dword [esp + 0x14c]
push ebx
add eax, ecx
push edi
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esp + 0x150]
add esp, 0xc
sub edi, dword [eax + 0x38]
add edi, dword [esp + 0x14c]
mov dword [esp + esi*4 + 0xd4], edi
mov edi, eax
jmp 0x4f17d4
mov edi, dword [esp + 0x144]
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x18]
push eax
movzx eax, byte [edi + 0xc]
sub ecx, eax
push ebx
add ecx, esi
push ecx
push edi
call fcn.004fbe50
mov edi, dword [esp + 0x28]
add esp, 0x10
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], edi
jmp 0x4f15e0
lea eax, [esi*4]
jmp 0x4f28bf
mov eax, dword [esp + 0x28]
lea esi, [ebx + 3]
and esi, 0xfffffffc
mov eax, dword [eax + 0x24]
lea ecx, [esi + esi*2]
lea eax, [eax + ecx*2]
cdq
push edx
push eax
call fcn.0054e110
add esp, 8
mov dword [esp + 0x88], eax
test eax, eax
jne 0x4f1844
mov ebp, 7
mov dword [esp + 0x10], ebp
jmp 0x4f2933
mov ecx, dword [esp + 0x54]
lea edx, [eax + esi*4]
lea eax, [edx + esi*2]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x84], ecx
movzx eax, byte [ecx + 8]
movzx edi, byte [ecx + 2]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x34], eax
jle 0x4f1af7
jmp 0x4f1890
shl eax, 2
mov dword [esp + 0x78], eax
mov edi, dword [esp + eax + 0x54]
mov dword [esp + 0x24], edi
movzx ecx, word [edi + 0x1a]
mov eax, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
movzx ebx, word [edi + 0x18]
add esi, eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x2c], eax
mov al, byte [eax]
mov dword [esp + 0x1c], esi
mov ecx, dword [ecx + 0x38]
cmp al, byte [ecx]
jne 0x4f1cd7
movzx eax, byte [edi + 0xc]
add eax, ebx
add eax, eax
push eax
mov eax, dword [esp + 0x84]
push 0
lea eax, [edx + eax*2]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x4f1982
movzx edx, word [edi + 0x1c]
cmp ebx, edx
jl 0x4f1ac7
test edx, edx
jle 0x4f1949
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x80]
movzx ebx, ax
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, cx
mov ecx, dword [esp + 0x88]
and eax, ebx
add eax, ebp
mov dword [ecx + edi*4], eax
inc edi
dec edx
jne 0x4f1917
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x80], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x1c], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x4f1982
mov ebx, dword [esp + 0x80]
lea ecx, [edi + 0x24]
mov esi, dword [esp + 0x88]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [esi + ebx*4], eax
inc edx
movzx eax, byte [edi + 0xc]
inc ebx
cmp edx, eax
jl 0x4f1961
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x80], ebx
movzx eax, word [edi + 0x12]
xor edx, edx
add eax, dword [esp + 0x2c]
movzx ecx, word [edi + 0x18]
lea eax, [eax + ecx*2]
mov ecx, eax
sub ecx, esi
inc ecx
shr ecx, 1
cmp eax, esi
sbb ebx, ebx
not ebx
and ebx, ecx
jbe 0x4f19f0
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x2c]
movzx eax, ax
mov dword [esp + 0x1c], eax
mov edi, eax
mov ax, word [esi]
lea esi, [esi + 2]
mov ch, al
inc edx
mov cl, ah
movzx eax, cx
mov ecx, dword [esp + 0x80]
and eax, edi
mov edi, dword [esp + 0x88]
add eax, ebp
mov dword [edi + ecx*4], eax
inc ecx
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x80], ecx
cmp edx, ebx
jb 0x4f19b5
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x80]
dec eax
mov dword [esp + ecx + 0x12c], edx
cmp dword [esp + 0x3c], eax
jge 0x4f1aac
cmp dword [esp + 0x38], 0
jne 0x4f1aac
movzx eax, word [esp + ecx + 0x64]
mov esi, dword [esp + 0x8c]
mov ebx, dword [esp + 0x44]
push eax
push dword [esp + ecx + 0xd8]
mov word [esi + edx*2], ax
lea esi, [ebx + ebp]
add ebp, eax
push esi
mov dword [esp + 0x20], ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esp + 0x54]
add esp, 0xc
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x88]
movzx eax, ax
add eax, esi
mov esi, dword [esp + 0x48]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x8c]
sub word [eax + edx*2], si
cmp byte [edi + 8], 0
jne 0x4f1a86
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + edx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x4f1aa4
cmp word [eax + edx*2], 4
jae 0x4f1aa4
lea ecx, [ecx]
mov byte [ebx + ebp], 0
inc ebp
inc word [eax + edx*2]
cmp word [eax + edx*2], 4
jb 0x4f1a90
mov dword [esp + 0x14], ebp
inc edx
mov dword [esp + 0x80], edx
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
cmp eax, dword [esp + 0x34]
jge 0x4f1af3
mov edx, dword [esp + 0x8c]
jmp 0x4f1890
push 0x5cd89c
push 0x1217d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004e9df0
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x10], ebp
jmp 0x4f28d3
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
xor ebx, ebx
movzx ebp, ax
xor edx, edx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], edx
mov eax, dword [eax + 0x28]
add eax, 0xfffffff4
add ebp, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3c], ebp
test eax, eax
jle 0x4f1bf9
jmp 0x4f1b30
mov esi, dword [esp + edx*4 + 0x54]
mov ecx, dword [esp + edx*4 + 0x12c]
mov dword [esp + 0x78], ecx
mov eax, dword [esi + 0x3c]
mov dword [esp + ebx*4 + 0x90], eax
mov dword [esp + ebx*4 + 0xa8], ecx
test ebx, ebx
je 0x4f1b62
cmp ecx, dword [esp + ebx*4 + 0xa4]
jne 0x4f1b62
dec ebx
mov dword [esp + 0x14], ebx
test edi, edi
jne 0x4f1b86
mov eax, dword [esp + 0x144]
inc ebx
mov dword [esp + 0x14], ebx
mov eax, dword [eax + 0x3c]
mov dword [esp + ebx*4 + 0x90], eax
lea eax, [ecx + 1]
mov dword [esp + ebx*4 + 0xa8], eax
mov edi, ebp
lea eax, [esp + 0x64]
sub edi, dword [esi + 0x14]
lea eax, [eax + edx*4]
xor ebp, ebp
mov dword [esp + 0x44], eax
cmp byte [esi + 0xc], 0
mov dword [eax], edi
jbe 0x4f1bd4
lea ebx, [esi + 0x24]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
movzx eax, ax
lea ebx, [ebx + 4]
add eax, 2
inc ebp
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ebp, eax
jl 0x4f1ba3
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x24]
mov dword [eax], edi
mov eax, dword [esp + 0x34]
inc ebx
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov dword [esp + edx*4 + 0xc0], ecx
inc edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], ebx
cmp edx, eax
jl 0x4f1b30
xor edi, edi
mov ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], edi
test eax, eax
jle 0x4f1e26
mov edx, dword [esp + 0x80]
lea eax, [esp + 0xc0]
xor ebx, ebx
mov ebp, 1
sub eax, 4
mov dword [esp + 0x24], ebp
mov dword [esp + 0x44], eax
lea ecx, [ecx]
mov eax, dword [esp + 0x3c]
cmp dword [esp + ebx + 0x64], eax
jle 0x4f1d2d
mov edi, edi
cmp ebp, ecx
jl 0x4f1c63
lea ecx, [ebp + 1]
mov dword [esp + 0x14], ecx
cmp ecx, 5
jg 0x4f1f27
mov dword [esp + ebx + 0x68], 0
mov dword [esp + ebx + 0xc4], edx
mov esi, dword [esp + ebx + 0xc0]
mov ecx, dword [esp + 0x8c]
lea edi, [esi - 1]
movzx eax, word [ecx + edi*2]
test ax, ax
jne 0x4f1c98
lea eax, [esp + 0x80]
push edi
push eax
call fcn.004f88c0
mov ecx, dword [esp + 0x94]
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
sub dword [esp + ebx + 0x64], eax
cmp dword [esp + 0x38], 0
jne 0x4f1d05
cmp esi, dword [esp + 0x80]
jge 0x4f1d03
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x4f1ccf
lea eax, [esp + 0x80]
push esi
push eax
call fcn.004f88c0
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x4f1d05
push 0x5cd89c
push 0x12165
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004e9df0
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x10], ebp
jmp 0x4f28d3
xor eax, eax
add dword [esp + ebx + 0x68], eax
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x14]
mov dword [esp + ebx + 0xc0], edi
cmp dword [esp + ebx + 0x64], eax
jg 0x4f1c40
mov edi, dword [esp + 0x2c]
cmp dword [esp + ebx + 0xc0], edx
jge 0x4f1de3
mov edi, dword [esp + 0x8c]
mov ebp, dword [esp + 0x38]
jmp 0x4f1d50
mov esi, dword [esp + ebx + 0xc0]
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x4f1d7b
lea eax, [esp + 0x80]
push esi
push eax
call fcn.004f88c0
mov edx, dword [esp + 0x88]
add esp, 8
movzx eax, ax
movzx ecx, ax
mov eax, dword [esp + ebx + 0x64]
add ecx, 2
add eax, ecx
cmp eax, dword [esp + 0x3c]
jg 0x4f1ddb
inc esi
mov dword [esp + ebx + 0x64], eax
mov dword [esp + ebx + 0xc0], esi
test ebp, ebp
jne 0x4f1dcf
cmp esi, edx
jge 0x4f1dcd
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x4f1dc5
lea eax, [esp + 0x80]
push esi
push eax
call fcn.004f88c0
mov edx, dword [esp + 0x88]
add esp, 8
movzx eax, ax
movzx ecx, ax
add ecx, 2
jmp 0x4f1dcf
xor ecx, ecx
sub dword [esp + ebx + 0x68], ecx
cmp esi, edx
jl 0x4f1d50
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + ebx + 0xc0]
cmp ecx, edx
jl 0x4f1df6
mov ecx, ebp
mov dword [esp + 0x14], ecx
jmp 0x4f1e11
test edi, edi
jle 0x4f1e03
mov eax, dword [esp + 0x44]
mov eax, dword [eax + ebx]
jmp 0x4f1e05
xor eax, eax
cmp ecx, eax
jle 0x4f1f53
mov ecx, dword [esp + 0x14]
inc edi
inc ebp
add ebx, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], ebp
cmp edi, ecx
jl 0x4f1c30
lea eax, [ecx - 1]
mov ecx, eax
mov dword [esp + 0x1c], eax
test ecx, ecx
jle 0x4f1fba
jmp 0x4f1e40
lea eax, [esp + 0xc0]
sub eax, 4
lea edx, [ecx*4]
mov ecx, dword [esp + 0x8c]
mov edi, dword [esp + edx + 0x64]
mov ebp, dword [esp + edx + 0x60]
mov esi, dword [eax + edx]
mov dword [esp + 0x2c], eax
dec esi
mov eax, esi
mov dword [esp + 0x4c], edx
sub eax, dword [esp + 0x38]
inc eax
cmp word [ecx + eax*2], 0
lea ebx, [ecx + eax*2]
jne 0x4f1e97
push eax
lea eax, [esp + 0x84]
push eax
call fcn.004f88c0
add esp, 8
mov edi, edi
mov ecx, dword [esp + 0x8c]
cmp word [ecx + esi*2], 0
jne 0x4f1eaf
lea eax, [esp + 0x80]
push esi
push eax
call fcn.004f88c0
add esp, 8
test edi, edi
je 0x4f1ef4
cmp dword [esp + 0x154], 0
jne 0x4f1f7f
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
dec ecx
sub eax, ecx
mov ecx, ebp
neg eax
sbb eax, eax
and eax, 2
sub ecx, eax
mov eax, dword [esp + 0x8c]
movzx eax, word [eax + esi*2]
sub ecx, eax
movzx eax, word [ebx]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x4f1f7f
movzx eax, word [ebx]
mov ecx, 0xfffffffe
mov edx, dword [esp + 0x4c]
add eax, 2
add edi, eax
sub ebx, 2
mov eax, dword [esp + 0x8c]
movzx eax, word [eax + esi*2]
sub ecx, eax
mov eax, dword [esp + 0x2c]
add ebp, ecx
mov dword [eax + edx], esi
dec esi
jns 0x4f1e90
jmp 0x4f1f87
push 0x5cd89c
push 0x121e2
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004e9df0
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x10], ebp
jmp 0x4f28d3
push 0x5cd89c
push 0x12203
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004e9df0
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x10], ebp
jmp 0x4f28d3
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
mov dword [esp + edx + 0x64], edi
mov dword [esp + edx + 0x60], ebp
cmp ecx, 1
jle 0x4f1f9e
mov eax, dword [eax + edx - 4]
jmp 0x4f1fa0
xor eax, eax
mov esi, dword [esp + 0x2c]
cmp dword [esi + edx], eax
jle 0x4f202f
dec ecx
mov dword [esp + 0x1c], ecx
test ecx, ecx
jg 0x4f1e40
mov eax, dword [esp + 0x54]
xor edi, edi
mov ebp, dword [esp + 0x14]
mov eax, dword [eax + 0x38]
movzx ebx, byte [eax]
mov dword [esp + 0x1c], ebx
test ebp, ebp
jle 0x4f2188
cmp edi, dword [esp + 0x34]
jge 0x4f20d7
mov ebx, dword [esp + edi*4 + 0x54]
mov dword [esp + edi*4 + 0xe0], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + edi*4 + 0x54], 0
mov esi, dword [ebx + 0x48]
test byte [esi + 0x1c], 4
mov ecx, dword [esi + 0x14]
je 0x4f206d
mov eax, dword [ecx + 0x1c]
cmp eax, dword [esi + 0x18]
jb 0x4f206d
cmp dword [ecx + 0x68], 0
je 0x4f2069
push esi
call fcn.00577790
add esp, 4
test eax, eax
je 0x4f205b
push esi
call fcn.005778b0
add esp, 4
mov dword [esp + 0x10], eax
mov edx, eax
jmp 0x4f209c
push 0x5cd89c
push 0x1222d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004e9df0
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x10], ebp
jmp 0x4f28d3
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x10]
jmp 0x4f209c
xor edx, edx
jmp 0x4f2098
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x10], edx
test edx, edx
jne 0x4f209c
mov eax, dword [ecx + 0x9c]
push esi
cmp eax, dword [ecx + 0xa8]
jbe 0x4f208e
call fcn.00520190
jmp 0x4f2093
call fcn.005214c0
mov edx, eax
add esp, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x148]
xor ecx, ecx
sub eax, dword [esp + 0x40]
inc dword [esp + 0x20]
cmp edi, eax
mov eax, dword [ebx + 0x48]
sete cl
mov dword [esp + 0x18], edx
inc ecx
movsx eax, word [eax + 0x1e]
cmp eax, ecx
jne 0x4f2331
test edx, edx
jne 0x4f28cf
mov ebx, dword [esp + 0x1c]
jmp 0x4f217f
cmp dword [esp + 0x154], 0
mov eax, 1
jne 0x4f20ea
mov eax, dword [esp + 0x30]
push 0
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x38]
call fcn.004eec20
mov edx, eax
add esp, 0x14
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], edx
test edx, edx
jne 0x4f28cf
mov esi, dword [esp + 0x24]
push ebx
push esi
call fcn.0058da00
mov ecx, dword [esp + 0x30]
add esp, 8
inc dword [esp + 0x20]
mov eax, dword [esp + 0x80]
mov dword [esp + edi*4 + 0xe0], esi
cmp byte [ecx + 0x11], 0
mov dword [esp + edi*4 + 0x12c], eax
je 0x4f2177
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x148]
push dword [eax + 4]
push 5
push dword [esi + 4]
push ecx
call fcn.005243c0
mov ebp, dword [esp + 0x2c]
add esp, 0x14
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x4f28d3
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x30], eax
inc edi
cmp edi, ebp
jl 0x4f1fd6
mov ebp, dword [esp + 0x20]
xor ecx, ecx
test ebp, ebp
jle 0x4f21d7
mov eax, dword [esp + ecx*4 + 0xe0]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x48]
mov dword [esp + ecx*4 + 0x114], edx
mov dword [esp + ecx*4 + 0xfc], edx
mov ax, word [eax + 0x1c]
mov word [esp + ecx*2 + 0xd4], ax
xor eax, eax
test ecx, ecx
jle 0x4f21d2
nop
cmp dword [esp + eax*4 + 0x114], edx
je 0x4f2365
inc eax
cmp eax, ecx
jl 0x4f21c0
inc ecx
cmp ecx, ebp
jl 0x4f2192
xor ebx, ebx
test ebp, ebp
jle 0x4f227c
xor edi, edi
lea ecx, [edi + 1]
cmp ebp, ecx
jle 0x4f2210
xor esi, esi
lea esp, [esp]
lea edx, [ecx*4]
mov eax, dword [esp + edx + 0xfc]
cmp eax, dword [esp + esi + 0xfc]
jae 0x4f220b
mov edi, ecx
mov esi, edx
inc ecx
cmp ecx, ebp
jl 0x4f21f0
mov ebp, dword [esp + edi*4 + 0xfc]
mov dword [esp + edi*4 + 0xfc], 0xffffffff
cmp edi, ebx
je 0x4f226f
jle 0x4f224c
mov eax, dword [esp + 0x28]
xor edx, edx
mov ecx, dword [eax + 0x30]
mov eax, dword [esp + edi*4 + 0xe0]
inc ecx
add ecx, edi
push ecx
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], dx
call fcn.00552300
add esp, 8
mov esi, dword [esp + ebx*4 + 0xe0]
mov ax, word [esp + edi*2 + 0xd4]
push ebp
mov ecx, dword [esi + 0x48]
push ecx
mov word [ecx + 0x1c], ax
call fcn.00552300
add esp, 8
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0x20]
inc ebx
cmp ebx, ebp
jl 0x4f21e1
test byte [esp + 0x1c], 8
mov ecx, dword [esp + ebp*4 + 0xdc]
mov edx, dword [esp + 0x50]
mov eax, dword [ecx + 4]
bswap eax
mov dword [edx], eax
jne 0x4f22bc
mov edx, dword [esp + 0x34]
cmp edx, ebp
je 0x4f22bc
lea eax, [esp + 0xe0]
cmp ebp, edx
jg 0x4f22ac
lea eax, [esp + 0x54]
mov eax, dword [eax + edx*4 - 4]
mov ecx, dword [ecx + 0x38]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x11], 0
je 0x4f250b
mov eax, dword [esp + 0xe0]
xor ebx, ebx
mov edx, eax
mov dword [esp + 0x50], 0
mov edi, eax
mov dword [esp + 0x14], edx
xor esi, esi
movzx ebp, word [eax + 0x18]
movzx eax, byte [eax + 0xc]
add ebp, eax
cmp dword [esp + 0x80], ebx
jle 0x4f2507
xor eax, eax
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x88]
mov ecx, dword [ecx + ebx*4]
mov dword [esp + 0x1c], ecx
cmp ebx, ebp
jne 0x4f23b7
xor edx, edx
cmp dword [esp + 0x38], edx
sete dl
inc esi
cmp esi, dword [esp + 0x20]
jge 0x4f2391
mov edi, dword [esp + esi*4 + 0xe0]
jmp 0x4f2395
test edx, edx
jne 0x4f28cf
push 0x5cd89c
push 0x1224e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004e9df0
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x10], ebp
jmp 0x4f28d3
push 0x5cd89c
push 0x1227c
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004e9df0
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x10], ebp
jmp 0x4f28d3
mov edi, dword [esp + esi*4 + 0x54]
movzx eax, word [edi + 0x18]
movzx ecx, byte [edi + 0xc]
add eax, edx
add ecx, eax
add ebp, ecx
cmp ebx, ebp
je 0x4f2321
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
cmp ebx, dword [esp + eax + 0xc0]
jne 0x4f23e6
mov eax, dword [esp + 0x50]
inc eax
mov dword [esp + 0x50], eax
shl eax, 2
cmp dword [esp + 0x38], 0
mov dword [esp + 0x30], eax
mov edx, dword [esp + eax + 0xe0]
mov dword [esp + 0x14], edx
je 0x4f24f9
cmp esi, dword [esp + 0x20]
jge 0x4f2406
mov eax, dword [edx + 4]
cmp eax, dword [esp + esi*4 + 0x114]
jne 0x4f2406
cmp ecx, dword [edi + 0x38]
jb 0x4f2406
cmp ecx, dword [edi + 0x3c]
jb 0x4f24f5
cmp word [esp + 0x48], 0
jne 0x4f2435
lea eax, [esp + 0x18]
push eax
push dword [edx + 4]
mov eax, dword [ecx]
push 5
bswap eax
push eax
push dword [esp + 0x38]
call fcn.005243c0
mov eax, dword [esp + 0x2c]
add esp, 0x14
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x8c]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x4f245d
lea eax, [esp + 0x80]
push ebx
push eax
call fcn.004f88c0
mov edx, dword [esp + 0x1c]
add esp, 8
movzx eax, ax
cmp ax, word [edx + 0x10]
jbe 0x4f24e3
cmp dword [esp + 0x10], 0
jne 0x4f28cf
lea eax, [esp + 0xfc]
push eax
push dword [esp + 0x20]
mov eax, dword [edx + 0x50]
push edx
call eax
movzx eax, word [esp + 0x118]
add esp, 0xc
cmp eax, dword [esp + 0x108]
jae 0x4f24f1
mov ecx, dword [edi + 0x3c]
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jb 0x4f24ad
add eax, edx
cmp ecx, eax
jb 0x4f256c
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
movzx eax, word [esp + 0x112]
push dword [ecx + 4]
mov eax, dword [eax + edx - 4]
push 3
bswap eax
push eax
push dword [ecx + 0x34]
call fcn.005243c0
mov eax, dword [esp + 0x2c]
add esp, 0x14
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jmp 0x4f24e7
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4f28cf
jmp 0x4f24f5
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
inc ebx
cmp ebx, dword [esp + 0x80]
jl 0x4f2302
mov ebp, dword [esp + 0x20]
lea eax, [ebp - 1]
xor esi, esi
test eax, eax
jle 0x4f26bd
jmp 0x4f2520
mov eax, dword [esp + esi*4 + 0xc0]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
lea ecx, [ecx + eax*4]
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x14c]
add ebx, dword [esp + 0x7c]
movzx eax, word [edx + eax*2]
mov edi, dword [ecx]
movzx edx, bp
mov ebp, dword [esp + esi*4 + 0xe0]
add edx, eax
cmp byte [ebp + 8], 0
jne 0x4f2598
mov ecx, dword [ebp + 0x38]
mov eax, dword [edi]
mov dword [ecx + 8], eax
jmp 0x4f2648
push 0x5cd89c
push 0x1081a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004e9df0
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x10], ebp
jmp 0x4f28d3
cmp dword [esp + 0x38], 0
je 0x4f262c
lea eax, [esp + 0x114]
push eax
push dword [ecx - 4]
mov eax, dword [ebp + 0x50]
push ebp
call eax
mov edx, dword [esp + 0x124]
mov edi, ebx
mov ecx, dword [esp + 0x120]
add esp, 0xc
add ebx, 4
mov dword [esp + 0xd8], edx
test edx, edx
ja 0x4f261a
jb 0x4f25dc
cmp ecx, 0x7f
ja 0x4f25ed
mov eax, 1
and cl, 0x7f
mov byte [ebx], cl
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4f2648
test edx, edx
ja 0x4f261a
jb 0x4f25fb
cmp ecx, 0x3fff
ja 0x4f261a
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [ebx + 1], cl
or al, 0x80
shr edx, 7
mov byte [ebx], al
mov eax, 2
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4f2648
push edx
push ecx
push ebx
call fcn.00524b30
add esp, 0xc
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4f2648
sub edi, 4
cmp eax, 4
jne 0x4f2648
mov eax, dword [esp + 0x144]
push edi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
add dword [esp + 0x7c], edx
xor eax, eax
cmp dword [esp + 0xa8], esi
jg 0x4f2666
cmp eax, 6
jge 0x4f2666
inc eax
cmp dword [esp + eax*4 + 0xa8], esi
jle 0x4f2657
mov ecx, dword [esp + eax*4 + 0x90]
cmp ecx, edi
jb 0x4f267c
lea eax, [edx + edi]
cmp ecx, eax
jb 0x4f2718
lea eax, [esp + 0x18]
push eax
push dword [ebp + 4]
mov eax, dword [esp + 0x48]
push ebx
push edx
push edi
add eax, esi
push eax
push dword [esp + 0x15c]
call fcn.00516770
mov ebp, dword [esp + 0x34]
add esp, 0x1c
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x4f28d3
mov ebp, dword [esp + 0x20]
inc esi
lea eax, [ebp - 1]
cmp esi, eax
jl 0x4f2520
mov esi, 1
sub esi, ebp
cmp esi, ebp
jge 0x4f27cd
lea esp, [esp]
mov eax, esi
cdq
mov ecx, eax
lea eax, [esp + 0xf4]
xor ecx, edx
sub ecx, edx
add eax, ecx
mov dword [esp + 0x44], eax
cmp byte [eax], 0
jne 0x4f27c4
test esi, esi
jns 0x4f2707
mov eax, dword [esp + ecx*4 + 0x128]
cmp eax, dword [esp + ecx*4 + 0xbc]
jl 0x4f27c4
test ecx, ecx
jne 0x4f2744
mov edi, dword [esp + 0xc0]
xor eax, eax
xor edx, edx
jmp 0x4f277c
push 0x5cd89c
push 0x12319
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004e9df0
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x10], ebp
jmp 0x4f28d3
cmp ecx, dword [esp + 0x34]
jge 0x4f275c
xor eax, eax
cmp dword [esp + 0x38], eax
sete al
add eax, dword [esp + ecx*4 + 0x128]
jmp 0x4f2763
mov eax, dword [esp + 0x80]
mov edi, dword [esp + ecx*4 + 0xc0]
xor edx, edx
cmp dword [esp + 0x38], edx
sete dl
add edx, dword [esp + ecx*4 + 0xbc]
sub edi, edx
lea ebx, [ecx*4]
mov ebp, dword [esp + ebx + 0xe0]
lea ecx, [esp + 0x80]
push ecx
push edi
push edx
push eax
push ebp
call fcn.004fc070
add esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4f28cf
mov eax, dword [esp + 0x44]
mov byte [eax], 1
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + ebx + 0x64]
mov dword [ebp + 0x14], eax
mov ebp, dword [esp + 0x20]
inc esi
cmp esi, ebp
jl 0x4f26d0
cmp dword [esp + 0x150], 0
je 0x4f2833
mov esi, dword [esp + 0x144]
cmp word [esi + 0x18], 0
jne 0x4f2833
mov ebx, dword [esp + 0xe0]
movzx eax, byte [esi + 9]
cmp eax, dword [ebx + 0x14]
jg 0x4f2833
push 0xffffffffffffffff
push ebx
call fcn.004fb0a0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push esi
push ebx
call fcn.004fa3c0
mov edx, dword [esp + 0x2c]
add esp, 0x14
mov dword [esp + 0x10], edx
test edx, edx
jne 0x4f288a
push dword [ebx + 4]
push ebx
push dword [ebx + 0x34]
call fcn.00502780
mov edx, eax
add esp, 0xc
mov dword [esp + 0x10], edx
jmp 0x4f288a
mov ecx, dword [esp + 0x28]
cmp byte [ecx + 0x11], 0
je 0x4f2886
cmp word [esp + 0x48], 0
jne 0x4f2886
xor esi, esi
test ebp, ebp
jle 0x4f2886
jmp 0x4f2850
mov eax, dword [esp + esi*4 + 0xe0]
lea edx, [esp + 0x18]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov eax, dword [eax + 8]
bswap eax
push eax
push ecx
call fcn.005243c0
mov ecx, dword [esp + 0x3c]
inc esi
add esp, 0x14
cmp esi, ebp
jl 0x4f2850
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], edx
jmp 0x4f288a
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
mov esi, ebp
cmp ebp, ebx
jge 0x4f28cf
mov eax, dword [esp + esi*4 + 0x54]
test edx, edx
jne 0x4f28ad
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.00502780
add esp, 0xc
mov edx, eax
inc esi
cmp esi, ebx
jl 0x4f2894
mov dword [esp + 0x10], edx
jmp 0x4f28cf
lea eax, [esi*4 + 4]
push eax
lea eax, [esp + 0x58]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x88]
test ebx, ebx
je 0x4f2933
cmp dword [0x8f4e38], 0
je 0x4f2929
mov eax, dword [0x973bc0]
test eax, eax
je 0x4f28fa
push eax
call dword [0x8f4e88]
add esp, 4
push ebx
call dword [0x8f4e64]
sub dword [0x973b48], eax
dec dword [0x973b6c]
push ebx
call dword [0x8f4e5c]
mov eax, dword [0x973bc0]
add esp, 8
test eax, eax
je 0x4f2933
push eax
call dword [0x8f4e90]
jmp 0x4f2930
push ebx
call dword [0x8f4e5c]
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x34], ebx
jle 0x4f29a8
mov ebp, dword [esp + 0x34]
nop
mov edx, dword [esp + ebx*4 + 0x54]
test edx, edx
je 0x4f299f
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4f2996
mov ecx, dword [edx + 0x14]
dec dword [ecx + 0x80]
mov eax, dword [ecx + 0x90]
mov dword [edx + 0x10], eax
mov esi, dword [ecx + 0x40]
mov dword [ecx + 0x90], edx
push dword [edx + 4]
mov eax, dword [edx + 0x18]
push dword [ecx + 0xac]
mov edi, dword [esi]
dec eax
push dword [ecx + 0xa8]
push 0
push eax
call fcn.0042eb30
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4f299f
push edx
call fcn.00552450
add esp, 4
inc ebx
cmp ebx, ebp
jl 0x4f2940
mov ebp, dword [esp + 0x10]
xor ebx, ebx
cmp dword [esp + 0x20], ebx
jle 0x4f2a1f
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + ebx*4 + 0xe0]
test edx, edx
je 0x4f2a16
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4f2a0d
mov ecx, dword [edx + 0x14]
dec dword [ecx + 0x80]
mov eax, dword [ecx + 0x90]
mov dword [edx + 0x10], eax
mov esi, dword [ecx + 0x40]
mov dword [ecx + 0x90], edx
push dword [edx + 4]
mov eax, dword [edx + 0x18]
push dword [ecx + 0xac]
mov edi, dword [esi]
dec eax
push dword [ecx + 0xa8]
push 0
push eax
call fcn.0042eb30
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4f2a16
push edx
call fcn.00552450
add esp, 4
inc ebx
cmp ebx, ebp
jl 0x4f29b4
mov ebp, dword [esp + 0x10]
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x130
ret