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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [ecx + 0xc]
xor ebx, ebx
mov edi, dword [ecx + 0x30]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x24], edi
mov eax, dword [eax + 0x24]
bswap eax
mov dword [ebp - 0x2c], eax
cmp eax, edi
jb 0x10079ba4
push 0x10160abc
push 0x10dc1
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10072040
add esp, 0x14
lea eax, [ebx + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1007a24e
mov eax, dword [ebp + 0x14]
xor dl, dl
cmp byte [ebp + 0x18], 1
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x28], ebx
jne 0x10079be5
cmp eax, edi
ja 0x10079bf7
push 0
lea edx, [ebp - 1]
push edx
push eax
push ecx
call fcn.100a9c50
add esp, 0x10
test eax, eax
jne 0x1007a3fa
cmp byte [ebp - 1], 2
jne 0x10079bf7
mov byte [ebp - 0x18], 1
jmp 0x10079bf7
cmp byte [ebp + 0x18], 2
mov eax, 1
movzx edx, dl
cmove edx, eax
mov dword [ebp - 0x18], edx
push dword [esi + 0x48]
call fcn.100d4230
add esp, 4
test eax, eax
jne 0x1007a3fa
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi + 0x38]
lea ecx, [edx - 1]
bswap ecx
mov dword [eax + 0x24], ecx
mov edi, ebx
mov dword [ebp - 0xc], edi
test edi, edi
je 0x10079c28
mov eax, dword [ebx + 0x38]
mov esi, dword [eax]
jmp 0x10079c2e
mov eax, dword [esi + 0x38]
mov esi, dword [eax + 0x20]
bswap esi
cmp esi, dword [ebp - 0x24]
ja 0x1007a1c2
mov ecx, dword [ebp - 0x28]
mov eax, ecx
inc ecx
mov dword [ebp - 0x28], ecx
cmp eax, edx
ja 0x1007a1c2
push 0
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
call fcn.1007eba0
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0x30], ebx
test ebx, ebx
jne 0x1007a1e5
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x10], ecx
mov edi, dword [ecx + 4]
mov ecx, dword [ebp - 0x18]
bswap edi
test edi, edi
jne 0x10079cbc
test cl, cl
jne 0x10079cbc
push dword [eax + 0x48]
call fcn.100d4230
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1007a13e
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp + 0xc]
mov dword [eax], esi
mov esi, dword [ebp - 8]
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi + 0x38]
mov eax, dword [eax]
mov dword [ecx + 0x20], eax
mov dword [edi], esi
xor esi, esi
mov dword [ebp - 8], esi
jmp 0x1007a050
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
shr eax, 2
sub eax, 2
cmp edi, eax
ja 0x1007a1a3
test cl, cl
je 0x10079e78
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x10079cf0
mov al, byte [ebp + 0x18]
jbe 0x10079e7b
cmp al, 2
jne 0x10079e7b
mov eax, dword [ebp + 0x10]
mov byte [ebp - 0x18], 0
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 8]
mov dword [eax], esi
push dword [esi + 0x48]
call fcn.100d4230
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1007a141
test edi, edi
jne 0x10079d5e
mov edi, dword [ebp - 0xc]
test edi, edi
jne 0x10079d37
mov ecx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x38]
mov dword [ebp - 8], edi
mov ecx, dword [ecx + 0x38]
mov eax, dword [eax]
mov dword [ecx + 0x20], eax
jmp 0x1007a050
push dword [edi + 0x48]
call fcn.100d4230
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1007a144
mov eax, dword [esi + 0x38]
mov ecx, dword [edi + 0x38]
mov dword [ebp - 8], ebx
mov eax, dword [eax]
mov dword [ecx], eax
jmp 0x1007a050
mov eax, dword [esi + 0x38]
mov esi, dword [eax + 8]
bswap esi
mov dword [ebp - 0x14], esi
cmp esi, dword [ebp - 0x24]
ja 0x1007a11b
push 0
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 8]
call fcn.1007eba0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1007a13e
mov eax, dword [ebp - 0x20]
push dword [eax + 0x48]
call fcn.100d4230
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1007a0c5
mov eax, dword [ebp - 8]
lea edx, [edi - 1]
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x20]
mov eax, dword [eax + 0x38]
mov ecx, dword [ecx + 0x38]
mov eax, dword [eax]
mov dword [ecx], eax
mov ecx, edx
mov eax, dword [edi + 0x38]
bswap ecx
mov dword [eax + 4], ecx
lea eax, [edx*4]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
add eax, 0xc
push eax
mov eax, dword [edi + 0x38]
add eax, 8
push eax
call fcn.10116d10
mov edx, dword [edi + 0x48]
add esp, 0xc
test byte [edx + 0x1c], 0x20
je 0x10079e31
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
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 ebx
push ecx
call fcn.1010cc90
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp - 0x14]
add esp, 0x10
jmp 0x10079e3a
push edx
call fcn.100d4f60
add esp, 4
mov edi, dword [ebp - 0xc]
test edi, edi
jne 0x10079e54
mov ecx, dword [ebp - 0x1c]
bswap esi
mov dword [ebp - 8], edi
mov eax, dword [ecx + 0x38]
mov dword [eax + 0x20], esi
jmp 0x1007a050
push dword [edi + 0x48]
call fcn.100d4230
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1007a1b2
mov eax, dword [edi + 0x38]
bswap esi
mov dword [ebp - 8], ebx
mov dword [eax], esi
jmp 0x1007a050
mov al, byte [ebp + 0x18]
test edi, edi
je 0x1007a050
mov esi, dword [ebp + 0x14]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test esi, esi
je 0x10079eb3
cmp al, 2
jne 0x10079ec0
test edi, edi
je 0x10079eb3
mov edx, dword [ebp - 0x10]
add edx, 8
nop dword [eax]
mov eax, dword [edx]
bswap eax
cmp eax, esi
jbe 0x10079eb8
inc ecx
add edx, 4
cmp ecx, edi
jb 0x10079ea0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
jmp 0x10079f2e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
jmp 0x10079f2e
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 8]
bswap edx
sub edx, esi
jns 0x10079edd
cmp edx, 0x80000000
jne 0x10079edb
mov edx, 0x7fffffff
jmp 0x10079edd
neg edx
mov esi, 1
cmp edi, esi
jbe 0x10079f2b
mov ebx, eax
nop dword [eax + eax]
mov eax, dword [ebx + esi*4 + 8]
bswap eax
sub eax, dword [ebp + 0x14]
jns 0x10079f0b
cmp eax, 0x80000000
jne 0x10079f09
mov eax, 0x7fffffff
jmp 0x10079f0b
neg eax
cmp eax, edx
mov ecx, esi
cmovge ecx, dword [ebp - 0x14]
inc esi
cmp eax, edx
mov dword [ebp - 0x14], ecx
cmovge eax, edx
mov edx, eax
cmp esi, edi
jb 0x10079ef0
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp + 0x14]
lea eax, [eax + ecx*4]
add eax, 8
mov dword [ebp - 0x30], eax
mov eax, dword [eax]
bswap eax
cmp eax, dword [ebp - 0x24]
ja 0x1007a197
cmp byte [ebp - 0x18], 0
je 0x10079f5e
cmp eax, esi
je 0x10079f5e
jae 0x1007a050
cmp byte [ebp + 0x18], 2
jne 0x1007a050
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
push dword [esi + 0x48]
call fcn.100d4230
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1007a141
lea ecx, [edi - 1]
cmp dword [ebp - 0x14], ecx
jae 0x10079f8f
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
mov eax, dword [eax + edi*4 + 4]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
bswap ecx
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov esi, dword [eax]
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x10079fbf
cmp esi, dword [eax]
ja 0x10079fbb
push esi
push eax
call fcn.100b6790
mov ecx, dword [ebp + 8]
add esp, 8
test eax, eax
je 0x10079fbf
xor eax, eax
jmp 0x10079fc4
mov eax, 1
mov edi, dword [ebp + 0xc]
push eax
push edi
push esi
push ecx
call fcn.1007eba0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1007a04c
mov eax, dword [edi]
push dword [eax + 0x48]
call fcn.100d4230
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1007a04c
mov edx, dword [edi]
test edx, edx
je 0x1007a046
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1007a03d
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
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
mov edi, dword [ebp + 0xc]
add esp, 0x10
jmp 0x1007a046
push edx
call fcn.100d4f60
add esp, 4
mov dword [edi], 0
mov byte [ebp - 0x18], 0
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x1007a0a8
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1007a09f
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
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
jmp 0x1007a0a8
push edx
call fcn.100d4f60
add esp, 4
xor edi, edi
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0xc], edi
je 0x1007a1b2
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
jmp 0x10079c18
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1007a110
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
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
jmp 0x1007a13e
push edx
call fcn.100d4f60
add esp, 4
jmp 0x1007a13e
push 0x10160abc
push 0x10e38
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10072040
mov ebx, 0xb
add esp, 0x14
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
test esi, esi
je 0x1007a1e5
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1007a1b7
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
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
mov edi, dword [ebp - 0xc]
add esp, 0x10
jmp 0x1007a1e5
push 0x10160abc
push 0x10e79
jmp 0x1007a125
push 0x10160abc
push 0x10e16
jmp 0x1007a125
mov esi, dword [ebp - 8]
jmp 0x1007a144
push edx
call fcn.100d4f60
add esp, 4
jmp 0x1007a1e5
push 0x10160abc
push 0x10df9
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10072040
add esp, 0x14
mov ebx, 0xb
test edi, edi
je 0x1007a3f8
mov edx, dword [edi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1007a23c
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
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 edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
call fcn.100d4f60
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x48]
mov ebx, ecx
xor eax, eax
cmp byte [ebx + 0x13], al
sete al
mov dword [ebp - 0x28], eax
call fcn.100d4230
add esp, 4
test eax, eax
jne 0x1007a3fa
mov eax, dword [0x1017c444]
xor edx, edx
div dword [ebx + 0x24]
inc dword [ebx + 0x30]
mov esi, dword [ebx + 0x30]
inc eax
cmp esi, eax
jne 0x1007a287
inc esi
mov dword [ebx + 0x30], esi
cmp byte [ebx + 0x11], 0
mov edi, esi
je 0x1007a34c
push esi
push ebx
call fcn.100a9d50
add esp, 8
cmp eax, esi
jne 0x1007a34c
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push esi
push ebx
call fcn.1007eba0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1007a3f8
mov esi, dword [ebp - 0x2c]
push dword [esi + 0x48]
call fcn.100d4230
mov edx, dword [esi + 0x48]
add esp, 4
mov ebx, eax
test byte [edx + 0x1c], 0x20
je 0x1007a31f
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
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
jmp 0x1007a328
push edx
call fcn.100d4f60
add esp, 4
test ebx, ebx
jne 0x1007a3f8
mov ebx, dword [ebp + 8]
xor edx, edx
mov eax, dword [0x1017c444]
div dword [ebx + 0x24]
inc dword [ebx + 0x30]
mov edi, dword [ebx + 0x30]
inc eax
cmp edi, eax
jne 0x1007a34c
inc edi
mov dword [ebx + 0x30], edi
mov eax, dword [ebx + 0xc]
push dword [ebp - 0x28]
mov esi, dword [ebp + 0xc]
bswap edi
mov eax, dword [eax + 0x38]
push esi
mov dword [eax + 0x1c], edi
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebp + 0x10]
push ecx
push ebx
mov dword [eax], ecx
call fcn.1007eba0
add esp, 0x10
test eax, eax
jne 0x1007a3fa
mov eax, dword [esi]
push dword [eax + 0x48]
call fcn.100d4230
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1007a3f8
mov edx, dword [esi]
test edx, edx
je 0x1007a3f2
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1007a3e9
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
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
mov esi, dword [ebp + 0xc]
add esp, 0x10
mov eax, ebx
pop edi
mov dword [esi], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
call fcn.100d4f60
add esp, 4
mov dword [esi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret