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

Disassembly:
sub esp, 0x150
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x5c], edx
push 0x40
lea eax, [esp + 0x9c]
mov dword [esp + 0x28], 0
mov edi, ecx
mov dword [esp + 0x24], 0
xor ebp, ebp
mov dword [esp + 0x48], edi
push ebx
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x10c], ebx
mov byte [esp + 0x110], bl
call fcn.00533fc0
mov eax, dword [edi + 0x34]
add esp, 0xc
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x164], ebx
jne 0x47cd2a
lea eax, [ebp + 7]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
movzx ecx, word [edi + 0x18]
movzx edx, byte [edi + 0xc]
lea esi, [edx + ecx]
cmp esi, 2
jae 0x47cd40
mov dword [esp + 0x40], ebx
jmp 0x47cd77
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x47cd4e
mov dword [esp + 0x40], ebx
jmp 0x47cd69
cmp eax, esi
jne 0x47cd64
mov eax, dword [esp + 0x16c]
add esi, 0xfffffffe
add esi, eax
mov dword [esp + 0x40], esi
jmp 0x47cd70
dec eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x16c]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x48], esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
sub eax, edx
lea edx, [eax + esi]
cmp edx, ecx
jne 0x47cd98
movzx ecx, byte [edi + 9]
add ecx, 8
jmp 0x47cdac
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 + 0x60], ecx
mov edx, dword [ecx]
bswap edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x68], edx
nop
lea edi, [esi*4]
test ebp, ebp
jne 0x47e061
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x6c]
push ebp
add eax, edi
push ebp
push eax
call fcn.00476640
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x47e061
lea ebp, [esp + 0x6c]
mov ecx, dword [ebp + edi]
cmp dword [ecx + 0x14], ebx
jge 0x47ce18
call fcn.004761a0
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
test eax, eax
jne 0x47cf49
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 0x47cf64
mov ebp, dword [esp + 0x44]
mov dl, byte [ebp + 0xc]
test dl, dl
je 0x47ce8b
mov ecx, dword [esp + 0x40]
movzx eax, word [ebp + 0x1c]
add ecx, esi
cmp ecx, eax
jne 0x47ce8b
mov eax, dword [ebp + 0x24]
push eax
mov dword [esp + esi*4 + 0x10c], eax
push ebp
mov ecx, dword [eax]
mov eax, dword [ebp + 0x4c]
bswap ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x70], ecx
call eax
mov edx, dword [esp + 0x5c]
add esp, 8
movzx eax, ax
mov byte [ebp + 0xc], bl
mov ebp, dword [esp + 0x18]
mov dword [esp + esi*4 + 0xd8], eax
jmp 0x47cdc0
mov ecx, dword [esp + 0x40]
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 + 0x110], edi
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x4c]
call eax
mov edx, dword [esp + 0x44]
add esp, 8
movzx ebp, ax
mov dword [esp + esi*4 + 0xd8], ebp
test byte [edx + 0x18], 0xc
je 0x47cf18
mov eax, dword [esp + 0x44]
mov ecx, edi
sub ecx, dword [eax + 0x38]
lea eax, [ecx + ebp]
cmp eax, dword [edx + 0x28]
jg 0x47cf18
mov eax, dword [esp + 0x164]
push ebp
add eax, ecx
push edi
push eax
call fcn.00533a40
mov eax, dword [esp + 0x50]
add esp, 0xc
sub edi, dword [eax + 0x38]
add edi, dword [esp + 0x164]
mov dword [esp + esi*4 + 0x108], edi
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x28]
push eax
push ebp
mov ebp, dword [esp + 0x4c]
mov ecx, ebp
movzx eax, byte [ebp + 0xc]
sub edx, eax
add edx, esi
call fcn.0047be80
mov ebp, dword [esp + 0x30]
add esp, 8
mov edx, dword [esp + 0x54]
mov dword [esp + 0x18], ebp
jmp 0x47cdc0
push edi
lea eax, [esp + 0x70]
push 0
push eax
call fcn.00533fc0
mov ebp, dword [esp + 0x24]
add esp, 0xc
xor ebx, ebx
jmp 0x47d94c
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.0045f9d0
mov ebp, eax
add esp, 8
mov dword [esp + 0xa0], ebp
test ebp, ebp
jne 0x47cf99
lea ebp, [eax + 7]
xor ebx, ebx
jmp 0x47d94c
mov ecx, dword [esp + 0x6c]
lea eax, [esi*4]
add eax, ebp
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa4], 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 + 0x58], eax
mov al, byte [ecx + 2]
mov byte [esp + 0x17], al
movzx eax, al
mov dword [esp + 0x80], eax
xor eax, eax
mov dword [esp + 0x38], eax
cmp dword [esp + 0x1c], eax
jle 0x47d220
nop dword [eax + eax]
shl eax, 2
mov dword [esp + 0x64], eax
mov edi, dword [esp + eax + 0x6c]
mov dword [esp + 0x4c], edi
movzx eax, word [edi + 0x1a]
mov ebp, dword [edi + 0x38]
mov ecx, eax
movzx esi, word [edi + 0x12]
movzx edx, word [edi + 0x18]
add esi, ebp
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x114], ebp
mov ecx, dword [eax + 0x38]
mov al, byte [ebp]
mov dword [esp + 0x24], esi
cmp al, byte [ecx]
jne 0x47d3ae
movzx eax, byte [edi + 0xc]
mov ecx, dword [esp + 0xa4]
add eax, edx
add eax, eax
push eax
mov eax, dword [esp + 0x9c]
push 0
lea eax, [ecx + eax*2]
push eax
call fcn.00533fc0
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x47d0fe
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x50], edx
jb 0x47d384
test edx, edx
je 0x47d0be
mov edi, dword [esp + 0x98]
mov ebx, dword [esp + 0x2c]
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 + 0xa0]
add ecx, ebp
mov dword [eax + edi*4], ecx
inc edi
sub edx, 1
jne 0x47d087
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x24], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x47d0fe
mov ebp, dword [esp + 0x98]
lea ecx, [edi + 0x24]
mov esi, dword [esp + 0xa0]
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 0x47d0d6
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x98], ebp
mov ebp, dword [esp + 0x114]
movzx eax, word [edi + 0x12]
movzx ecx, word [edi + 0x18]
add eax, ebp
lea edx, [eax + ecx*2]
cmp esi, edx
jae 0x47d152
mov edi, dword [esp + 0x98]
mov ebx, dword [esp + 0x78]
nop word [eax + 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 + 0xa0]
add ecx, ebp
mov dword [eax + edi*4], ecx
inc edi
cmp esi, edx
jb 0x47d120
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x98]
mov dword [esp + edx + 0x134], ebp
cmp eax, dword [esp + 0x48]
jge 0x47d211
cmp byte [esp + 0x17], 0
jne 0x47d211
movzx eax, word [esp + edx + 0xd8]
mov ecx, dword [esp + 0xa4]
mov esi, dword [esp + 0x30]
push eax
push dword [esp + edx + 0x10c]
add esi, ebx
mov word [ecx + ebp*2], ax
add ebx, eax
push esi
mov dword [esp + 0x40], ebx
call fcn.00533a40
mov ecx, dword [esp + 0x64]
add esp, 0xc
mov edx, dword [esp + 0xa4]
movzx eax, cx
add eax, esi
mov esi, dword [esp + 0xa0]
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 0x47d1e8
mov eax, dword [edi + 0x38]
mov ecx, dword [esi + ebp*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x47d205
cmp ecx, 4
jae 0x47d205
mov eax, dword [esp + 0x30]
mov byte [eax + ebx], 0
inc ebx
inc word [edx + ebp*2]
cmp word [edx + ebp*2], 4
jb 0x47d1f1
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x38]
inc ebp
mov dword [esp + 0x98], ebp
inc eax
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x1c]
jl 0x47cff0
mov eax, dword [esp + 0x58]
xor ebp, ebp
movzx ebx, ax
xor edx, edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], edx
mov eax, dword [eax + 0x28]
add eax, 0xfffffff4
add ebx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x4c], ebx
test eax, eax
jle 0x47d322
nop
mov esi, dword [esp + edx*4 + 0x6c]
mov ecx, dword [esp + edx*4 + 0x134]
mov dword [esp + 0x78], ecx
mov eax, dword [esi + 0x3c]
mov dword [esp + ebp*4 + 0xa8], eax
mov dword [esp + ebp*4 + 0xc0], ecx
test ebp, ebp
je 0x47d282
cmp ecx, dword [esp + ebp*4 + 0xbc]
jne 0x47d282
dec ebp
mov dword [esp + 0x30], ebp
cmp byte [esp + 0x17], 0
jne 0x47d2a6
mov eax, dword [esp + 0x44]
inc ebp
mov dword [esp + 0x30], ebp
mov eax, dword [eax + 0x3c]
mov dword [esp + ebp*4 + 0xa8], eax
lea eax, [ecx + 1]
mov dword [esp + ebp*4 + 0xc0], eax
mov edi, ebx
mov dword [esp + 0x48], 0
sub edi, dword [esi + 0x14]
lea eax, [esp + 0xd8]
cmp byte [esi + 0xc], 0
lea eax, [eax + edx*4]
mov dword [esp + 0x64], eax
mov dword [eax], edi
jbe 0x47d305
mov ebp, dword [esp + 0x48]
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 0x47d2d0
mov eax, dword [esp + 0x64]
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x4c]
mov dword [eax], edi
mov eax, dword [esp + 0x1c]
inc ebp
mov dword [esp + edx*4 + 0xec], ecx
inc edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], ebp
cmp edx, eax
jl 0x47d250
mov ebx, dword [esp + 0x98]
lea edx, [esp + 0xec]
sub edx, 4
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], edx
mov esi, eax
mov dword [esp + 0x2c], esi
test eax, eax
jle 0x47d60a
mov edx, 1
xor ecx, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], ecx
nop dword [eax]
lea eax, [esp + 0xd8]
add eax, ecx
mov dword [esp + 0x50], eax
mov edi, dword [eax]
cmp edi, dword [esp + 0x4c]
jle 0x47d4be
lea ebx, [esp + 0xdc]
add ebx, ecx
jmp 0x47d3e9
push 0x585774
push 0x12161
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00462980
add esp, 0x14
mov ebp, 0xb
xor ebx, ebx
jmp 0x47d94c
push 0x585774
push 0x12149
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00462980
add esp, 0x14
mov ebp, 0xb
xor ebx, ebx
jmp 0x47d94c
lea eax, [esp + 0xd8]
add eax, ecx
cmp edx, esi
jl 0x47d413
inc edx
mov dword [esp + 0x2c], edx
cmp edx, 5
jg 0x47d5b6
mov ebp, dword [esp + 0x98]
mov dword [ebx], 0
mov edi, dword [eax]
mov dword [esp + ecx + 0xf0], ebp
jmp 0x47d41a
mov ebp, dword [esp + 0x98]
mov esi, dword [esp + ecx + 0xec]
mov edx, dword [esp + 0xa4]
lea ecx, [esi - 1]
mov dword [esp + 0x48], ecx
movzx eax, word [edx + ecx*2]
test ax, ax
jne 0x47d450
mov edx, ecx
lea ecx, [esp + 0x98]
call fcn.0047c280
mov edx, dword [esp + 0xa4]
movzx eax, ax
mov ecx, dword [esp + 0x50]
movzx eax, ax
add eax, 2
sub edi, eax
cmp byte [esp + 0x17], 0
mov dword [ecx], edi
jne 0x47d48d
cmp esi, ebp
jge 0x47d48b
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x47d483
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.0047c280
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x47d48d
xor eax, eax
mov ecx, dword [esp + 0x30]
lea ebp, [esp + 0xec]
add dword [ebx], eax
add ebp, ecx
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
mov dword [ebp], eax
cmp edi, dword [esp + 0x4c]
jg 0x47d3e0
mov ebx, dword [esp + 0x98]
jmp 0x47d4c7
lea ebp, [esp + 0xec]
add ebp, ecx
mov esi, dword [ebp]
cmp esi, ebx
jge 0x47d568
mov edx, dword [esp + 0xa4]
nop dword [eax]
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x47d501
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.0047c280
mov edx, dword [esp + 0xa4]
movzx eax, ax
movzx eax, ax
add eax, 2
add edi, eax
cmp edi, dword [esp + 0x4c]
jg 0x47d560
mov ecx, dword [esp + 0x50]
inc esi
cmp byte [esp + 0x17], 0
mov dword [ebp], esi
mov dword [ecx], edi
jne 0x47d54f
cmp esi, ebx
jge 0x47d54d
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x47d545
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.0047c280
mov edx, dword [esp + 0xa4]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x47d54f
xor eax, eax
mov ecx, dword [esp + 0x30]
sub dword [esp + ecx + 0xdc], eax
cmp esi, ebx
jl 0x47d4e0
jmp 0x47d564
mov ecx, dword [esp + 0x30]
cmp esi, ebx
jl 0x47d578
mov edx, dword [esp + 0x38]
mov esi, edx
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x2c], esi
jmp 0x47d597
mov ebp, dword [esp + 0x24]
test ebp, ebp
jle 0x47d589
mov eax, dword [esp + 0x34]
mov eax, dword [ecx + eax]
jmp 0x47d58b
xor eax, eax
cmp esi, eax
jle 0x47d5e0
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
inc ebp
add ecx, 4
inc edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], edx
cmp ebp, esi
jl 0x47d360
mov edx, dword [esp + 0x34]
jmp 0x47d60e
push 0x585774
push 0x121c6
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00462980
add esp, 0x14
mov ebp, 0xb
xor ebx, ebx
jmp 0x47d94c
push 0x585774
push 0x121e7
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00462980
add esp, 0x14
mov ebp, 0xb
xor ebx, ebx
jmp 0x47d94c
mov dword [esp + 0x34], edx
lea eax, [esi - 1]
mov ecx, eax
mov dword [esp + 0x38], eax
test ecx, ecx
jle 0x47d779
nop
shl ecx, 2
mov dword [esp + 0x24], ecx
mov ebp, dword [ecx + edx]
mov eax, dword [esp + ecx + 0xd4]
mov edi, dword [esp + ecx + 0xd8]
mov ecx, dword [esp + 0xa4]
lea esi, [ebp - 1]
mov dword [esp + 0x30], eax
mov edx, esi
sub edx, dword [esp + 0x80]
inc edx
cmp word [ecx + edx*2], 0
lea eax, [ecx + edx*2]
mov dword [esp + 0x48], eax
jne 0x47d671
lea ecx, [esp + 0x98]
call fcn.0047c280
mov ecx, dword [esp + 0xa4]
mov ebx, dword [esp + 0x48]
jmp 0x47d687
mov ecx, dword [esp + 0xa4]
cmp word [ecx + esi*2], 0
mov dword [esp + 0x64], esi
mov dword [esp + 0x48], esi
jne 0x47d6a4
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.0047c280
test edi, edi
je 0x47d6eb
cmp dword [esp + 0x16c], 0
mov edx, ebp
jne 0x47d72e
mov ecx, dword [esp + 0x2c]
mov eax, 2
mov ebp, dword [esp + 0x30]
dec ecx
cmp dword [esp + 0x38], ecx
mov ecx, 0
cmove eax, ecx
mov ecx, ebp
sub ecx, eax
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + esi*2]
sub ecx, eax
movzx eax, word [ebx]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x47d732
movzx eax, word [ebx]
mov ecx, 0xfffffffe
mov ebp, dword [esp + 0x48]
add eax, 2
mov edx, dword [esp + 0x64]
add edi, eax
mov eax, dword [esp + 0xa4]
sub ebx, 2
movzx eax, word [eax + esi*2]
sub ecx, eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + ecx], esi
sub esi, 1
jns 0x47d680
mov ebp, dword [esp + 0x30]
jmp 0x47d736
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x98]
mov dword [esp + eax + 0xd8], edi
mov dword [esp + eax + 0xd4], ebp
cmp ecx, 1
jbe 0x47d75e
mov esi, dword [esp + 0x34]
mov eax, dword [eax + esi - 4]
jmp 0x47d760
xor eax, eax
cmp edx, eax
jle 0x47d7e4
mov edx, dword [esp + 0x34]
dec ecx
mov dword [esp + 0x38], ecx
test ecx, ecx
jg 0x47d620
mov eax, dword [esp + 0x6c]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x24], eax
lea eax, [esi + 1]
cmp dword [esp + 0x2c], esi
jle 0x47d993
mov ebp, dword [esp + 0x24]
nop word [eax + eax]
mov edi, dword [esp + 0x1c]
cmp esi, edi
jge 0x47d87d
mov edi, dword [esp + esi*4 + 0x6c]
mov dword [esp + esi*4 + 0x84], edi
mov dword [esp + esi*4 + 0x6c], 0
mov dword [esp + 0x50], edi
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x47d812
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x47d812
cmp dword [edx + 0x68], 0
je 0x47d80e
call fcn.0046eec0
jmp 0x47d83b
push 0x585774
push 0x12211
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00462980
add esp, 0x14
mov ebp, 0xb
xor ebx, ebx
jmp 0x47d94c
xor edx, edx
jmp 0x47d83d
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x47d821
mov edx, eax
jmp 0x47d841
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x47d836
call fcn.00470960
jmp 0x47d83b
call fcn.004708d0
mov edx, eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x5c]
xor ecx, ecx
sub eax, dword [esp + 0x40]
inc dword [esp + 0x20]
cmp esi, eax
mov eax, dword [edi + 0x48]
sete cl
mov dword [esp + 0x28], edx
inc ecx
movsx eax, word [eax + 0x1e]
cmp eax, ecx
je 0x47d86c
test edx, edx
je 0x47d925
test edx, edx
je 0x47d910
mov ebp, dword [esp + 0x18]
jmp 0x47d948
cmp dword [esp + 0x16c], 0
lea edx, [esp + 0x50]
mov ecx, dword [esp + 0x54]
cmovne ecx, eax
lea eax, [esp + 0x68]
push 0
push ecx
mov ecx, dword [esp + 0x44]
push eax
call fcn.0047a990
mov edx, eax
add esp, 0xc
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], edx
test edx, edx
jne 0x47e07b
mov edi, dword [esp + 0x50]
mov edx, ebp
mov ecx, edi
call fcn.004764e0
mov ecx, dword [esp + 0x3c]
inc dword [esp + 0x20]
mov dword [esp + esi*4 + 0x84], edi
mov dword [esp + esi*4 + 0x134], ebx
cmp byte [ecx + 0x11], 0
je 0x47d908
mov edx, dword [edi + 4]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x48]
push dword [eax + 4]
push 5
call fcn.00475060
mov eax, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
jne 0x47d874
mov edx, dword [esp + 0x68]
mov dword [esp + 0x54], edx
inc esi
cmp esi, dword [esp + 0x2c]
jge 0x47d993
mov eax, 1
jmp 0x47d7a0
push 0x585774
push 0x12232
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00462980
add esp, 0x14
mov ebp, 0xb
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x47d964
mov edx, eax
xor ecx, ecx
call fcn.0045fcb0
xor esi, esi
test edi, edi
jle 0x47e096
nop
mov ecx, dword [esp + esi*4 + 0x6c]
test ecx, ecx
je 0x47e08d
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x47e088
call fcn.0046e840
jmp 0x47e08d
mov ebp, dword [esp + 0x20]
xor ecx, ecx
test ebp, ebp
jle 0x47da87
mov eax, dword [esp + ecx*4 + 0x84]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x48]
mov dword [esp + ecx*4 + 0x148], edx
mov dword [esp + ecx*4 + 0x118], edx
mov ax, word [eax + 0x1c]
mov word [esp + ecx*2 + 0x108], ax
xor eax, eax
test ecx, ecx
jle 0x47d9e2
nop
cmp dword [esp + eax*4 + 0x148], edx
je 0x47db40
inc eax
cmp eax, ecx
jl 0x47d9d0
inc ecx
cmp ecx, ebp
jl 0x47d9a1
xor ebx, ebx
nop dword [eax]
xor esi, esi
lea ecx, [esi + 1]
cmp ebp, ecx
jle 0x47da20
xor edi, edi
nop dword [eax + eax]
lea edx, [ecx*4]
mov eax, dword [esp + edx + 0x118]
cmp eax, dword [esp + edi + 0x118]
jae 0x47da1b
mov esi, ecx
mov edi, edx
inc ecx
cmp ecx, ebp
jl 0x47da00
mov edi, dword [esp + esi*4 + 0x118]
mov dword [esp + esi*4 + 0x118], 0xffffffff
cmp esi, ebx
je 0x47da7e
jle 0x47da57
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x30]
mov eax, dword [esp + esi*4 + 0x84]
inc edx
add edx, esi
mov ecx, dword [eax + 0x48]
xor eax, eax
mov word [ecx + 0x1c], ax
call fcn.0046ac80
mov eax, dword [esp + ebx*4 + 0x84]
mov edx, edi
mov ecx, dword [eax + 0x48]
mov ax, word [esp + esi*2 + 0x108]
mov word [ecx + 0x1c], ax
call fcn.0046ac80
mov eax, dword [esp + ebx*4 + 0x84]
mov dword [eax + 4], edi
inc ebx
cmp ebx, ebp
jl 0x47d9f0
test byte [esp + 0x24], 8
mov eax, dword [esp + ebp*4 + 0x80]
mov ecx, dword [esp + 0x60]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x47dacd
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
je 0x47dacd
lea edx, [esp + 0x6c]
lea eax, [esp + 0x84]
cmovge eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + ebp*4 + 0x80]
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 0x47dcc9
mov esi, dword [esp + 0x84]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x60], 0
movzx eax, byte [esi + 0xc]
movzx ebx, word [esi + 0x18]
add ebx, eax
mov eax, dword [esp + 0x98]
test eax, eax
jle 0x47dcc5
mov edx, esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x2c], edx
mov ecx, dword [esp + 0xa0]
mov ecx, dword [ecx + ebp*4]
mov dword [esp + 0x24], ecx
cmp ebp, ebx
jne 0x47db70
xor edx, edx
cmp byte [esp + 0x17], dl
sete dl
nop dword [eax]
inc edi
cmp edi, dword [esp + 0x20]
jge 0x47db4f
mov esi, dword [esp + edi*4 + 0x84]
jmp 0x47db53
push 0x585774
push 0x12260
jmp 0x47d92f
mov esi, dword [esp + edi*4 + 0x6c]
movzx eax, word [esi + 0x18]
movzx ecx, byte [esi + 0xc]
add eax, edx
add ecx, eax
add ebx, ecx
cmp ebp, ebx
je 0x47db30
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x5c]
cmp ebp, dword [esp + ecx + 0xec]
mov ecx, dword [esp + 0x24]
jne 0x47dba7
mov edx, dword [esp + 0x60]
inc edx
mov dword [esp + 0x60], edx
shl edx, 2
cmp byte [esp + 0x17], 0
mov dword [esp + 0x5c], edx
mov edx, dword [esp + edx + 0x84]
mov dword [esp + 0x2c], edx
je 0x47dcbc
cmp edi, dword [esp + 0x20]
jge 0x47dbc7
mov eax, dword [edx + 4]
cmp eax, dword [esp + edi*4 + 0x148]
jne 0x47dbc7
cmp ecx, dword [esi + 0x38]
jb 0x47dbc7
cmp ecx, dword [esi + 0x3c]
jb 0x47dcb5
cmp word [esp + 0x58], 0
jne 0x47dbf5
lea eax, [esp + 0x28]
push eax
push dword [edx + 4]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x44]
push 5
bswap edx
call fcn.00475060
mov eax, dword [esp + 0x34]
add esp, 0xc
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + ebp*2]
test ax, ax
jne 0x47dc1a
mov edx, ebp
lea ecx, [esp + 0x98]
call fcn.0047c280
mov edx, dword [esp + 0x2c]
movzx eax, ax
cmp ax, word [edx + 0x10]
jbe 0x47dca3
cmp dword [esp + 0x18], 0
jne 0x47d874
lea eax, [esp + 0x118]
push eax
push dword [esp + 0x28]
mov eax, dword [edx + 0x50]
push edx
call eax
movzx eax, word [esp + 0x134]
add esp, 0xc
cmp eax, dword [esp + 0x124]
jae 0x47dcb1
mov edx, dword [esi + 0x3c]
mov ecx, dword [esp + 0x24]
cmp edx, ecx
jb 0x47dc6a
add eax, ecx
cmp edx, eax
jb 0x47dd3a
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push dword [eax + 4]
movzx eax, word [esp + 0x132]
push 3
mov edx, dword [eax + ecx - 4]
mov eax, dword [esp + 0x38]
bswap edx
mov ecx, dword [eax + 0x34]
call fcn.00475060
mov eax, dword [esp + 0x34]
add esp, 0xc
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
jmp 0x47dca7
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x47d874
jmp 0x47dcb5
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x98]
inc ebp
cmp ebp, eax
jl 0x47db11
mov ebp, dword [esp + 0x20]
lea eax, [ebp - 1]
xor esi, esi
test eax, eax
jle 0x47de70
nop word [eax + eax]
mov eax, dword [esp + esi*4 + 0xec]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
lea ecx, [ecx + eax*4]
mov ebp, dword [esp + esi*4 + 0x84]
mov ebx, dword [esp + 0x164]
add ebx, dword [esp + 0x7c]
movzx eax, word [edx + eax*2]
mov edi, dword [ecx]
mov dword [esp + 0x80], ebp
mov ebp, dword [esp + 0x58]
movzx edx, bp
mov ebp, dword [esp + 0x80]
add edx, eax
cmp byte [ebp + 8], 0
jne 0x47dd49
mov ecx, dword [ebp + 0x38]
mov eax, dword [edi]
mov dword [ecx + 8], eax
jmp 0x47dded
push 0x585774
push 0x107fe
jmp 0x47d92f
cmp byte [esp + 0x17], 0
je 0x47ddd4
lea eax, [esp + 0x148]
push eax
push dword [ecx - 4]
mov eax, dword [ebp + 0x50]
push ebp
call eax
mov edx, dword [esp + 0x158]
add esp, 0xc
mov ecx, dword [esp + 0x148]
mov edi, ebx
test edx, edx
ja 0x47ddc0
jb 0x47dd83
cmp ecx, 0x7f
ja 0x47dd95
mov eax, 1
and cl, 0x7f
mov byte [ebx + 4], cl
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x47dded
test edx, edx
ja 0x47ddc0
jb 0x47dda3
cmp ecx, 0x3fff
ja 0x47ddc0
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [ebx + 5], cl
or al, 0x80
mov byte [ebx + 4], al
mov eax, 2
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x47dded
push edx
push ecx
lea ecx, [ebx + 4]
call fcn.00464220
add esp, 8
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x47dded
sub edi, 4
cmp eax, 4
jne 0x47dded
mov eax, dword [esp + 0x44]
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 + 0xc0], esi
jg 0x47de0f
nop dword [eax]
cmp eax, 6
jge 0x47de0f
inc eax
cmp dword [esp + eax*4 + 0xc0], esi
jle 0x47de00
mov ecx, dword [esp + eax*4 + 0xa8]
cmp ecx, edi
jb 0x47de21
lea eax, [edx + edi]
cmp ecx, eax
jb 0x47de61
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x28]
push eax
push dword [ebp + 4]
push ebx
push edx
mov edx, dword [esp + 0x50]
push edi
lea edx, [edx + esi]
call fcn.0047bfa0
mov ebp, dword [esp + 0x3c]
add esp, 0x14
mov dword [esp + 0x18], ebp
test ebp, ebp
jne 0x47d948
mov ebx, dword [esp + 0x20]
inc esi
lea eax, [ebx - 1]
cmp esi, eax
jl 0x47dce0
jmp 0x47de74
push 0x585774
push 0x122fd
jmp 0x47d92f
mov ebx, dword [esp + 0x20]
mov ebp, 1
sub ebp, ebx
cmp ebp, ebx
jge 0x47df65
mov ebx, dword [esp + 0xec]
nop word [eax + eax]
mov eax, ebp
lea edi, [esp + 0x100]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
add edi, ecx
cmp byte [edi], 0
jne 0x47df56
lea esi, [ecx*4]
test ebp, ebp
jns 0x47deca
mov eax, dword [esp + esi + 0x130]
cmp eax, dword [esp + esi + 0xe8]
jl 0x47df56
test ecx, ecx
jne 0x47ded6
xor edx, edx
mov ecx, ebx
xor eax, eax
jmp 0x47df0e
cmp ecx, dword [esp + 0x1c]
jge 0x47deee
xor edx, edx
cmp byte [esp + 0x17], dl
sete dl
add edx, dword [esp + esi + 0x130]
jmp 0x47def5
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + esi + 0xec]
xor eax, eax
cmp byte [esp + 0x17], al
sete al
add eax, dword [esp + esi + 0xe8]
sub ecx, eax
lea ebx, [esp + 0x98]
push ebx
push ecx
mov ecx, dword [esp + esi + 0x8c]
push eax
call fcn.0047c6d0
mov ebx, dword [esp + 0xf8]
add esp, 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
test eax, eax
jne 0x47d874
mov eax, dword [esp + esi + 0x84]
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + esi + 0xd8]
mov byte [edi], 1
mov dword [eax + 0x14], ecx
inc ebp
cmp ebp, dword [esp + 0x20]
jl 0x47de90
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x168], 0
je 0x47dfdb
mov ebp, dword [esp + 0x44]
cmp word [ebp + 0x18], 0
jne 0x47dfdb
mov ecx, dword [esp + 0x84]
movzx eax, byte [ebp + 9]
cmp eax, dword [ecx + 0x14]
jg 0x47dfdb
or edx, 0xffffffff
call fcn.00475780
mov ecx, dword [esp + 0x84]
mov edx, ebp
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
call fcn.0047cbe0
mov edx, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x18], edx
test edx, edx
jne 0x47e02b
mov ecx, dword [esp + 0x84]
mov edx, ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
call fcn.0047b3f0
mov edx, eax
add esp, 4
mov dword [esp + 0x18], edx
jmp 0x47e02b
mov ecx, dword [esp + 0x3c]
cmp byte [ecx + 0x11], 0
je 0x47e027
cmp word [esp + 0x58], 0
jne 0x47e027
xor esi, esi
test ebx, ebx
jle 0x47e027
mov eax, dword [esp + esi*4 + 0x84]
lea edx, [esp + 0x28]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov edx, dword [eax + 8]
bswap edx
call fcn.00475060
mov ecx, dword [esp + 0x48]
inc esi
add esp, 0xc
cmp esi, ebx
jl 0x47dff3
mov edx, dword [esp + 0x28]
mov dword [esp + 0x18], edx
jmp 0x47e02b
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov esi, ebx
cmp ebx, edi
jge 0x47e058
mov ecx, dword [esp + esi*4 + 0x6c]
test edx, edx
jne 0x47e04f
push dword [ecx + 4]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.0047b3f0
add esp, 4
mov edx, eax
inc esi
cmp esi, edi
jl 0x47e035
mov dword [esp + 0x18], edx
mov ebp, dword [esp + 0x18]
jmp 0x47d950
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x70]
push 0
push eax
call fcn.00533fc0
add esp, 0xc
xor ebx, ebx
jmp 0x47d94c
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
jmp 0x47d950
call fcn.0046aa70
inc esi
cmp esi, edi
jl 0x47d970
xor esi, esi
test ebx, ebx
jle 0x47e0c5
nop dword [eax]
mov ecx, dword [esp + esi*4 + 0x84]
test ecx, ecx
je 0x47e0c0
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x47e0bb
call fcn.0046e840
jmp 0x47e0c0
call fcn.0046aa70
inc esi
cmp esi, ebx
jl 0x47e0a0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x150
ret