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

Disassembly:
sub esp, 0x138
push ebx
push ebp
push edi
xor ebx, ebx
mov dword [esp + 0x20], 0
push 0x40
lea eax, [esp + 0x8c]
mov dword [esp + 0x20], 0
xor ebp, ebp
mov dword [esp + 0x38], ebx
push ebx
push eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x84], ebx
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xd8], bl
call fcn.0042d620
mov edi, dword [esp + 0x154]
add esp, 0xc
mov eax, dword [edi + 0x34]
mov dword [esp + 0x38], eax
cmp dword [esp + 0x150], ebx
jne 0x4eacf5
pop edi
lea eax, [ebp + 7]
pop ebp
pop ebx
add esp, 0x138
ret
movzx ecx, word [edi + 0x18]
movzx edx, byte [edi + 0xc]
push esi
lea esi, [edx + ecx]
cmp esi, 2
jae 0x4ead0c
mov dword [esp + 0x44], ebx
jmp 0x4ead46
mov eax, dword [esp + 0x150]
test eax, eax
jne 0x4ead1d
mov dword [esp + 0x44], ebx
jmp 0x4ead38
cmp eax, esi
jne 0x4ead33
mov eax, dword [esp + 0x15c]
add esi, 0xfffffffe
add esi, eax
mov dword [esp + 0x44], esi
jmp 0x4ead3f
dec eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x15c]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
sub eax, edx
lea edx, [eax + esi]
cmp edx, ecx
jne 0x4ead67
movzx ecx, byte [edi + 9]
add ecx, 8
jmp 0x4ead7b
mov eax, dword [edi + 0x40]
mov ax, word [eax + edx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [edi + 0x38]
mov dword [esp + 0x40], ecx
mov ecx, dword [ecx]
bswap ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], ecx
nop
lea edi, [esi*4]
test ebp, ebp
jne 0x4ec05f
push ebp
lea eax, [esp + 0x60]
add eax, edi
push eax
push ecx
push dword [esp + 0x48]
call fcn.0051c260
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x4ec05f
lea ebp, [esp + 0x5c]
mov eax, dword [ebp + edi]
cmp dword [eax + 0x14], ebx
jge 0x4eadec
push eax
call fcn.004ecde0
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4eaf29
mov eax, dword [ebp + edi]
mov ebp, dword [esp + 0x24]
add ebp, 4
movzx eax, word [eax + 0x18]
add ebp, eax
mov eax, esi
dec esi
mov dword [esp + 0x24], ebp
test eax, eax
je 0x4eaf44
mov ebp, dword [esp + 0x14c]
mov dl, byte [ebp + 0xc]
test dl, dl
je 0x4eae62
mov ecx, dword [esp + 0x44]
movzx eax, word [ebp + 0x1c]
add ecx, esi
cmp ecx, eax
jne 0x4eae62
mov eax, dword [ebp + 0x24]
push eax
mov dword [esp + esi*4 + 0x104], eax
push ebp
mov ecx, dword [eax]
mov eax, dword [ebp + 0x4c]
bswap ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], ecx
call eax
mov ecx, dword [esp + 0x58]
add esp, 8
movzx eax, ax
mov byte [ebp + 0xc], bl
mov ebp, dword [esp + 0x14]
mov dword [esp + esi*4 + 0xe8], eax
jmp 0x4ead90
mov ecx, dword [esp + 0x44]
movzx eax, dl
sub ecx, eax
mov eax, dword [ebp + 0x40]
add ecx, esi
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 + 0x108], edi
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x4c]
call eax
mov edx, dword [esp + 0x44]
add esp, 8
movzx ebp, ax
mov dword [esp + esi*4 + 0xe8], ebp
test byte [edx + 0x18], 0xc
je 0x4eaef5
mov eax, dword [esp + 0x14c]
mov ecx, edi
sub ecx, dword [eax + 0x38]
lea eax, [ecx + ebp]
cmp eax, dword [edx + 0x28]
jg 0x4eaef5
mov eax, dword [esp + 0x154]
push ebp
add eax, ecx
push edi
push eax
call fcn.00430da0
mov eax, dword [esp + 0x158]
add esp, 0xc
sub edi, dword [eax + 0x38]
add edi, dword [esp + 0x154]
mov dword [esp + esi*4 + 0x100], edi
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x28]
push eax
push ebp
mov ebp, dword [esp + 0x154]
movzx eax, byte [ebp + 0xc]
sub ecx, eax
add ecx, esi
push ecx
push ebp
call fcn.004f6d40
mov ebp, dword [esp + 0x38]
add esp, 0x10
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x14], ebp
jmp 0x4ead90
push edi
lea eax, [esp + 0x60]
push 0
push eax
call fcn.0042d620
mov ebp, dword [esp + 0x20]
add esp, 0xc
xor ebx, ebx
jmp 0x4eb921
mov eax, dword [esp + 0x3c]
lea esi, [ebp + 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.005660f0
mov ebp, eax
add esp, 8
mov dword [esp + 0x94], ebp
test ebp, ebp
jne 0x4eaf79
lea ebp, [eax + 7]
xor ebx, ebx
jmp 0x4eb921
mov ecx, dword [esp + 0x5c]
lea eax, [esi*4]
add eax, ebp
mov dword [esp + 0x90], ecx
mov dword [esp + 0x98], eax
lea eax, [eax + esi*2]
mov dword [esp + 0x30], eax
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x54], eax
mov al, byte [ecx + 2]
mov byte [esp + 0x13], al
movzx eax, al
mov dword [esp + 0x88], eax
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esp + 0x1c], eax
jle 0x4eb1f3
mov ebp, dword [esp + 0x8c]
shl eax, 2
mov dword [esp + 0x84], eax
mov edi, dword [esp + eax + 0x5c]
mov dword [esp + 0x2c], edi
movzx eax, word [edi + 0x18]
mov edx, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
mov dword [esp + 0x24], eax
add esi, edx
movzx eax, word [edi + 0x1a]
mov ecx, eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x48], esi
mov ecx, dword [eax + 0x38]
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x4eb38c
movzx eax, byte [edi + 0xc]
add eax, dword [esp + 0x24]
add eax, eax
push eax
mov eax, dword [esp + 0x9c]
push 0
lea eax, [eax + ebp*2]
push eax
call fcn.0042d620
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x4eb0d9
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x24], edx
jb 0x4eb362
test edx, edx
je 0x4eb0a7
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0xfc]
nop dword [eax]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, bx
movzx ecx, cx
and ecx, eax
mov eax, dword [esp + 0x94]
add ecx, edi
mov dword [eax + ebp*4], ecx
inc ebp
sub edx, 1
jne 0x4eb070
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x48], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x4eb0d9
mov esi, dword [esp + 0x94]
lea ecx, [edi + 0x24]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [esi + ebp*4], eax
inc edx
movzx eax, byte [edi + 0xc]
inc ebp
cmp edx, eax
jl 0x4eb0b8
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x8c], ebp
movzx eax, word [edi + 0x12]
add eax, dword [esp + 0x34]
movzx ecx, word [edi + 0x18]
lea edx, [eax + ecx*2]
cmp esi, edx
jae 0x4eb129
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x80]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, bx
movzx ecx, cx
and ecx, eax
mov eax, dword [esp + 0x94]
add ecx, edi
mov dword [eax + ebp*4], ecx
inc ebp
cmp esi, edx
jb 0x4eb0f7
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x8c], ebp
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x18]
mov dword [esp + edx + 0x108], ebp
cmp eax, dword [esp + 0x4c]
jge 0x4eb1e4
cmp byte [esp + 0x13], 0
jne 0x4eb1e4
movzx eax, word [esp + edx + 0xe8]
mov ecx, dword [esp + 0x98]
mov esi, dword [esp + 0x30]
push eax
push dword [esp + edx + 0x104]
add esi, ebx
mov word [ecx + ebp*2], ax
add ebx, eax
push esi
mov dword [esp + 0x44], ebx
call fcn.00430da0
mov ecx, dword [esp + 0x60]
add esp, 0xc
mov edx, dword [esp + 0x98]
movzx eax, cx
add eax, esi
mov esi, dword [esp + 0x94]
mov dword [esi + ebp*4], eax
mov ax, word [edx + ebp*2]
sub ax, cx
mov word [edx + ebp*2], ax
cmp byte [edi + 8], 0
movzx ecx, ax
jne 0x4eb1bb
mov eax, dword [edi + 0x38]
mov ecx, dword [esi + ebp*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x4eb1d8
cmp ecx, 4
jae 0x4eb1d8
mov eax, dword [esp + 0x30]
mov byte [eax + ebx], 0
inc ebx
inc word [edx + ebp*2]
cmp word [edx + ebp*2], 4
jb 0x4eb1c4
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x18]
inc ebp
mov dword [esp + 0x8c], ebp
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jl 0x4eafd2
mov eax, dword [esp + 0x54]
xor edx, edx
movzx ebp, ax
xor ebx, ebx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], ebx
mov eax, dword [eax + 0x28]
add eax, 0xfffffff4
add ebp, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], ebp
test eax, eax
jle 0x4eb2fc
mov ecx, eax
lea esi, [esp + 0x108]
lea edi, [esp + 0xd4]
rep movsd dword es:[edi], dword [esi]
nop dword [eax]
nop dword [eax + eax]
mov esi, dword [esp + ebx*4 + 0x5c]
mov ecx, dword [esp + ebx*4 + 0x108]
mov eax, dword [esi + 0x3c]
mov dword [esp + edx*4 + 0x9c], eax
mov dword [esp + edx*4 + 0xb4], ecx
test edx, edx
je 0x4eb26e
cmp ecx, dword [esp + edx*4 + 0xb0]
jne 0x4eb26e
dec edx
mov dword [esp + 0x18], edx
cmp byte [esp + 0x13], 0
jne 0x4eb295
mov eax, dword [esp + 0x14c]
inc edx
mov dword [esp + 0x18], edx
mov eax, dword [eax + 0x3c]
mov dword [esp + edx*4 + 0x9c], eax
lea eax, [ecx + 1]
mov dword [esp + edx*4 + 0xb4], eax
mov edi, ebp
lea eax, [esp + 0xe8]
sub edi, dword [esi + 0x14]
lea eax, [eax + ebx*4]
xor ebp, ebp
mov dword [esp + 0x4c], eax
cmp byte [esi + 0xc], 0
mov dword [eax], edi
jbe 0x4eb2e2
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 0x4eb2b5
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
mov dword [eax], edi
mov eax, dword [esp + 0x1c]
inc ebx
mov ebp, dword [esp + 0x38]
inc edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], edx
cmp ebx, eax
jl 0x4eb240
mov ebx, dword [esp + 0x8c]
lea edx, [esp + 0xd4]
sub edx, 4
mov dword [esp + 0x24], 0
mov dword [esp + 0x48], edx
mov esi, eax
mov dword [esp + 0x2c], esi
test eax, eax
jle 0x4eb5f9
mov edx, 1
xor ecx, ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], ecx
nop word [eax + eax]
lea eax, [esp + 0xe8]
add eax, ecx
mov dword [esp + 0x30], eax
mov edi, dword [eax]
cmp edi, ebp
jle 0x4eb4a4
lea ebx, [esp + 0xec]
add ebx, ecx
jmp 0x4eb3c9
push 0x6214bc
push 0x13248
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d4a30
add esp, 0x14
mov ebp, 0xb
xor ebx, ebx
jmp 0x4eb921
push 0x6214bc
push 0x13230
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d4a30
add esp, 0x14
mov ebp, 0xb
xor ebx, ebx
jmp 0x4eb921
lea eax, [esp + 0xe8]
add eax, ecx
cmp edx, esi
jl 0x4eb3f3
inc edx
mov dword [esp + 0x2c], edx
cmp edx, 5
jg 0x4eb59f
mov ebp, dword [esp + 0x8c]
mov dword [ebx], 0
mov edi, dword [eax]
mov dword [esp + ecx + 0xd8], ebp
jmp 0x4eb3fa
mov ebp, dword [esp + 0x8c]
mov esi, dword [esp + ecx + 0xd4]
mov edx, dword [esp + 0x98]
lea ecx, [esi - 1]
mov dword [esp + 0x4c], ecx
movzx eax, word [edx + ecx*2]
test ax, ax
jne 0x4eb433
push ecx
lea eax, [esp + 0x90]
push eax
call fcn.004f3040
mov edx, dword [esp + 0xa0]
add esp, 8
movzx eax, ax
mov ecx, dword [esp + 0x30]
movzx eax, ax
add eax, 2
sub edi, eax
cmp byte [esp + 0x13], 0
mov dword [ecx], edi
jne 0x4eb473
cmp esi, ebp
jge 0x4eb471
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4eb469
lea eax, [esp + 0x8c]
push esi
push eax
call fcn.004f3040
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x4eb473
xor eax, eax
mov ecx, dword [esp + 0x18]
lea ebp, [esp + 0xd4]
add dword [ebx], eax
add ebp, ecx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov dword [ebp], eax
cmp edi, dword [esp + 0x38]
jg 0x4eb3c0
mov ebx, dword [esp + 0x8c]
jmp 0x4eb4ad
lea ebp, [esp + 0xd4]
add ebp, ecx
mov esi, dword [ebp]
cmp esi, ebx
jge 0x4eb552
mov edx, dword [esp + 0x98]
nop
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4eb4e4
lea eax, [esp + 0x8c]
push esi
push eax
call fcn.004f3040
mov edx, dword [esp + 0xa0]
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
add edi, eax
cmp edi, dword [esp + 0x38]
jg 0x4eb54a
mov ecx, dword [esp + 0x30]
inc esi
cmp byte [esp + 0x13], 0
mov dword [ebp], esi
mov dword [ecx], edi
jne 0x4eb535
cmp esi, ebx
jge 0x4eb533
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4eb52b
lea eax, [esp + 0x8c]
push esi
push eax
call fcn.004f3040
mov edx, dword [esp + 0xa0]
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x4eb535
xor eax, eax
mov ecx, dword [esp + 0x18]
sub dword [esp + ecx + 0xec], eax
cmp esi, ebx
jl 0x4eb4c0
jmp 0x4eb54e
mov ecx, dword [esp + 0x18]
cmp esi, ebx
jl 0x4eb562
mov edx, dword [esp + 0x34]
mov esi, edx
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x2c], esi
jmp 0x4eb581
mov ebp, dword [esp + 0x24]
test ebp, ebp
jle 0x4eb573
mov eax, dword [esp + 0x48]
mov eax, dword [ecx + eax]
jmp 0x4eb575
xor eax, eax
cmp esi, eax
jle 0x4eb5cf
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
inc ebp
add ecx, 4
inc edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], edx
cmp ebp, esi
jge 0x4eb5c9
mov ebp, dword [esp + 0x38]
jmp 0x4eb340
push 0x6214bc
push 0x132ad
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d4a30
add esp, 0x14
mov ebp, 0xb
xor ebx, ebx
jmp 0x4eb921
mov edx, dword [esp + 0x48]
jmp 0x4eb5fd
push 0x6214bc
push 0x132ce
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d4a30
add esp, 0x14
mov ebp, 0xb
xor ebx, ebx
jmp 0x4eb921
mov dword [esp + 0x48], edx
lea eax, [esi - 1]
mov ecx, eax
mov dword [esp + 0x34], eax
test ecx, ecx
jle 0x4eb744
nop
mov esi, dword [edx + ecx*4]
lea eax, [esp + 0xe8]
mov ebp, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov edi, dword [esp + 0x98]
dec esi
mov dword [esp + 0x84], eax
lea eax, [esp + ecx*4 + 0xe4]
mov dword [esp + 0x80], eax
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, esi
sub eax, dword [esp + 0x88]
inc eax
cmp word [edi + eax*2], 0
lea ecx, [edi + eax*2]
mov dword [esp + 0x24], ecx
jne 0x4eb66c
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004f3040
add esp, 8
mov ebx, dword [esp + 0x34]
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x4eb68d
lea eax, [esp + 0x8c]
push esi
push eax
call fcn.004f3040
add esp, 8
movzx eax, ax
movzx edi, ax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x4c], edi
movzx edx, word [eax]
test ebp, ebp
je 0x4eb6ce
cmp dword [esp + 0x15c], 0
jne 0x4eb700
mov ecx, dword [esp + 0x2c]
add edx, ebp
dec ecx
mov eax, 2
cmp ebx, ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [esp + 0x18]
sub ecx, eax
lea eax, [edx + 2]
sub ecx, edi
cmp eax, ecx
jg 0x4eb700
mov ecx, dword [esp + 0x18]
lea ebp, [edx + 2]
mov edx, dword [esp + 0x48]
mov eax, 0xfffffffe
sub dword [esp + 0x24], 2
sub eax, edi
mov edi, dword [esp + 0x98]
add ecx, eax
mov dword [esp + 0x18], ecx
mov dword [edx + ebx*4], esi
sub esi, 1
jns 0x4eb670
jmp 0x4eb708
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x84]
mov ebx, dword [esp + 0x8c]
mov dword [eax], ebp
mov eax, dword [esp + 0x80]
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, 1
jbe 0x4eb730
mov eax, dword [edx + ecx*4 - 4]
jmp 0x4eb732
xor eax, eax
cmp dword [edx + ecx*4], eax
jle 0x4eb7b2
dec ecx
mov dword [esp + 0x34], ecx
test ecx, ecx
jg 0x4eb610
mov eax, dword [esp + 0x5c]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x34], eax
lea eax, [esi + 1]
cmp dword [esp + 0x2c], esi
jle 0x4eb98a
mov ebp, dword [esp + 0x34]
nop word [eax + eax]
mov edi, dword [esp + 0x1c]
cmp esi, edi
jge 0x4eb84f
mov edi, dword [esp + esi*4 + 0x5c]
mov dword [esp + esi*4 + 0x68], edi
mov dword [esp + esi*4 + 0x5c], 0
mov dword [esp + 0x30], edi
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x4eb7e0
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x4eb7e0
cmp dword [edx + 0x68], 0
je 0x4eb7dc
push ecx
call fcn.00599840
jmp 0x4eb80a
push 0x6214bc
push 0x132fa
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d4a30
add esp, 0x14
mov ebp, 0xb
xor ebx, ebx
jmp 0x4eb921
xor edx, edx
jmp 0x4eb80f
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4eb7ef
mov edx, eax
jmp 0x4eb813
mov eax, dword [edx + 0x9c]
push ecx
cmp eax, dword [edx + 0xa8]
jbe 0x4eb805
call fcn.0052df00
jmp 0x4eb80a
call fcn.0052f3a0
add esp, 4
mov edx, eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x150]
xor ecx, ecx
sub eax, dword [esp + 0x44]
inc dword [esp + 0x20]
cmp esi, eax
mov eax, dword [edi + 0x48]
sete cl
mov dword [esp + 0x28], edx
inc ecx
cmp dword [eax + 0x20], ecx
je 0x4eb83e
test edx, edx
je 0x4eb8fa
test edx, edx
je 0x4eb8e5
mov ebp, dword [esp + 0x14]
jmp 0x4eb91d
cmp dword [esp + 0x15c], 0
mov ecx, dword [esp + 0x50]
push 0
cmovne ecx, eax
lea eax, [esp + 0x5c]
push ecx
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x4c]
call fcn.004e7750
mov edx, eax
add esp, 0x14
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], edx
test edx, edx
jne 0x4ec079
mov edi, dword [esp + 0x30]
push ebp
push edi
call fcn.005b47b0
mov ecx, dword [esp + 0x44]
add esp, 8
inc dword [esp + 0x20]
mov dword [esp + esi*4 + 0x68], edi
mov dword [esp + esi*4 + 0x108], ebx
cmp byte [ecx + 0x11], 0
je 0x4eb8dd
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x150]
push dword [eax + 4]
push 5
push dword [edi + 4]
push ecx
call fcn.00533a30
mov eax, dword [esp + 0x3c]
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4eb846
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x50], ecx
inc esi
cmp esi, dword [esp + 0x2c]
jge 0x4eb98a
mov eax, 1
jmp 0x4eb770
push 0x6214bc
push 0x1331b
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d4a30
add esp, 0x14
mov ebp, 0xb
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x94]
test esi, esi
je 0x4ec090
cmp dword [0x645f38], 0
je 0x4ec086
mov eax, dword [0x64de48]
test eax, eax
je 0x4eb954
push eax
call dword [0x645f88]
add esp, 4
push esi
call dword [0x645f64]
sub dword [0x64dde8], eax
dec dword [0x64de0c]
push esi
call dword [0x645f5c]
mov eax, dword [0x64de48]
add esp, 8
test eax, eax
je 0x4ec090
push eax
call dword [0x645f90]
jmp 0x4ec08d
mov edx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
jle 0x4eb9b3
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [esp + ecx*4 + 0x68]
mov eax, dword [eax + 4]
mov dword [esp + ecx*4 + 0x134], eax
inc ecx
cmp ecx, edx
jl 0x4eb9a0
lea ebx, [edx - 1]
xor ebp, ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebp
test ebx, ebx
jle 0x4ebab1
mov eax, ebx
nop word [eax + eax]
lea edi, [ebp + 1]
mov ebx, ebp
mov dword [esp + 0x88], edi
mov esi, edi
cmp edi, edx
jge 0x4ebaa3
mov ebp, dword [esp + 0x20]
nop word [eax + eax]
mov eax, dword [esp + esi*4 + 0x68]
mov ecx, esi
mov edx, dword [esp + ebx*4 + 0x68]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 4]
cmovae ecx, ebx
inc esi
mov ebx, ecx
cmp esi, ebp
jl 0x4eb9f0
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x30], ebx
cmp ebx, ebp
je 0x4eba9b
mov edi, dword [esp + 0x3c]
xor edx, edx
mov eax, dword [0x64613c]
mov ecx, dword [esp + ebx*4 + 0x68]
mov esi, dword [esp + ebp*4 + 0x68]
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.0056adc0
mov eax, dword [esp + 0x38]
push ebp
mov eax, dword [esp + eax*4 + 0x74]
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], si
call fcn.0056adc0
mov esi, dword [esp + 0x34]
push ebx
mov eax, dword [esp + esi*4 + 0x7c]
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], di
call fcn.0056adc0
mov eax, dword [esp + esi*4 + 0x80]
add esp, 0x18
mov edi, dword [esp + 0x88]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x30]
mov eax, dword [esp + eax*4 + 0x68]
mov dword [eax + 4], ebp
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ebp, edi
mov dword [esp + 0x24], ebp
cmp ebp, eax
jl 0x4eb9d0
test byte [esp + 0x34], 8
mov eax, dword [esp + edx*4 + 0x64]
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x4ebaf2
mov ecx, dword [esp + 0x1c]
cmp ecx, edx
je 0x4ebaf2
lea eax, [esp + 0x68]
lea esi, [esp + 0x5c]
cmovge eax, esi
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + 0x20]
mov eax, dword [esp + eax*4 + 0x64]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
cmp byte [eax + 0x11], 0
je 0x4ebcf8
mov esi, dword [esp + 0x68]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x40], 0
movzx eax, byte [esi + 0xc]
movzx ebx, word [esi + 0x18]
add ebx, eax
mov eax, dword [esp + 0x8c]
test eax, eax
jle 0x4ebcf8
mov edx, esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edx
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [esp + 0x94]
mov ecx, dword [ecx + ebp*4]
mov dword [esp + 0x24], ecx
cmp ebp, ebx
jne 0x4ebb8e
xor edx, edx
cmp byte [esp + 0x13], dl
sete dl
nop dword [eax + eax]
inc edi
cmp edi, dword [esp + 0x20]
jge 0x4ebb6d
mov esi, dword [esp + edi*4 + 0x68]
jmp 0x4ebb71
mov esi, dword [esp + edi*4 + 0x5c]
movzx eax, word [esi + 0x18]
movzx ecx, byte [esi + 0xc]
add eax, edx
add ecx, eax
add ebx, ecx
cmp ebp, ebx
je 0x4ebb60
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp ebp, dword [esp + ecx + 0xd4]
mov ecx, dword [esp + 0x24]
jne 0x4ebbc2
mov edx, dword [esp + 0x40]
inc edx
mov dword [esp + 0x40], edx
shl edx, 2
cmp byte [esp + 0x13], 0
mov dword [esp + 0x30], edx
mov edx, dword [esp + edx + 0x68]
mov dword [esp + 0x2c], edx
je 0x4ebcef
cmp edi, dword [esp + 0x20]
jge 0x4ebbe2
mov eax, dword [edx + 4]
cmp eax, dword [esp + edi*4 + 0x134]
jne 0x4ebbe2
cmp ecx, dword [esi + 0x38]
jb 0x4ebbe2
cmp ecx, dword [esi + 0x3c]
jb 0x4ebce8
cmp word [esp + 0x54], 0
jne 0x4ebc11
lea eax, [esp + 0x28]
push eax
push dword [edx + 4]
mov eax, dword [ecx]
push 5
bswap eax
push eax
push dword [esp + 0x4c]
call fcn.00533a30
mov eax, dword [esp + 0x3c]
add esp, 0x14
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x98]
movzx eax, word [eax + ebp*2]
test ax, ax
jne 0x4ebc39
lea eax, [esp + 0x8c]
push ebp
push eax
call fcn.004f3040
mov edx, dword [esp + 0x34]
add esp, 8
movzx eax, ax
cmp ax, word [edx + 0x10]
jbe 0x4ebcd6
cmp dword [esp + 0x14], 0
jne 0x4eb846
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x28]
mov eax, dword [edx + 0x50]
push edx
call eax
movzx eax, word [esp + 0x138]
add esp, 0xc
cmp eax, dword [esp + 0x128]
jae 0x4ebce4
mov edx, dword [esi + 0x3c]
mov ecx, dword [esp + 0x24]
cmp ecx, edx
jae 0x4ebca0
add eax, ecx
cmp eax, edx
jbe 0x4ebca0
push 0x117ec
call fcn.00548fb0
mov edx, dword [esp + 0x30]
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
jmp 0x4ebcda
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x28]
push eax
movzx eax, word [esp + 0x132]
push dword [edx + 4]
mov eax, dword [eax + ecx - 4]
push 3
bswap eax
push eax
push dword [edx + 0x34]
call fcn.00533a30
mov eax, dword [esp + 0x3c]
add esp, 0x14
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
jmp 0x4ebcda
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4eb846
jmp 0x4ebce8
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x8c]
inc ebp
cmp ebp, eax
jl 0x4ebb40
xor ebp, ebp
cmp dword [esp + 0x18], ebp
jle 0x4ebe73
nop dword [eax]
nop dword [eax + eax]
mov esi, dword [esp + ebp*4 + 0xd4]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + ebp*4 + 0x68]
mov ebx, dword [esp + 0x154]
add ebx, dword [esp + 0x7c]
mov edi, dword [eax + esi*4]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x54]
movzx edx, cx
mov ecx, dword [esp + 0x40]
movzx eax, word [eax + esi*2]
add edx, eax
cmp byte [ecx + 8], 0
jne 0x4ebd5f
mov ecx, dword [ecx + 0x38]
mov eax, dword [edi]
mov dword [ecx + 8], eax
jmp 0x4ebe0d
cmp byte [esp + 0x13], 0
je 0x4ebdf1
lea eax, [esp + 0x11c]
dec esi
push eax
mov eax, dword [esp + 0x98]
push dword [eax + esi*4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [esp + 0x12c]
mov edi, ebx
mov ecx, dword [esp + 0x128]
add esp, 0xc
add ebx, 4
test edx, edx
ja 0x4ebddf
jb 0x4ebda4
cmp ecx, 0x7f
ja 0x4ebdb5
mov eax, 1
and cl, 0x7f
mov byte [ebx], cl
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4ebe0d
test edx, edx
ja 0x4ebddf
jb 0x4ebdc3
cmp ecx, 0x3fff
ja 0x4ebddf
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [ebx + 1], cl
or al, 0x80
mov byte [ebx], al
mov eax, 2
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4ebe0d
push edx
push ecx
push ebx
call fcn.00534330
add esp, 0xc
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4ebe0d
sub edi, 4
cmp eax, 4
jne 0x4ebe0d
mov eax, dword [esp + 0x14c]
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 + eax*4 + 0xb4], esi
jg 0x4ebe22
inc eax
cmp eax, 6
jl 0x4ebe13
mov ecx, dword [esp + eax*4 + 0x9c]
cmp edi, ecx
jae 0x4ebe38
lea eax, [edx + edi]
cmp eax, ecx
ja 0x4ebed5
mov eax, dword [esp + 0x40]
push dword [eax + 4]
mov eax, dword [esp + 0x48]
push ebx
push edx
push edi
add eax, ebp
push eax
push dword [esp + 0x160]
call fcn.0051ef80
add esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4eb846
inc ebp
cmp ebp, dword [esp + 0x18]
jl 0x4ebd10
mov ebx, dword [esp + 0x20]
mov ebp, 1
sub ebp, ebx
mov dword [esp + 0x40], ebp
cmp ebp, ebx
jge 0x4ebf71
mov ebx, dword [esp + 0xd4]
mov eax, ebp
lea edi, [esp + 0xcc]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
add edi, ecx
cmp byte [edi], 0
jne 0x4ebf5e
lea esi, [ecx*4]
test ebp, ebp
jns 0x4ebecb
mov eax, dword [esp + esi + 0x104]
cmp eax, dword [esp + esi + 0xd0]
jl 0x4ebf5e
test ecx, ecx
jne 0x4ebee4
xor eax, eax
mov edx, ebx
jmp 0x4ebf1c
push 0x6214bc
push 0x133e3
jmp 0x4eb904
cmp ecx, dword [esp + 0x1c]
jge 0x4ebefc
xor eax, eax
cmp byte [esp + 0x13], al
sete al
add eax, dword [esp + esi + 0x104]
jmp 0x4ebf03
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + esi + 0xd4]
xor ecx, ecx
cmp byte [esp + 0x13], cl
sete cl
add ecx, dword [esp + esi + 0xd0]
sub edx, ecx
lea ebp, [esp + 0x8c]
push ebp
push edx
push ecx
push eax
push dword [esp + esi + 0x78]
call fcn.004f6fa0
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x4eb91d
mov eax, dword [esp + esi + 0x68]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + esi + 0xe8]
mov ebp, dword [esp + 0x40]
mov byte [edi], 1
mov dword [eax + 0x14], ecx
inc ebp
mov dword [esp + 0x40], ebp
cmp ebp, dword [esp + 0x20]
jl 0x4ebe91
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x158], 0
je 0x4ebfdb
mov ebp, dword [esp + 0x14c]
cmp word [ebp + 0x18], 0
jne 0x4ebfdb
mov ecx, dword [esp + 0x68]
movzx eax, byte [ebp + 9]
cmp eax, dword [ecx + 0x14]
jg 0x4ebfdb
push 0xffffffffffffffff
push ecx
call fcn.004f6110
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
push ebp
push dword [esp + 0x78]
call fcn.004f5070
mov edx, dword [esp + 0x3c]
add esp, 0x14
mov dword [esp + 0x14], edx
test edx, edx
jne 0x4ec02a
mov eax, dword [esp + 0x68]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004ffea0
mov edx, eax
add esp, 0xc
mov dword [esp + 0x14], edx
jmp 0x4ec02a
mov ecx, dword [esp + 0x3c]
cmp byte [ecx + 0x11], 0
je 0x4ec026
cmp word [esp + 0x54], 0
jne 0x4ec026
xor esi, esi
test ebx, ebx
jle 0x4ec026
mov eax, dword [esp + esi*4 + 0x68]
lea edx, [esp + 0x28]
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.00533a30
mov ecx, dword [esp + 0x50]
inc esi
add esp, 0x14
cmp esi, ebx
jl 0x4ebff3
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
jmp 0x4ec02a
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov esi, ebx
cmp ebx, edi
jge 0x4ec056
mov eax, dword [esp + esi*4 + 0x5c]
test edx, edx
jne 0x4ec04d
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004ffea0
add esp, 0xc
mov edx, eax
inc esi
cmp esi, edi
jl 0x4ec034
mov dword [esp + 0x14], edx
mov ebp, dword [esp + 0x14]
jmp 0x4eb925
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x60]
push 0
push eax
call fcn.0042d620
add esp, 0xc
xor ebx, ebx
jmp 0x4eb921
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
jmp 0x4eb925
push esi
call dword [0x645f5c]
add esp, 4
xor esi, esi
test edi, edi
jle 0x4ec0ae
mov eax, dword [esp + esi*4 + 0x5c]
test eax, eax
je 0x4ec0a9
push dword [eax + 0x48]
call fcn.00569d50
add esp, 4
inc esi
cmp esi, edi
jl 0x4ec096
xor esi, esi
test ebx, ebx
jle 0x4ec0cc
mov eax, dword [esp + esi*4 + 0x68]
test eax, eax
je 0x4ec0c7
push dword [eax + 0x48]
call fcn.00569d50
add esp, 4
inc esi
cmp esi, ebx
jl 0x4ec0b4
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x138
ret