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

Disassembly:
sub esp, 0x13c
mov eax, dword [0x58f140]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
mov ebx, dword [esp + 0x144]
lea eax, [esp + 0x84]
push ebp
push esi
mov esi, dword [esp + 0x154]
xor ebp, ebp
push 0x40
push ebp
push eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x148], ebp
mov byte [esp + 0x14c], 0
call fcn.005326d0
mov eax, dword [ebx + 0x34]
add esp, 0xc
mov dword [esp + 0x30], eax
test esi, esi
jne 0x49ace7
lea eax, [esi + 7]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0052df19
add esp, 0x13c
ret
movzx edx, word [ebx + 0x18]
movzx ecx, byte [ebx + 0xc]
push edi
lea esi, [ecx + edx]
cmp esi, 2
jae 0x49acfc
xor edi, edi
jmp 0x49ad2e
mov eax, dword [esp + 0x154]
test eax, eax
jne 0x49ad0b
xor edi, edi
jmp 0x49ad20
cmp eax, esi
jne 0x49ad1d
mov eax, dword [esp + 0x160]
lea edi, [eax - 2]
add edi, esi
jmp 0x49ad27
lea edi, [eax - 1]
mov eax, dword [esp + 0x160]
mov esi, 2
sub esi, eax
mov dword [esp + 0x44], edi
lea eax, [esi + 1]
sub edi, ecx
mov dword [esp + 0x40], eax
lea ecx, [edi + esi]
cmp ecx, edx
jne 0x49ad4b
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x49ad5f
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebx + 0x38]
mov dword [esp + 0x3c], ecx
mov ebx, dword [ecx]
bswap ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x30], ebx
nop dword [eax]
nop word [eax + eax]
lea edi, [esi*4]
test ebp, ebp
jne 0x49bfe8
push ebp
lea eax, [esp + 0xd4]
add eax, edi
push eax
push ebx
push dword [esp + 0x40]
call fcn.004af660
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x49bfe8
lea ebx, [esp + 0xd0]
mov eax, dword [ebx + edi]
cmp dword [eax + 0x14], ebp
jge 0x49ade3
push eax
call fcn.0049cb80
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x49aef3
mov eax, dword [ebx + edi]
mov ebx, dword [esp + 0x20]
add ebx, 4
movzx eax, word [eax + 0x18]
add ebx, eax
mov eax, esi
dec esi
mov dword [esp + 0x20], ebx
test eax, eax
je 0x49af0d
mov edi, dword [esp + 0x4c]
mov dl, byte [edi + 0xc]
test dl, dl
je 0x49ae4b
mov eax, dword [esp + 0x44]
movzx ecx, word [edi + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x49ae4b
mov eax, dword [edi + 0x24]
push eax
mov dword [esp + esi*4 + 0x74], eax
push edi
mov ebx, dword [eax]
mov eax, dword [edi + 0x4c]
bswap ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x38], ebx
call eax
movzx eax, ax
add esp, 8
mov dword [esp + esi*4 + 0xf0], eax
mov byte [edi + 0xc], 0
jmp 0x49ad80
mov ecx, dword [esp + 0x44]
mov ebp, edi
movzx eax, dl
sub ecx, eax
add ecx, esi
mov eax, dword [ebp + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebp + 0x1a]
movzx edi, cx
and edi, eax
add edi, dword [ebp + 0x38]
push edi
push ebp
mov dword [esp + esi*4 + 0x78], edi
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x4c]
call eax
mov edx, dword [esp + 0x3c]
add esp, 8
movzx ebx, ax
mov dword [esp + esi*4 + 0xf0], ebx
test byte [edx + 0x18], 0xc
je 0x49aec6
mov ecx, edi
sub ecx, dword [ebp + 0x38]
lea eax, [ebx + ecx]
cmp eax, dword [edx + 0x28]
jg 0x49aec6
mov eax, dword [esp + 0x64]
push ebx
add eax, ecx
push edi
push eax
call fcn.00532150
sub edi, dword [ebp + 0x38]
add esp, 0xc
add edi, dword [esp + 0x64]
mov dword [esp + esi*4 + 0x70], edi
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x24]
push eax
movzx eax, byte [ebp + 0xc]
sub ecx, eax
push ebx
add ecx, esi
push ecx
push ebp
call fcn.004a54e0
mov ebp, dword [esp + 0x34]
add esp, 0x10
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x1c], ebp
jmp 0x49ad80
push edi
lea eax, [esp + 0xd4]
push 0
push eax
call fcn.005326d0
add esp, 0xc
xor edi, edi
jmp 0x49b8a5
mov eax, dword [esp + 0x34]
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.004e8780
mov edi, eax
add esp, 8
mov dword [esp + 0x98], edi
test edi, edi
jne 0x49af40
lea ebp, [eax + 7]
jmp 0x49b8a5
mov ecx, dword [esp + 0xd0]
lea eax, [edi + esi*4]
mov dword [esp + 0x9c], eax
xor edx, edx
lea eax, [eax + esi*2]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x28], eax
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x58], eax
mov al, byte [ecx + 2]
mov byte [esp + 0x13], al
movzx eax, al
mov dword [esp + 0x5c], eax
mov dword [esp + 0x38], edx
cmp dword [esp + 0x40], edx
jle 0x49b1f1
mov ebx, dword [esp + 0x90]
nop dword [eax]
nop word [eax + eax]
mov edi, dword [esp + edx*4 + 0xd0]
mov ecx, dword [ecx + 0x38]
mov dword [esp + 0x48], edi
movzx eax, word [edi + 0x18]
mov ebp, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
mov dword [esp + 0x20], eax
add esi, ebp
movzx eax, word [edi + 0x1a]
mov edx, eax
mov dword [esp + 0x50], eax
mov al, byte [ebp]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], edx
mov dword [esp + 0x14], esi
cmp al, byte [ecx]
jne 0x49b1c7
movzx eax, byte [edi + 0xc]
add eax, dword [esp + 0x20]
add eax, eax
push eax
mov eax, dword [esp + 0xa0]
push 0
lea eax, [eax + ebx*2]
push eax
call fcn.005326d0
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x49b085
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x20], edx
jb 0x49b19d
test edx, edx
je 0x49b053
mov edi, dword [esp + 0x68]
nop dword [eax]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, di
movzx ecx, cx
and ecx, eax
mov eax, dword [esp + 0x98]
add ecx, ebp
mov dword [eax + ebx*4], ecx
inc ebx
sub edx, 1
jne 0x49b020
mov edi, dword [esp + 0x48]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x14], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x49b085
mov esi, dword [esp + 0x98]
lea ecx, [edi + 0x24]
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 0x49b064
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x90], ebx
movzx eax, word [edi + 0x12]
movzx ecx, word [edi + 0x18]
add eax, ebp
lea edx, [eax + ecx*2]
cmp esi, edx
jae 0x49b0ce
mov edi, dword [esp + 0x50]
nop word [eax + eax]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, di
movzx ecx, cx
and ecx, eax
mov eax, dword [esp + 0x98]
add ecx, ebp
mov dword [eax + ebx*4], ecx
inc ebx
cmp esi, edx
jb 0x49b0a0
mov edi, dword [esp + 0x48]
mov dword [esp + 0x90], ebx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
dec eax
mov dword [esp + edx*4 + 0x118], ebx
cmp edx, eax
jge 0x49b186
cmp byte [esp + 0x13], 0
jne 0x49b186
movzx eax, word [esp + edx*4 + 0xf0]
mov ecx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
push eax
push dword [esp + edx*4 + 0x74]
add esi, ebp
mov word [ecx + ebx*2], ax
add ebp, eax
push esi
mov dword [esp + 0x38], ebp
call fcn.00532150
mov ecx, dword [esp + 0x64]
add esp, 0xc
mov edx, dword [esp + 0x9c]
movzx eax, cx
add eax, esi
mov esi, dword [esp + 0x98]
mov dword [esi + ebx*4], eax
mov ax, word [edx + ebx*2]
sub ax, cx
mov word [edx + ebx*2], ax
cmp byte [edi + 8], 0
movzx ecx, ax
jne 0x49b15d
mov eax, dword [edi + 0x38]
mov ecx, dword [esi + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x49b17a
cmp ecx, 4
jae 0x49b17a
mov eax, dword [esp + 0x28]
mov byte [eax + ebp], 0
inc ebp
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x49b166
mov dword [esp + 0x2c], ebp
mov edx, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x90], ebx
inc edx
mov dword [esp + 0x38], edx
cmp edx, dword [esp + 0x40]
jge 0x49b1f1
mov ecx, dword [esp + 0xd0]
jmp 0x49afa0
push 0x5797bc
push 0x12ffc
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004849d0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x49b8a5
push 0x5797bc
push 0x12fe4
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004849d0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x49b8a5
mov eax, dword [esp + 0x58]
xor edx, edx
movzx ebp, ax
xor ebx, ebx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], ebx
mov eax, dword [eax + 0x28]
add eax, 0xfffffff4
add ebp, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], ebp
test eax, eax
jle 0x49b2ee
mov ecx, eax
lea esi, [esp + 0x118]
lea edi, [esp + 0x104]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + ebx*4 + 0xd0]
mov ecx, dword [esp + ebx*4 + 0x118]
mov eax, dword [esi + 0x3c]
mov dword [esp + edx*4 + 0xa0], eax
mov dword [esp + edx*4 + 0xb8], ecx
test edx, edx
je 0x49b263
cmp ecx, dword [esp + edx*4 + 0xb4]
jne 0x49b263
dec edx
mov dword [esp + 0x14], edx
cmp byte [esp + 0x13], 0
jne 0x49b287
mov eax, dword [esp + 0x4c]
inc edx
mov dword [esp + 0x14], edx
mov eax, dword [eax + 0x3c]
mov dword [esp + edx*4 + 0xa0], eax
lea eax, [ecx + 1]
mov dword [esp + edx*4 + 0xb8], eax
mov edi, ebp
lea eax, [esp + 0xf0]
sub edi, dword [esi + 0x14]
lea eax, [eax + ebx*4]
xor ebp, ebp
mov dword [esp + 0x50], eax
cmp byte [esi + 0xc], 0
mov dword [eax], edi
jbe 0x49b2d4
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 0x49b2a7
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov dword [eax], edi
mov eax, dword [esp + 0x40]
inc ebx
mov ebp, dword [esp + 0x38]
inc edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edx
cmp ebx, eax
jl 0x49b232
mov ebx, dword [esp + 0x90]
mov ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], 0
test eax, eax
jle 0x49b502
mov eax, 1
xor edi, edi
mov dword [esp + 0x2c], eax
nop word [eax + eax]
mov ebp, dword [esp + edi + 0xf0]
mov edx, dword [esp + 0x38]
cmp ebp, edx
jle 0x49b411
mov esi, dword [esp + 0x90]
lea edx, [esp + 0xf4]
add edx, edi
cmp eax, ecx
jl 0x49b362
inc eax
mov dword [esp + 0x14], eax
cmp eax, 5
jg 0x49b61c
mov dword [edx], 0
mov dword [esp + edi + 0x108], esi
mov ebx, dword [esp + edi + 0x104]
mov edx, dword [esp + 0x9c]
lea ecx, [ebx - 1]
movzx eax, word [edx + ecx*2]
test ax, ax
jne 0x49b397
push ecx
lea eax, [esp + 0x94]
push eax
call fcn.004a2290
mov edx, dword [esp + 0xa4]
add esp, 8
movzx eax, ax
mov ebp, dword [esp + edi + 0xf0]
movzx ecx, ax
add ecx, 2
sub ebp, ecx
cmp byte [esp + 0x13], 0
mov dword [esp + edi + 0xf0], ebp
jne 0x49b3df
cmp ebx, esi
jge 0x49b3dd
movzx eax, word [edx + ebx*2]
test ax, ax
jne 0x49b3d5
lea eax, [esp + 0x90]
push ebx
push eax
call fcn.004a2290
add esp, 8
movzx eax, ax
movzx ecx, ax
add ecx, 2
jmp 0x49b3df
xor ecx, ecx
lea edx, [esp + 0xf4]
add edx, edi
lea eax, [ebx - 1]
mov dword [esp + edi + 0x104], eax
mov eax, dword [esp + 0x2c]
add dword [edx], ecx
mov ecx, dword [esp + 0x14]
cmp ebp, dword [esp + 0x38]
jg 0x49b343
mov ebx, dword [esp + 0x90]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + edi + 0x104]
cmp esi, ebx
jge 0x49b4ba
mov ecx, dword [esp + 0x9c]
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x49b44f
lea eax, [esp + 0x90]
push esi
push eax
call fcn.004a2290
mov ecx, dword [esp + 0xa4]
add esp, 8
mov edx, dword [esp + 0x38]
movzx eax, ax
movzx eax, ax
add eax, 2
add ebp, eax
cmp ebp, edx
jg 0x49b4b6
inc esi
mov dword [esp + edi + 0xf0], ebp
cmp byte [esp + 0x13], 0
mov dword [esp + edi + 0x104], esi
jne 0x49b4a7
cmp esi, ebx
jge 0x49b4a5
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x49b49d
lea eax, [esp + 0x90]
push esi
push eax
call fcn.004a2290
mov ecx, dword [esp + 0xa4]
add esp, 8
mov edx, dword [esp + 0x38]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x49b4a7
xor eax, eax
sub dword [esp + edi + 0xf4], eax
cmp esi, ebx
jl 0x49b427
cmp esi, ebx
jl 0x49b4ca
mov eax, dword [esp + 0x2c]
mov ecx, eax
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
jmp 0x49b4ed
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x49b4db
mov eax, dword [esp + edi + 0x100]
jmp 0x49b4dd
xor eax, eax
cmp esi, eax
jle 0x49b646
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
inc edx
inc eax
add edi, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], eax
cmp edx, ecx
jl 0x49b320
lea eax, [ecx - 1]
mov ecx, 1
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x49b6fe
lea ecx, [esp + 0xf0]
sub ecx, 4
lea edx, [esp + 0x104]
sub edx, 4
mov dword [esp + 0x48], ecx
lea edi, [esp + 0xf0]
mov dword [esp + 0x20], edx
nop dword [eax]
mov esi, dword [edx + eax*4]
mov ecx, dword [ecx + eax*4]
dec esi
mov ebp, dword [edi + eax*4]
mov eax, esi
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], ecx
inc eax
mov ecx, dword [esp + 0x9c]
cmp word [ecx + eax*2], 0
lea edi, [ecx + eax*2]
mov dword [esp + 0x28], edi
jne 0x49b57b
push eax
lea eax, [esp + 0x94]
push eax
call fcn.004a2290
add esp, 8
mov ebx, dword [esp + 0x2c]
nop
mov eax, dword [esp + 0x9c]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x49b5a4
lea eax, [esp + 0x90]
push esi
push eax
call fcn.004a2290
add esp, 8
movzx eax, ax
movzx edi, word [edi]
movzx edx, ax
mov dword [esp + 0x50], edx
test ebp, ebp
je 0x49b5e9
cmp dword [esp + 0x160], 0
jne 0x49b670
mov ecx, dword [esp + 0x14]
mov eax, 2
dec ecx
cmp ebx, ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [esp + 0x1c]
sub ecx, eax
lea eax, [ebp + 2]
sub ecx, edx
add eax, edi
cmp eax, ecx
jg 0x49b670
mov ecx, dword [esp + 0x1c]
add edi, 2
mov eax, 0xfffffffe
add ebp, edi
mov edi, dword [esp + 0x28]
sub eax, edx
mov edx, dword [esp + 0x20]
add ecx, eax
sub edi, 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], edi
mov dword [edx + ebx*4], esi
sub esi, 1
jns 0x49b580
jmp 0x49b678
push 0x5797bc
push 0x13061
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004849d0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x49b8a5
push 0x5797bc
push 0x13082
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004849d0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x49b8a5
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
lea ebx, [esp + 0xf0]
mov esi, dword [esp + 0x48]
mov dword [ebx + eax*4], ebp
mov ebx, dword [esp + 0x90]
mov dword [esi + eax*4], ecx
cmp eax, 1
jle 0x49b69f
mov ecx, dword [edx + eax*4 - 4]
jmp 0x49b6a1
xor ecx, ecx
cmp dword [edx + eax*4], ecx
jle 0x49b6d4
dec eax
lea edi, [esp + 0xf0]
mov dword [esp + 0x2c], eax
mov ecx, esi
test eax, eax
jg 0x49b540
mov eax, dword [esp + 0xd0]
xor esi, esi
mov eax, dword [eax + 0x38]
lea ecx, [esi + 1]
movzx eax, byte [eax]
mov dword [esp + 0x2c], eax
jmp 0x49b720
push 0x5797bc
push 0x130ae
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004849d0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x49b8a5
mov eax, dword [esp + 0xd0]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x14], esi
jle 0x49b90a
nop dword [eax + eax]
cmp esi, dword [esp + 0x40]
jge 0x49b7d4
mov edi, dword [esp + esi*4 + 0xd0]
mov dword [esp + esi*4 + 0xdc], edi
mov dword [esp + esi*4 + 0xd0], 0
mov dword [esp + 0x28], edi
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x49b76d
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x49b76d
cmp dword [edx + 0x68], 0
je 0x49b769
push ecx
call fcn.00515cf0
jmp 0x49b793
xor ebp, ebp
jmp 0x49b798
mov ebp, dword [edx + 0x2c]
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x49b79c
mov eax, dword [edx + 0x9c]
push ecx
cmp eax, dword [edx + 0xa8]
jbe 0x49b78e
call fcn.004bccd0
jmp 0x49b793
call fcn.004bdfb0
add esp, 4
mov ebp, eax
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x154]
xor ecx, ecx
sub eax, dword [esp + 0x44]
inc dword [esp + 0x18]
cmp esi, eax
mov eax, dword [edi + 0x48]
sete cl
mov dword [esp + 0x24], ebp
inc ecx
cmp dword [eax + 0x20], ecx
je 0x49b7c7
test ebp, ebp
je 0x49b87e
test ebp, ebp
jne 0x49b8a1
jmp 0x49b869
cmp dword [esp + 0x160], 0
mov eax, dword [esp + 0x54]
push 0
cmovne eax, ecx
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x44]
call fcn.00497bf0
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x49b8a1
push dword [esp + 0x2c]
mov edi, dword [esp + 0x2c]
push edi
call fcn.0052dce0
mov ecx, dword [esp + 0x3c]
add esp, 8
inc dword [esp + 0x18]
mov dword [esp + esi*4 + 0xdc], edi
mov dword [esp + esi*4 + 0x118], ebx
cmp byte [ecx + 0x11], 0
je 0x49b861
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x50]
push dword [eax + 4]
push 5
push dword [edi + 4]
push ecx
call fcn.004c0f50
mov ebp, dword [esp + 0x38]
add esp, 0x14
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x49b8a1
mov eax, dword [esp + 0x30]
mov dword [esp + 0x54], eax
inc esi
cmp esi, dword [esp + 0x14]
jge 0x49b90a
mov ecx, 1
jmp 0x49b720
push 0x5797bc
push 0x130cf
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004849d0
add esp, 0x14
mov ebp, 0xb
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x98]
test ebx, ebx
je 0x49bffb
cmp dword [0x58d428], 0
je 0x49bff1
mov eax, dword [0x590a50]
test eax, eax
je 0x49b8d4
push eax
call dword [0x58d478]
add esp, 4
push ebx
call dword [0x58d454]
sub dword [0x5909e8], eax
dec dword [0x590a0c]
push ebx
call dword [0x58d44c]
mov eax, dword [0x590a50]
add esp, 8
test eax, eax
je 0x49bffb
push eax
call dword [0x58d480]
jmp 0x49bff8
mov edi, dword [esp + 0x18]
xor ecx, ecx
test edi, edi
jle 0x49b92a
mov eax, dword [esp + ecx*4 + 0xdc]
mov eax, dword [eax + 4]
mov dword [esp + ecx*4 + 0x12c], eax
inc ecx
cmp ecx, edi
jl 0x49b914
lea ebx, [edi - 1]
xor ebp, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebp
test ebx, ebx
jle 0x49ba1c
mov eax, ebx
lea esi, [ebp + 1]
mov ebx, ebp
cmp esi, edi
jge 0x49ba0f
nop
mov eax, dword [esp + esi*4 + 0xdc]
mov ecx, esi
mov edx, dword [esp + ebx*4 + 0xdc]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 4]
cmovae ecx, ebx
inc esi
mov ebx, ecx
cmp esi, edi
jl 0x49b950
mov dword [esp + 0x28], ebx
cmp ebx, ebp
je 0x49ba0b
mov edi, dword [esp + 0x34]
xor edx, edx
mov eax, dword [0x58d60c]
mov ecx, dword [esp + ebx*4 + 0xdc]
mov esi, dword [esp + ebp*4 + 0xdc]
div dword [edi + 0x24]
mov ebx, dword [ecx + 4]
mov edx, dword [esi + 0x48]
inc eax
mov ecx, dword [ecx + 0x48]
mov ebp, dword [esi + 4]
push eax
movzx esi, word [edx + 0x1c]
movzx edi, word [ecx + 0x1c]
push edx
mov word [edx + 0x1c], di
call fcn.004ec020
mov eax, dword [esp + 0x30]
push ebp
mov eax, dword [esp + eax*4 + 0xe8]
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], si
call fcn.004ec020
mov esi, dword [esp + 0x40]
push ebx
mov eax, dword [esp + esi*4 + 0xf0]
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], di
call fcn.004ec020
mov eax, dword [esp + esi*4 + 0xf4]
add esp, 0x18
mov edi, dword [esp + 0x18]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x28]
mov eax, dword [esp + eax*4 + 0xdc]
mov dword [eax + 4], ebp
mov ebp, esi
mov eax, dword [esp + 0x20]
inc ebp
mov dword [esp + 0x30], ebp
cmp ebp, eax
jl 0x49b941
test byte [esp + 0x2c], 8
mov eax, dword [esp + edi*4 + 0xd8]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x49ba65
mov ecx, dword [esp + 0x40]
cmp ecx, edi
je 0x49ba65
lea edx, [esp + 0xd0]
lea eax, [esp + 0xdc]
cmovge eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + edi*4 + 0xd8]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x90]
cmp byte [eax + 0x11], 0
je 0x49bc77
mov edi, dword [esp + 0xdc]
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], ebp
movzx edx, word [edi + 0x18]
movzx eax, byte [edi + 0xc]
add edx, eax
mov dword [esp + 0x20], edx
test esi, esi
jle 0x49bc73
mov eax, edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x98]
mov ecx, dword [ecx + ebp*4]
mov dword [esp + 0x48], ecx
cmp ebp, edx
jne 0x49bb09
mov esi, dword [esp + 0x18]
xor eax, eax
cmp byte [esp + 0x13], al
sete al
mov dword [esp + 0x5c], eax
inc ebx
cmp ebx, esi
jge 0x49bae2
mov edi, dword [esp + ebx*4 + 0xdc]
jmp 0x49bae9
mov edi, dword [esp + ebx*4 + 0xd0]
movzx eax, word [edi + 0x18]
add eax, dword [esp + 0x5c]
movzx ecx, byte [edi + 0xc]
add ecx, eax
add edx, ecx
cmp ebp, edx
je 0x49bad4
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov esi, dword [esp + 0x28]
cmp ebp, dword [esp + esi + 0x104]
mov esi, dword [esp + 0x90]
jne 0x49bb43
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
shl eax, 2
cmp byte [esp + 0x13], 0
mov dword [esp + 0x28], eax
mov eax, dword [esp + eax + 0xdc]
mov dword [esp + 0x14], eax
je 0x49bc66
cmp ebx, dword [esp + 0x18]
jge 0x49bb67
mov eax, dword [eax + 4]
cmp eax, dword [esp + ebx*4 + 0x12c]
mov eax, dword [esp + 0x14]
jne 0x49bb67
cmp ecx, dword [edi + 0x38]
jb 0x49bb67
cmp ecx, dword [edi + 0x3c]
jb 0x49bc66
cmp word [esp + 0x58], 0
jne 0x49bb94
lea edx, [esp + 0x24]
push edx
push dword [eax + 4]
mov eax, dword [ecx]
push 5
bswap eax
push eax
push dword [esp + 0x44]
call fcn.004c0f50
mov ebp, dword [esp + 0x38]
add esp, 0x14
mov dword [esp + 0x1c], ebp
jmp 0x49bb98
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x9c]
movzx ecx, word [ecx + eax*2]
test cx, cx
jne 0x49bbc0
push eax
lea eax, [esp + 0x94]
push eax
call fcn.004a2290
add esp, 8
movzx ecx, ax
mov eax, dword [esp + 0x14]
cmp cx, word [eax + 0x10]
jbe 0x49bc50
test ebp, ebp
jne 0x49b8a1
mov ebp, dword [esp + 0x48]
lea ecx, [esp + 0x78]
push ecx
push ebp
push eax
mov eax, dword [eax + 0x50]
call eax
movzx eax, word [esp + 0x94]
add esp, 0xc
cmp eax, dword [esp + 0x84]
jae 0x49bc5a
mov ecx, dword [edi + 0x3c]
cmp ebp, ecx
jae 0x49bc1c
add eax, ebp
cmp eax, ecx
jbe 0x49bc1c
push 0x1159f
call fcn.004d41f0
mov ebp, eax
add esp, 4
mov dword [esp + 0x24], ebp
jmp 0x49bc48
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
movzx eax, word [esp + 0x8e]
push dword [ecx + 4]
mov eax, dword [eax + ebp - 4]
push 3
bswap eax
push eax
push dword [ecx + 0x34]
call fcn.004c0f50
mov ebp, dword [esp + 0x38]
add esp, 0x14
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x49b8a1
jmp 0x49bc5e
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
inc ebp
mov dword [esp + 0x30], ebp
cmp ebp, esi
jl 0x49bab1
mov edi, dword [esp + 0x18]
xor ebx, ebx
lea eax, [edi - 1]
mov dword [esp + 0x3c], ebx
test eax, eax
jle 0x49be18
mov eax, dword [esp + 0x58]
movzx ebp, ax
mov dword [esp + 0x50], ebp
nop dword [eax]
nop word [eax + eax]
mov edi, dword [esp + ebx*4 + 0x104]
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + ebx*4 + 0xdc]
mov esi, dword [esp + 0x90]
mov dword [esp + 0x5c], ecx
mov ebx, dword [eax + edi*4]
mov eax, dword [esp + 0x9c]
movzx eax, word [eax + edi*2]
lea edx, [eax + ebp]
mov ebp, dword [esp + 0x64]
add ebp, dword [esp + 0x60]
cmp byte [ecx + 8], 0
jne 0x49bcec
mov ecx, dword [ecx + 0x38]
mov eax, dword [ebx]
mov dword [ecx + 8], eax
jmp 0x49bd96
cmp byte [esp + 0x13], 0
je 0x49bd7d
lea eax, [esp + 0x78]
dec edi
push eax
mov eax, dword [esp + 0x9c]
push dword [eax + edi*4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [esp + 0x88]
mov ebx, ebp
mov ecx, dword [esp + 0x84]
add esp, 0xc
add ebp, 4
test edx, edx
ja 0x49bd6b
jb 0x49bd2e
cmp ecx, 0x7f
ja 0x49bd40
mov eax, 1
and cl, 0x7f
mov byte [ebp], cl
xor ebp, ebp
lea edx, [eax + 4]
jmp 0x49bd96
test edx, edx
ja 0x49bd6b
jb 0x49bd4e
cmp ecx, 0x3fff
ja 0x49bd6b
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [ebp + 1], cl
or al, 0x80
mov byte [ebp], al
mov eax, 2
xor ebp, ebp
lea edx, [eax + 4]
jmp 0x49bd96
push edx
push ecx
push ebp
call fcn.004c1830
add esp, 0xc
xor ebp, ebp
lea edx, [eax + 4]
jmp 0x49bd96
sub ebx, 4
cmp eax, 4
jne 0x49bd96
mov eax, dword [esp + 0x4c]
push ebx
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
add dword [esp + 0x60], edx
xor eax, eax
nop dword [eax]
cmp dword [esp + eax*4 + 0xb8], edi
jg 0x49bdaf
inc eax
cmp eax, 6
jl 0x49bda0
mov ecx, dword [esp + eax*4 + 0xa0]
cmp ebx, ecx
jae 0x49bdc1
lea eax, [edx + ebx]
cmp eax, ecx
ja 0x49be09
mov eax, dword [esp + 0x5c]
push dword [eax + 4]
mov eax, dword [esp + 0x48]
push ebp
push edx
push ebx
mov ebx, dword [esp + 0x4c]
add eax, ebx
push eax
push dword [esp + 0x60]
call fcn.004b1050
mov edi, dword [esp + 0x30]
mov ebp, eax
add esp, 0x18
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x49b8a5
inc ebx
lea eax, [edi - 1]
mov dword [esp + 0x3c], ebx
cmp ebx, eax
jge 0x49be1c
mov ebp, dword [esp + 0x50]
jmp 0x49bca0
push 0x5797bc
push 0x13197
jmp 0x49b888
mov ebp, dword [esp + 0x1c]
mov ecx, 1
sub ecx, edi
mov dword [esp + 0x3c], ecx
cmp ecx, edi
jge 0x49bf04
nop
mov eax, ecx
cdq
mov edi, eax
xor edi, edx
sub edi, edx
cmp byte [esp + edi + 0x140], 0
jne 0x49bef3
lea ebx, [edi*4]
test ecx, ecx
jns 0x49be66
mov eax, dword [esp + ebx + 0x114]
cmp eax, dword [esp + ebx + 0x100]
jl 0x49bef3
test edi, edi
jne 0x49be77
mov edx, dword [esp + 0x104]
xor eax, eax
xor ecx, ecx
jmp 0x49beaa
cmp edi, dword [esp + 0x40]
jge 0x49be8f
xor eax, eax
cmp byte [esp + 0x13], al
sete al
add eax, dword [esp + ebx + 0x114]
jmp 0x49be91
mov eax, esi
mov edx, dword [esp + ebx + 0x104]
xor ecx, ecx
cmp byte [esp + 0x13], cl
sete cl
add ecx, dword [esp + ebx + 0x100]
sub edx, ecx
lea ebp, [esp + 0x90]
push ebp
push edx
push ecx
push eax
push dword [esp + ebx + 0xec]
call fcn.004a56c0
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x49b8a1
mov eax, dword [esp + ebx + 0xdc]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + ebx + 0xf0]
mov byte [esp + edi + 0x140], 1
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x3c], ecx
cmp ecx, edi
jl 0x49be30
cmp dword [esp + 0x15c], 0
je 0x49bf6c
mov ebx, dword [esp + 0x4c]
cmp word [ebx + 0x18], 0
jne 0x49bf6c
mov ecx, dword [esp + 0xdc]
movzx eax, byte [ebx + 9]
cmp eax, dword [ecx + 0x14]
jg 0x49bf6c
push 0xffffffffffffffff
push ecx
call fcn.004a4dd0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push ebx
push dword [esp + 0xec]
call fcn.004a3f40
mov ebp, dword [esp + 0x38]
add esp, 0x14
test ebp, ebp
jne 0x49bfb4
mov eax, dword [esp + 0xdc]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004ad8b0
add esp, 0xc
mov ebp, eax
jmp 0x49bfb4
mov ecx, dword [esp + 0x34]
cmp byte [ecx + 0x11], 0
je 0x49bfb4
cmp word [esp + 0x58], 0
jne 0x49bfb4
xor esi, esi
test edi, edi
jle 0x49bfb4
mov eax, dword [esp + esi*4 + 0xdc]
lea edx, [esp + 0x24]
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.004c0f50
mov ecx, dword [esp + 0x48]
inc esi
add esp, 0x14
cmp esi, edi
jl 0x49bf84
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x40]
mov esi, edi
cmp edi, ebx
jge 0x49b8a5
mov eax, dword [esp + esi*4 + 0xd0]
test ebp, ebp
jne 0x49bfde
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004ad8b0
add esp, 0xc
mov ebp, eax
inc esi
cmp esi, ebx
jl 0x49bfc2
jmp 0x49b8a5
lea eax, [edi + 4]
push eax
jmp 0x49aef4
push ebx
call dword [0x58d44c]
add esp, 4
mov ebx, dword [esp + 0x40]
xor esi, esi
test ebx, ebx
jle 0x49c020
mov eax, dword [esp + esi*4 + 0xd0]
test eax, eax
je 0x49c01b
push dword [eax + 0x48]
call fcn.004eb270
add esp, 4
inc esi
cmp esi, ebx
jl 0x49c005
xor esi, esi
test edi, edi
jle 0x49c04b
nop word [eax + eax]
mov eax, dword [esp + esi*4 + 0xdc]
test eax, eax
je 0x49c046
push dword [eax + 0x48]
call fcn.004eb270
add esp, 4
inc esi
cmp esi, edi
jl 0x49c030
mov ecx, dword [esp + 0x148]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052df19
add esp, 0x13c
ret