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

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x60]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x70]
mov ebx, dword [esi]
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x7c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 4]
lea ebp, [eax + 0x300]
mov eax, dword [eax + 0x94]
test ah, 2
push edi
mov edi, dword [ecx]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0xffffffff
je 0x407633
mov dword [esp + 0x18], 0
jmp 0x40763d
mov edx, dword [ebx + 0x150]
mov dword [esp + 0x18], edx
test al, 2
jne 0x40766b
mov eax, dword [esp + 0x78]
push eax
push str.__recovering__with_sort__MyISAM_table__s_n
call fcn.00427148
lea ecx, [esp + 0x38]
push ecx
push 0
push edi
call fcn.00423a10
push eax
push str.Data_records:__s_n
call fcn.00427148
add esp, 0x1c
mov eax, dword [ebx + 0x108]
xor edi, edi
cmp eax, edi
jbe 0x4076c6
mov dword [esp + 0x1c], edi
nop
lea esp, [esp]
mov eax, 1
xor edx, edx
mov ecx, edi
call fcn.004277d0
and eax, dword [esp + 0x28]
and edx, dword [esp + 0x2c]
or eax, edx
je 0x4076b0
mov edx, dword [ebx + 0x140]
mov eax, dword [esp + 0x1c]
mov cl, byte [edx + eax + 2]
test cl, cl
js 0x4077bc
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x108]
inc edi
add ecx, 0x2c
cmp edi, eax
mov dword [esp + 0x1c], ecx
jb 0x407680
xor eax, eax
mov ecx, 0x40
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x70]
mov edx, dword [ebx + 0x118]
mov ecx, dword [eax + 0x70]
push edx
push ecx
push eax
call fcn.00409850
add esp, 0xc
test eax, eax
mov dword [ebp + 0xc], eax
je 0x407f57
mov edx, dword [ebx + 0x150]
mov ecx, dword [esp + 0x70]
push 0x10
push 1
push 0
push edx
mov edx, dword [esi + 0x34]
lea eax, [ecx + 0x2b0]
mov ecx, dword [ecx + 0x64]
push 0
push ecx
push edx
push eax
call fcn.0041ed60
add esp, 0x20
test eax, eax
jne 0x407f57
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x407767
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx + 0x2ac]
mov edx, dword [esp + 0x18]
and eax, 0x30
push eax
push 1
xor eax, eax
push eax
mov eax, dword [ecx + 0x68]
mov ecx, dword [esi + 0x34]
push edx
push 1
push eax
push ecx
lea edx, [esi + 0x128]
push edx
call fcn.0041ed60
add esp, 0x20
test eax, eax
jne 0x407f57
mov edi, dword [esp + 0x70]
mov eax, dword [edi + 0x70]
mov ecx, dword [ebp + 0xc]
imul eax, eax, 0x41c
add eax, ecx
mov dword [ebp + 0x10], eax
mov edx, dword [esi + 0x50]
mov ecx, dword [esi + 0x34]
or edx, 0x10
mov dword [esi + 0x50], edx
mov dword [esi + 0x158], ecx
mov edx, dword [ebx + 0xe8]
push 0
push edx
call fcn.004209f0
add esp, 8
test eax, eax
mov dword [ebp + 0xec], eax
jne 0x4077db
push str.Not_enough_memory_for_extra_record
push edi
call fcn.004038a0
add esp, 8
jmp 0x407f57
mov ecx, dword [esp + 0x70]
push str.Can_t_use_repair_by_sort_with_FULLTEXT_key
push ecx
call fcn.004038a0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5c
ret
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x4078a0
mov ecx, dword [edi + 0x2a8]
mov edx, dword [esp + 0x78]
push 0
push ecx
push 0
push 6
push str..TMD
push 0x450448
lea eax, [edi + 0xa0]
push edx
push eax
call fcn.00420340
add esp, 0x14
push eax
call fcn.00420b40
add esp, 0x10
test eax, eax
mov dword [esp + 0x10], eax
jge 0x40783d
lea eax, [edi + 0xa0]
push eax
push str.Cant_create_new_tempfile:__s
push edi
call fcn.004038a0
add esp, 0xc
jmp 0x407f57
mov edx, dword [esi + 0x34]
push str.datafile_header
xor ecx, ecx
push ecx
mov ecx, dword [esp + 0x20]
push ecx
push 0
push 0
push edx
push eax
push edi
call fcn.00407450
add esp, 0x20
test eax, eax
jne 0x407f57
mov edi, dword [esp + 0x70]
mov eax, dword [edi + 0x94]
test ah, 2
je 0x40788d
mov edx, dword [ebx + 0x170]
and edx, 0xfffffffb
mov eax, edx
mov byte [ebx + 5], al
shr eax, 8
mov dword [ebx + 0x170], edx
mov byte [ebx + 4], al
or eax, 0xffffffff
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x158], eax
mov dword [esi + 0x54], 0x401
test dword [edi + 0x94], 0x2000000
jne 0x407921
mov ecx, dword [ebx + 0x178]
push 2
push ecx
call fcn.0041fd80
mov ecx, dword [ebx + 0x108]
add esp, 8
xor eax, eax
test ecx, ecx
jbe 0x4078ea
or ecx, 0xffffffff
mov edx, dword [ebx + 0x68]
mov dword [edx + eax*8], ecx
mov dword [edx + eax*8 + 4], ecx
mov edx, dword [ebx + 0x108]
inc eax
cmp eax, edx
jb 0x4078d3
jmp 0x4078ed
or ecx, 0xffffffff
mov dl, byte [ebx + 0x15]
xor eax, eax
test dl, dl
jbe 0x40790a
mov edx, dword [ebx + 0x6c]
mov dword [edx + eax*8], ecx
mov dword [edx + eax*8 + 4], ecx
xor edx, edx
mov dl, byte [ebx + 0x15]
inc eax
cmp eax, edx
jb 0x4078f6
mov eax, dword [esi + 4]
mov ecx, dword [ebx + 0xb8]
mov dword [eax + 0x18], ecx
mov edx, dword [ebx + 0xbc]
mov dword [eax + 0x1c], edx
jmp 0x407952
mov eax, dword [ebx + 0x178]
push 3
push eax
call fcn.0041fd80
add esp, 8
test eax, eax
jne 0x407f57
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x70]
not ecx
not edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
push ebx
push ebp
push edi
mov dword [ebp], esi
mov dword [ebp + 4], edi
call fcn.0040a410
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x30], eax
xor eax, eax
push eax
push 2
push eax
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0xf0], eax
mov ecx, dword [edi + 0x2e0]
push eax
push ecx
call fcn.004212e0
mov dword [ebp + 0x44], edx
mov dword [ebp + 0x40], eax
mov edx, eax
mov dword [edi + 0x2b8], edx
mov eax, dword [ebp + 0x44]
mov dword [edi + 0x2bc], eax
mov eax, dword [ebx + 0x1b8]
add esp, 0x20
cmp eax, 1
jne 0x4079c3
mov eax, dword [ebx + 0xec]
mov ecx, dword [ebx + 0xf4]
inc eax
cmp eax, ecx
ja 0x4079d6
mov eax, ecx
jmp 0x4079d6
cmp eax, 2
jne 0x4079d0
mov eax, dword [ebx + 0xf4]
jmp 0x4079d6
mov eax, dword [ebx + 0xe8]
test dword [edi + 0x94], 0x1000000
je 0x4079e9
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
jmp 0x4079fa
mov edx, dword [ebp + 0x44]
push 0
push eax
mov eax, dword [ebp + 0x40]
push edx
push eax
call fcn.00427bc0
inc eax
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x2a4]
mov edx, dword [edi + 0x2ac]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], 0x4090f0
mov dword [esp + 0x5c], 0x409120
mov dword [esp + 0x58], 0x4080e0
mov dword [esp + 0x60], fcn.00406e00
mov dword [esp + 0x68], edx
mov dword [esp + 0x4c], ebp
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0x94]
xor eax, eax
test ecx, 0x20000000
mov dword [edi + 0x5c], eax
je 0x407a5d
mov byte [edi + 0x9f], 1
mov dword [ebp + 0x14], eax
cmp dword [ebx + 0x108], eax
lea edx, [edi + 0x588]
mov dword [esp + 0x78], edx
jbe 0x407d9f
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebx + 0x140]
mov eax, esi
imul eax, eax, 0x2c
lea edi, [eax + ecx]
mov eax, 1
xor edx, edx
mov ecx, esi
mov dword [ebp + 0xf4], edi
call fcn.004277d0
and eax, dword [esp + 0x28]
and edx, dword [esp + 0x2c]
or eax, edx
jne 0x407ae1
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
xor ecx, ecx
mov cx, word [edi]
mov edi, dword [ebx + 0xa8]
mov esi, eax
sub esi, edx
sub esi, 0x588
sar esi, 2
add esi, edi
shl ecx, 2
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x407d6e
mov eax, dword [esp + 0x70]
test byte [eax + 0x94], 2
jne 0x407afd
inc esi
push esi
push str.__Fixing_index__d_n
call fcn.00427148
add esp, 8
mov ecx, dword [ebx + 0x150]
mov dword [ebp + 0x24], 0
mov eax, dword [ebp + 0x24]
mov edx, ecx
mov dword [ebp + 0x20], ecx
mov ecx, dword [ebp + 0xf4]
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp + 0x14]
test eax, eax
mov dword [ebp + 0x28], edx
mov edx, dword [ecx + 0x14]
mov dword [ebp + 0xf8], edx
jne 0x407b3a
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x407b3a
mov al, 1
jmp 0x407b3c
xor al, al
mov byte [ebp + 0xe8], al
xor eax, eax
lea edi, [ebp + 0x60]
mov ecx, 0x22
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x174]
mov eax, dword [ebp + 0xf8]
mov dword [esp + 0x64], ecx
cmp byte [eax], 0
je 0x407bbf
mov edx, eax
mov esi, 0xff
lea ebx, [ebx]
xor edi, edi
mov di, word [eax + 8]
add ecx, edi
mov dword [esp + 0x64], ecx
test byte [eax + 6], 1
je 0x407b94
cmp word [eax + 8], si
sbb edi, edi
and edi, 0xfffffffe
add edi, 3
add ecx, edi
mov dword [esp + 0x64], ecx
test byte [eax + 6], 0x28
je 0x407baa
cmp word [eax + 8], 0x7f
sbb edi, edi
inc edi
lea ecx, [ecx + edi + 2]
mov dword [esp + 0x64], ecx
test byte [eax + 6], 0x10
je 0x407bb5
inc ecx
mov dword [esp + 0x64], ecx
add edx, 0x18
cmp byte [edx], 0
mov eax, edx
jne 0x407b70
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
xor eax, eax
mov dword [ebx + 0x40], eax
mov ecx, dword [esi + 4]
mov dword [ecx + 4], eax
mov edx, dword [esi + 4]
mov dword [edx], eax
mov ecx, dword [esi + 4]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov al, byte [edi + 0x94]
mov edx, dword [edi + 0x6c]
not al
push edx
lea ecx, [esp + 0x4c]
and eax, 0xffffff01
push eax
push ecx
call fcn.00419d90
add esp, 0xc
test eax, eax
jne 0x407e22
mov byte [edi + 0x9f], al
mov edx, dword [esi + 4]
mov eax, dword [edx]
mov dword [ebp + 0x58], eax
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x94]
test ah, 4
je 0x407c44
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [esp + 0x78]
push 0
push ecx
lea eax, [ebp + 0x60]
push eax
mov eax, dword [ebp + 0xf4]
push edx
push eax
call fcn.0040a240
add esp, 0x14
mov ecx, dword [ebp + 0x14]
mov eax, 1
xor edx, edx
call fcn.004277d0
or dword [ebx + 0x78], eax
or dword [ebx + 0x7c], edx
mov al, byte [ebp + 0xe8]
test al, al
je 0x407d20
mov ecx, dword [ebp + 0x30]
mov dword [edi + 0x2b8], ecx
mov edx, dword [ebp + 0x34]
push esi
push edi
mov dword [edi + 0x2bc], edx
call fcn.00409ee0
add esp, 8
test eax, eax
jne 0x407f57
lea eax, [esi + 0x128]
push eax
call fcn.0041f540
add esp, 4
test eax, eax
jne 0x407f57
test dword [edi + 0x94], 0x4000000
je 0x407cc0
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [esp + 0x24]
inc edx
cmp edx, eax
jb 0x407e2e
mov ecx, dword [ebp + 0x30]
mov eax, dword [esi + 4]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp + 0x34]
mov dword [eax + 0x24], edx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x20]
mov dword [ebx + 0x38], ecx
mov edx, dword [eax + 0x24]
mov dword [ebx + 0x3c], edx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
add ecx, dword [eax]
push 0
mov dword [ebx + 0x40], ecx
call fcn.004278ab
mov dword [ebx + 0x84], eax
mov edx, dword [esi + 0x34]
push 0
push edx
call fcn.00420180
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x34], eax
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ebx + 0x1b8], ecx
mov dword [ebx + 0x150], edx
jmp 0x407d2f
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0x28]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp + 0x2c]
mov dword [eax + 0x24], edx
push edi
call fcn.004096e0
add esp, 4
test eax, eax
jne 0x407f57
mov eax, dword [esi + 0x34]
push 1
push 1
mov dword [edi + 0x2e0], eax
mov ecx, dword [ebx + 0x150]
push 0
push ecx
push 0
add edi, 0x2b0
push edi
call fcn.0041ef30
mov eax, dword [esp + 0x90]
add esp, 0x18
mov edx, dword [ebp + 0xf4]
xor ecx, ecx
mov cx, word [edx]
lea edx, [eax + ecx*4]
mov dword [esp + 0x78], edx
mov edx, dword [ebp + 0x14]
inc edx
mov dword [ebp + 0x14], edx
mov ecx, dword [ebx + 0x108]
mov eax, edx
cmp eax, ecx
jb 0x407a76
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
mov eax, dword [edi + 0x94]
test ah, 1
je 0x407dc6
push 0x44ccd8
push str.___________r
call fcn.0042785d
push 0x44ccd8
call fcn.00427201
add esp, 0xc
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x407e38
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x48]
add eax, ecx
mov ecx, dword [ebp + 0x4c]
mov dword [esp + 0x20], 0
adc ecx, dword [esp + 0x20]
mov edx, dword [esi + 4]
mov edx, dword [edx + 4]
cmp eax, edx
mov dword [esp + 0x1c], edx
jne 0x407dfa
xor eax, eax
cmp ecx, eax
je 0x407e38
push str.Couldnt_fix_table_with_quick_recovery:_Found_wrong_number_of_deleted_records
push edi
call fcn.004038a0
push str.Run_recovery_again_without__q
push edi
call fcn.004038a0
add esp, 0x10
mov dword [esp + 0x14], 1
mov byte [edi + 0x9d], 1
mov byte [edi + 0x9c], 1
jmp 0x407f57
mov ecx, dword [esi + 4]
mov dword [ecx], eax
jmp 0x407f57
cmp dword [esp + 0x7c], 1
je 0x407e97
mov eax, dword [ebx + 0x170]
mov ecx, dword [esi + 4]
and al, 4
neg al
sbb eax, eax
and eax, 7
cdq
add eax, dword [ecx + 0x20]
adc edx, dword [ecx + 0x24]
cmp eax, dword [ebp + 0x40]
jne 0x407e62
cmp edx, dword [ebp + 0x44]
je 0x407e97
mov ecx, dword [esi]
cmp dword [ecx + 0x128], 0
jne 0x407e97
push 0
push edx
mov edx, dword [esi + 0x34]
push eax
push edx
call fcn.00421360
add esp, 0x10
test eax, eax
je 0x407e97
call fcn.00420640
mov eax, dword [eax]
push eax
push str.Cant_change_size_of_datafile___error:__d
push edi
call fcn.00403800
add esp, 0xc
test dword [edi + 0x94], 0x20000000
je 0x407eac
mov ecx, dword [edi + 0x5c]
mov dword [ebx + 0x80], ecx
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x1c]
mov ecx, dword [edx + 0x18]
mov edx, dword [ebx + 0x178]
push 0
push eax
push ecx
push edx
call fcn.00421360
add esp, 0x10
test eax, eax
je 0x407ee2
call fcn.00420640
mov eax, dword [eax]
push eax
push str.Cant_change_size_of_indexfile__error:__d
push edi
call fcn.00403800
add esp, 0xc
test byte [edi + 0x94], 2
jne 0x407f38
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
cmp dword [esp + 0x24], eax
je 0x407f11
lea edx, [esp + 0x30]
push edx
push 0
push eax
call fcn.00423a10
push eax
push str.Data_records:__s_n
call fcn.00427148
add esp, 0x14
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x4c]
mov edx, eax
or edx, ecx
je 0x407f38
lea edx, [esp + 0x30]
push edx
push ecx
push eax
call fcn.00423a10
push eax
push str._s_records_have_been_removed
push edi
call fcn.00403800
add esp, 0x18
mov eax, dword [esi + 4]
lea edi, [ebx + 0x18]
cmp edi, eax
mov dword [esp + 0x14], 0
je 0x407f57
mov ecx, 0xa
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x74]
mov eax, dword [ebx + 0x178]
mov edi, dword [esp + 0x70]
push eax
push edi
call fcn.00406e10
or dword [esp + 0x1c], eax
lea ecx, [esi + 0x128]
push ecx
call fcn.0041f540
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x407feb
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x40804f
push 0
push eax
call fcn.00420180
or eax, 0xffffffff
mov dword [esi + 0x34], eax
mov edx, dword [edi + 0x94]
mov ecx, dword [ebx + 0x15c]
shr edx, 0x14
and edx, 0x100
push edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x12c]
push eax
push str..TMD
push str..MYD
push ecx
call fcn.00407360
add esp, 0x1c
test eax, eax
jne 0x407fe3
push ebx
push esi
call fcn.0040d150
add esp, 8
test eax, eax
je 0x40804f
mov dword [esp + 0x14], 1
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x408008
call fcn.00420640
mov edx, dword [eax]
push edx
push str._d_when_fixing_table
push edi
call fcn.004038a0
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x408040
push 0
push eax
call fcn.00420180
mov ecx, dword [ebx + 0x12c]
push ecx
lea edx, [edi + 0xa0]
push edx
call fcn.00420ae0
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x34]
add esp, 0x10
cmp ecx, eax
jne 0x408040
mov dword [esi + 0x34], 0xffffffff
mov eax, dword [esi]
or byte [eax + 0x9c], 6
or dword [esi + 0x54], 1
jmp 0x408068
mov ecx, dword [esp + 0x28]
cmp ecx, dword [ebx + 0x78]
jne 0x408068
mov edx, dword [esp + 0x2c]
cmp edx, dword [ebx + 0x7c]
jne 0x408068
and byte [ebx + 0x9c], 0xef
or byte [ebx + 0x9c], 0x20
mov eax, dword [ebp + 0xc]
push eax
call fcn.00420a80
mov ecx, dword [ebp + 0xec]
push ecx
call fcn.00420a80
mov edx, dword [ebp + 0xf0]
push edx
call fcn.00420a80
lea eax, [edi + 0x2b0]
push eax
call fcn.0041f540
mov ecx, dword [esi + 0x50]
mov eax, dword [esp + 0x24]
and ecx, 0xffffffed
add esp, 0x10
test eax, eax
mov dword [esi + 0x50], ecx
jne 0x4080c9
mov eax, dword [edi + 0x94]
test ah, 2
je 0x4080c9
and byte [ebx + 4], 0xfb
mov dword [ebx + 0x150], 0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret