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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 0x28]
add ecx, ecx
mov eax, 0xaaaaaaab
mul ecx
push ebx
xor ebx, ebx
shr edx, 1
push esi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], ebx
jmp 0x4ed320
mov esi, dword [edi + 0x74]
cmp dword [esi + 0x14], 0
mov dword [ebp - 0x18], esi
jge 0x4ed33d
push esi
call fcn.004e8b80
add esp, 4
test eax, eax
jne 0x4ed56e
mov cl, byte [esi + 0xc]
test cl, cl
jne 0x4ed350
mov edx, dword [ebp - 0x2c]
cmp dword [esi + 0x14], edx
jle 0x4ed56e
movsx eax, byte [edi + 0x44]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x4ed3be
test cl, cl
je 0x4ed56e
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 8]
test eax, eax
je 0x4ed38c
lea ecx, [ecx]
cmp eax, edi
je 0x4ed385
cmp byte [eax], 0
jne 0x4ed385
mov ecx, dword [eax + 0x74]
cmp ecx, dword [edi + 0x74]
je 0x4ed54b
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x4ed370
mov eax, dword [ebp - 0x18]
lea esi, [edi + 0x7c]
push esi
call fcn.004ed1a0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4ed56e
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dword [edi + 0x46], edx
mov edx, dword [esi]
mov byte [edi + 0x44], 1
mov dword [edi + 0x78], ecx
mov dword [edi + 0x74], edx
jmp 0x4ed320
mov esi, dword [edi + eax*4 + 0x74]
movzx eax, word [edi + eax*2 + 0x46]
mov ebx, dword [esi + 0x48]
test byte [ebx + 0x1c], 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x24], esi
je 0x4ed401
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebx + 0x18]
jb 0x4ed401
cmp dword [eax + 0x60], 0
je 0x4ed436
mov ecx, ebx
call fcn.004b1730
test eax, eax
je 0x4ed3fd
push ebx
call fcn.004c50f0
add esp, 4
jmp 0x4ed42c
xor eax, eax
jmp 0x4ed42c
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4ed40c
mov ebx, ecx
jmp 0x4ed42e
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x98]
jbe 0x4ed425
push ebx
call fcn.004c5340
add esp, 4
jmp 0x4ed42c
mov eax, ebx
call fcn.004c52a0
mov ebx, eax
test ebx, ebx
jne 0x4ed4d2
cmp dword [esi + 0x14], 0
jge 0x4ed44f
push esi
call fcn.004e8b80
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4ed4d2
mov eax, dword [ebp - 0x18]
cmp byte [eax + 3], 0
je 0x4ed488
cmp byte [eax + 0xc], 1
jne 0x4ed488
mov cx, word [eax + 0x1c]
cmp cx, word [eax + 0x18]
jne 0x4ed488
cmp dword [esi + 4], 1
je 0x4ed488
movzx edx, word [esi + 0x18]
cmp edx, dword [ebp - 0x28]
jne 0x4ed488
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.004eb950
add esp, 8
mov ebx, eax
jmp 0x4ed4d2
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x24]
push eax
call fcn.004bdac0
movzx ecx, byte [edi + 3]
xor edx, edx
and ecx, 1
cmp dword [ebp - 0x30], 1
push ecx
mov ecx, dword [ebp - 0x24]
sete dl
mov esi, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], esi
push edx
push eax
mov edx, esi
call fcn.004ebc10
mov ebx, eax
mov eax, dword [ebp - 0x20]
add esp, 0x10
test eax, eax
je 0x4ed4cf
mov esi, eax
call fcn.004b0da0
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x18]
mov byte [eax + 0xc], 0
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], 0x20
je 0x4ed52e
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov esi, dword [edx]
mov dword [ebp - 0x24], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
dec eax
push edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [ebp - 0x1c]
push 0
push eax
call fcn.00484e00
mov ecx, dword [esi + 0x48]
push edx
push eax
mov eax, dword [ebp - 0x24]
push eax
call ecx
add esp, 0x10
jmp 0x4ed533
call fcn.004b0660
dec byte [edi + 0x44]
movsx edx, byte [edi + 0x44]
mov eax, dword [edi + edx*4 + 0x78]
mov dword [edi + 0x74], eax
test ebx, ebx
je 0x4ed320
jmp 0x4ed56e
push 0x56e494
push 0x11bf0
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d71b0
add esp, 0x14
mov ebx, 0xb
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x4ed57a
call fcn.004b0da0
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00480264
mov esp, ebp
pop ebp
ret