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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x101811b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x68], esi
cmp word [edi + 0x18], 0
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x50], eax
jne 0x1007d844
push 0x10160abc
push 0x1130a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10072040
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010c1dc
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push eax
call fcn.10079b50
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x1007da23
mov eax, dword [edi + 0x24]
add esi, 4
push eax
mov dword [ebp - 0x4c], eax
mov eax, dword [edi + 0x4c]
push edi
call eax
mov edi, dword [ebp - 0x60]
movzx eax, ax
push 0xd
push edi
mov dword [ebp - 0x54], eax
call fcn.1010bd70
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x4c]
push edi
mov dword [ebp - 0x40], eax
push 1
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x54]
push ebx
push eax
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x1c], 2
call fcn.100aadc0
mov ebx, eax
add esp, 0x20
mov dword [ebp - 0x48], ebx
test ebx, ebx
je 0x1007d8d1
test edi, edi
je 0x1007da23
jmp 0x1007d9c1
mov edx, dword [ebp - 0x50]
movzx eax, word [edi + 0x12]
mov ecx, dword [edx + 0x28]
sub ecx, eax
movzx eax, word [ebp - 0x54]
sub ecx, eax
sub ecx, 2
mov dword [edi + 0x14], ecx
cmp byte [edx + 0x11], 0
je 0x1007d925
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x5c]
push dword [eax + 4]
push 5
push dword [ebp - 0x64]
push edx
call fcn.100a9da0
mov ax, word [ebp - 0x54]
add esp, 0x14
cmp ax, word [edi + 0x10]
jbe 0x1007d922
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x4c]
push edi
push edi
call fcn.100a9ec0
add esp, 0x10
mov ebx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x58]
movzx ecx, word [edx + 0x18]
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [edx + 0x38]
mov dword [ebp - 0x4c], ecx
lea eax, [ecx + 9]
mov edx, eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
mov dword [ebp - 0x4c], ecx
test al, al
jns 0x1007d95e
cmp ecx, edx
jb 0x1007d950
mov edx, dword [ebp - 0x58]
lea eax, [ecx + 9]
mov dword [ebp - 0x50], eax
mov edi, eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
mov byte [esi], al
inc esi
mov dword [ebp - 0x4c], ecx
test al, al
jns 0x1007d981
cmp ecx, edi
jb 0x1007d970
mov edi, dword [ebp - 0x60]
test ebx, ebx
jne 0x1007d9ae
lea eax, [ebp - 0x48]
push eax
push dword [edx + 4]
mov eax, dword [ebp - 0x68]
sub esi, eax
push 0
push esi
mov esi, dword [ebp - 0x5c]
push eax
movzx eax, word [esi + 0x18]
push eax
push esi
call fcn.1009eb00
mov ebx, dword [ebp - 0x48]
add esp, 0x1c
jmp 0x1007d9b1
mov esi, dword [ebp - 0x5c]
movzx ecx, byte [esi + 9]
mov eax, dword [esi + 0x38]
mov edx, dword [ebp - 0x64]
bswap edx
mov dword [ecx + eax + 8], edx
mov edx, dword [edi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1007da1a
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov dword [eax + 0x88], edx
mov esi, dword [eax + 0x3c]
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.1010cc90
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010c1dc
mov esp, ebp
pop ebp
ret
push edx
call fcn.100d4f60
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.1010c1dc
mov esp, ebp
pop ebp
ret