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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov bl, dl
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
mov al, byte [edi]
test al, al
je 0x48a32e
cmp al, 3
jb 0x48a378
call fcn.0047fdc0
test eax, eax
jne 0x48a81e
cmp byte [edi], al
jne 0x48a81e
mov ebp, dword [edi + 0x74]
movsx eax, byte [edi + 0x44]
movzx ecx, word [edi + 0x46]
mov dword [esp + 0x2c], eax
movzx eax, word [ebp + 0x18]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebp
cmp eax, ecx
ja 0x48a3a3
push 0x598534
push 0x126ae
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0046d860
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x598534
push 0x126a5
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0046d860
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebp + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebp + 0x38]
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x18], ecx
jge 0x48a3fe
mov ecx, ebp
call fcn.004811a0
test eax, eax
je 0x48a3fa
push 0x598534
push 0x126b2
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0046d860
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x18]
shr bl, 1
and bl, 1
mov byte [esp + 0x17], bl
je 0x48a457
cmp byte [ebp + 8], 0
je 0x48a448
push ecx
push ebp
call fcn.00480490
mov esi, dword [ebp + 0x14]
add esp, 8
movzx ecx, ax
add esi, 2
mov eax, dword [esp + 0x1c]
add esi, ecx
mov ecx, dword [eax + 0x28]
mov eax, 0xaaaaaaab
add ecx, ecx
mul ecx
shr edx, 1
cmp esi, edx
jg 0x48a448
cmp word [ebp + 0x18], 1
je 0x48a448
mov byte [esp + 0x17], 2
jmp 0x48a457
mov ecx, edi
call fcn.0047faf0
test eax, eax
jne 0x48a81e
cmp byte [ebp + 8], 0
lea esi, [edi + 1]
jne 0x48a497
and byte [esi], 0xf1
xor eax, eax
mov word [edi + 0x32], ax
cmp byte [edi], al
jne 0x48a488
movzx ecx, word [edi + 0x46]
test cx, cx
je 0x48a488
mov eax, dword [edi + 0x74]
cmp byte [eax + 8], 0
je 0x48a488
lea eax, [ecx - 1]
mov word [edi + 0x46], ax
jmp 0x48a497
mov ecx, edi
call fcn.004857f0
test eax, eax
jne 0x48a81e
mov al, byte [esi]
lea ebx, [edi + 0x40]
test al, 0x20
je 0x48a4c8
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x48a4c4
nop dword [eax]
cmp ecx, edi
je 0x48a4bd
test edx, edx
je 0x48a534
cmp dword [ecx + 0x40], edx
je 0x48a534
mov ecx, dword [ecx + 0x18]
test ecx, ecx
jne 0x48a4b0
and al, 0xdf
mov byte [esi], al
cmp dword [edi + 0x70], 0
jne 0x48a513
mov eax, dword [esp + 0x20]
cmp byte [eax + 0xb], 0
je 0x48a513
mov ecx, dword [ebx]
mov ebx, eax
mov edx, dword [edi + 0x20]
mov esi, dword [edi + 0x24]
mov eax, dword [ebx + 4]
mov byte [ebx + 0xb], 0
mov eax, dword [eax + 8]
test eax, eax
je 0x48a513
test byte [eax + 1], 0x10
je 0x48a50c
mov byte [ebx + 0xb], 1
cmp dword [eax + 0x40], ecx
jne 0x48a50c
cmp dword [eax + 0x20], edx
jne 0x48a50c
cmp dword [eax + 0x24], esi
jne 0x48a50c
mov byte [eax], 1
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x48a4f0
mov ecx, dword [ebp + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x48a54d
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x48a54d
cmp dword [edx + 0x68], 0
je 0x48a57a
call fcn.00479ca0
jmp 0x48a572
test ecx, ecx
je 0x48a4c4
push edi
call fcn.0047fbf0
add esp, 4
test eax, eax
je 0x48a4c8
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x2c]
test eax, eax
jne 0x48a81e
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x48a56d
call fcn.0047b730
jmp 0x48a572
call fcn.0047b6a0
test eax, eax
jne 0x48a81e
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x30]
push eax
mov eax, dword [ebp + 0x50]
push esi
push ebp
call eax
movzx eax, word [esp + 0x4c]
add esp, 0xc
cmp eax, dword [esp + 0x3c]
je 0x48a5ab
lea eax, [esp + 0x30]
mov edx, esi
push eax
mov ecx, ebp
call fcn.004868b0
add esp, 4
jmp 0x48a5ad
xor eax, eax
mov edx, dword [esp + 0x24]
mov ecx, ebp
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
movzx eax, word [esp + 0x46]
push eax
call fcn.00486e50
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
jne 0x48a81e
cmp byte [ebp + 8], al
jne 0x48a6e0
mov esi, dword [edi + 0x74]
cmp dword [esi + 0x14], eax
jge 0x48a5f6
mov ecx, esi
call fcn.004811a0
test eax, eax
jne 0x48a81e
movsx eax, byte [edi + 0x44]
mov ecx, dword [esp + 0x2c]
dec eax
cmp ecx, eax
jge 0x48a609
mov eax, dword [edi + ecx*4 + 0x7c]
jmp 0x48a60c
mov eax, dword [edi + 0x74]
mov ebp, dword [eax + 4]
movzx ecx, word [esi + 0x18]
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x38]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x1a]
movzx ebx, cx
and ebx, eax
lea eax, [edx + 4]
add ebx, edx
cmp ebx, eax
jae 0x48a65f
push 0x598534
push 0x1270c
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0046d860
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x4c]
push ebx
push esi
call eax
mov ecx, dword [esi + 0x48]
add esp, 8
movzx eax, ax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x1c], eax
je 0x48a6ac
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x48a6ac
cmp dword [edx + 0x68], 0
je 0x48a69f
call fcn.00479ca0
jmp 0x48a72e
mov dword [esp + 0x18], 0
jmp 0x48a736
mov eax, dword [edx + 0x2c]
test eax, eax
je 0x48a714
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x20]
movzx edx, word [esi + 0x18]
lea eax, [esp + 0x18]
push eax
push ebp
dec edx
mov ecx, esi
call fcn.00486e50
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
jne 0x48a81e
mov ebp, dword [esp + 0x28]
mov ecx, edi
call fcn.004892e0
mov esi, eax
test esi, esi
jne 0x48a81c
movsx eax, byte [edi + 0x44]
mov ebx, dword [esp + 0x2c]
cmp eax, ebx
jle 0x48a7b7
mov eax, dword [edi + 0x74]
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x48a761
call fcn.00479620
jmp 0x48a766
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x48a729
call fcn.0047b730
jmp 0x48a72e
call fcn.0047b6a0
mov dword [esp + 0x18], eax
test eax, eax
jne 0x48a6b7
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x28]
push eax
push ebp
mov ebp, dword [esp + 0x28]
push dword [esp + 0x24]
lea eax, [ebp + 4]
push eax
lea eax, [ebx - 4]
push eax
call fcn.00486f70
add esp, 0x14
jmp 0x48a6bb
call fcn.00475860
mov cl, byte [edi + 0x44]
dec cl
movsx eax, cl
mov byte [edi + 0x44], cl
cmp eax, ebx
jle 0x48a7a4
movsx eax, cl
dec cl
mov eax, dword [edi + eax*4 + 0x78]
mov byte [edi + 0x44], cl
test eax, eax
je 0x48a79a
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x48a795
call fcn.00479620
jmp 0x48a79a
call fcn.00475860
mov cl, byte [edi + 0x44]
movsx eax, cl
cmp eax, ebx
jg 0x48a775
movsx eax, cl
mov ecx, edi
mov eax, dword [edi + eax*4 + 0x78]
mov dword [edi + 0x74], eax
call fcn.004892e0
mov esi, eax
test esi, esi
jne 0x48a81c
mov bl, byte [esp + 0x17]
cmp bl, 1
jbe 0x48a7fd
mov byte [edi], 2
movzx eax, word [ebp + 0x18]
cmp dword [esp + 0x24], eax
jb 0x48a7ec
mov dword [edi + 4], 0xffffffff
mov ax, word [ebp + 0x18]
dec ax
mov word [edi + 0x46], ax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 4], 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00484c90
mov esi, eax
test bl, bl
je 0x48a814
mov ecx, edi
call fcn.0047fa90
mov byte [edi], 3
xor eax, eax
cmp esi, 0x10
cmove esi, eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret