Function at 0x4a17a0
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 0x4a17f3
mov dword [esp + 0x18], 0
jmp 0x4a17fd
mov edx, dword [ebx + 0x150]
mov dword [esp + 0x18], edx
test al, 2
jne 0x4a182b
mov eax, dword [esp + 0x78]
push eax
push str.__recovering__with_sort__MyISAM_table__s_n
call fcn.004b7563
lea ecx, [esp + 0x38]
push ecx
push 0
push edi
call fcn.0048a7d0
push eax
push str.Data_records:__s_n
call fcn.004b7563
add esp, 0x1c
mov eax, dword [ebx + 0x108]
xor edi, edi
cmp eax, edi
jbe 0x4a1886
mov dword [esp + 0x1c], edi
nop
lea esp, [esp]
mov eax, 1
xor edx, edx
mov ecx, edi
call fcn.004b6370
and eax, dword [esp + 0x28]
and edx, dword [esp + 0x2c]
or eax, edx
je 0x4a1870
mov edx, dword [ebx + 0x140]
mov eax, dword [esp + 0x1c]
mov cl, byte [edx + eax + 2]
test cl, cl
js 0x4a197c
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x108]
inc edi
add ecx, 0x2c
cmp edi, eax
mov dword [esp + 0x1c], ecx
jb 0x4a1840
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.004a3a10
add esp, 0xc
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4a2117
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.004266d0
add esp, 0x20
test eax, eax
jne 0x4a2117
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x4a1927
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.004266d0
add esp, 0x20
test eax, eax
jne 0x4a2117
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.0047fff0
add esp, 8
test eax, eax
mov dword [ebp + 0xec], eax
jne 0x4a199b
push str.Not_enough_memory_for_extra_record
push edi
call fcn.0040cca0
add esp, 8
jmp 0x4a2117
mov ecx, dword [esp + 0x70]
push str.Can_t_use_repair_by_sort_with_FULLTEXT_key
push ecx
call fcn.0040cca0
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 0x4a1a60
mov ecx, dword [edi + 0x2a8]
mov edx, dword [esp + 0x78]
push 0
push ecx
push 0
push 6
push str..TMD
push 0x50f0d4
lea eax, [edi + 0xa0]
push edx
push eax
call fcn.00480410
add esp, 0x14
push eax
call fcn.004890a0
add esp, 0x10
test eax, eax
mov dword [esp + 0x10], eax
jge 0x4a19fd
lea eax, [edi + 0xa0]
push eax
push str.Cant_create_new_tempfile:__s
push edi
call fcn.0040cca0
add esp, 0xc
jmp 0x4a2117
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.004a1610
add esp, 0x20
test eax, eax
jne 0x4a2117
mov edi, dword [esp + 0x70]
mov eax, dword [edi + 0x94]
test ah, 2
je 0x4a1a4d
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 0x4a1ae1
mov ecx, dword [ebx + 0x178]
push 2
push ecx
call fcn.004823d0
mov ecx, dword [ebx + 0x108]
add esp, 8
xor eax, eax
test ecx, ecx
jbe 0x4a1aaa
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 0x4a1a93
jmp 0x4a1aad
or ecx, 0xffffffff
mov dl, byte [ebx + 0x15]
xor eax, eax
test dl, dl
jbe 0x4a1aca
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 0x4a1ab6
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 0x4a1b12
mov eax, dword [ebx + 0x178]
push 3
push eax
call fcn.004823d0
add esp, 8
test eax, eax
jne 0x4a2117
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.004a4040
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.004816f0
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 0x4a1b83
mov eax, dword [ebx + 0xec]
mov ecx, dword [ebx + 0xf4]
inc eax
cmp eax, ecx
ja 0x4a1b96
mov eax, ecx
jmp 0x4a1b96
cmp eax, 2
jne 0x4a1b90
mov eax, dword [ebx + 0xf4]
jmp 0x4a1b96
mov eax, dword [ebx + 0xe8]
test dword [edi + 0x94], 0x1000000
je 0x4a1ba9
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
jmp 0x4a1bba
mov edx, dword [ebp + 0x44]
push 0
push eax
mov eax, dword [ebp + 0x40]
push edx
push eax
call fcn.004b5e90
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], 0x4a32b0
mov dword [esp + 0x5c], 0x4a32e0
mov dword [esp + 0x58], 0x4a22a0
mov dword [esp + 0x60], fcn.004a1040
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 0x4a1c1d
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 0x4a1f5f
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.004b6370
and eax, dword [esp + 0x28]
and edx, dword [esp + 0x2c]
or eax, edx
jne 0x4a1ca1
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 0x4a1f2e
mov eax, dword [esp + 0x70]
test byte [eax + 0x94], 2
jne 0x4a1cbd
inc esi
push esi
push str.__Fixing_index__d_n
call fcn.004b7563
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 0x4a1cfa
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x4a1cfa
mov al, 1
jmp 0x4a1cfc
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 0x4a1d7f
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 0x4a1d54
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 0x4a1d6a
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 0x4a1d75
inc ecx
mov dword [esp + 0x64], ecx
add edx, 0x18
cmp byte [edx], 0
mov eax, edx
jne 0x4a1d30
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.004b3880
add esp, 0xc
test eax, eax
jne 0x4a1fe2
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 0x4a1e04
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.004a3de0
add esp, 0x14
mov ecx, dword [ebp + 0x14]
mov eax, 1
xor edx, edx
call fcn.004b6370
or dword [ebx + 0x78], eax
or dword [ebx + 0x7c], edx
mov al, byte [ebp + 0xe8]
test al, al
je 0x4a1ee0
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.004a3a80
add esp, 8
test eax, eax
jne 0x4a2117
lea eax, [esi + 0x128]
push eax
call fcn.00427040
add esp, 4
test eax, eax
jne 0x4a2117
test dword [edi + 0x94], 0x4000000
je 0x4a1e80
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [esp + 0x24]
inc edx
cmp edx, eax
jb 0x4a1fee
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.004b6b2f
mov dword [ebx + 0x84], eax
mov edx, dword [esi + 0x34]
push 0
push edx
call fcn.00480170
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 0x4a1eef
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.004a38a0
add esp, 4
test eax, eax
jne 0x4a2117
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.004268e0
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 0x4a1c36
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
mov eax, dword [edi + 0x94]
test ah, 1
je 0x4a1f86
push 0x50b4e0
push str.___________r
call fcn.004b7fd8
push 0x50b4e0
call fcn.004b6eab
add esp, 0xc
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4a1ff8
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 0x4a1fba
xor eax, eax
cmp ecx, eax
je 0x4a1ff8
push str.Couldnt_fix_table_with_quick_recovery:_Found_wrong_number_of_deleted_records
push edi
call fcn.0040cca0
push str.Run_recovery_again_without__q
push edi
call fcn.0040cca0
add esp, 0x10
mov dword [esp + 0x14], 1
mov byte [edi + 0x9d], 1
mov byte [edi + 0x9c], 1
jmp 0x4a2117
mov ecx, dword [esi + 4]
mov dword [ecx], eax
jmp 0x4a2117
cmp dword [esp + 0x7c], 1
je 0x4a2057
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 0x4a2022
cmp edx, dword [ebp + 0x44]
je 0x4a2057
mov ecx, dword [esi]
cmp dword [ecx + 0x128], 0
jne 0x4a2057
push 0
push edx
mov edx, dword [esi + 0x34]
push eax
push edx
call fcn.004891f0
add esp, 0x10
test eax, eax
je 0x4a2057
call fcn.00480930
mov eax, dword [eax]
push eax
push str.Cant_change_size_of_datafile___error:__d
push edi
call fcn.0040ce40
add esp, 0xc
test dword [edi + 0x94], 0x20000000
je 0x4a206c
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.004891f0
add esp, 0x10
test eax, eax
je 0x4a20a2
call fcn.00480930
mov eax, dword [eax]
push eax
push str.Cant_change_size_of_indexfile__error:__d
push edi
call fcn.0040ce40
add esp, 0xc
test byte [edi + 0x94], 2
jne 0x4a20f8
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
cmp dword [esp + 0x24], eax
je 0x4a20d1
lea edx, [esp + 0x30]
push edx
push 0
push eax
call fcn.0048a7d0
push eax
push str.Data_records:__s_n
call fcn.004b7563
add esp, 0x14
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x4c]
mov edx, eax
or edx, ecx
je 0x4a20f8
lea edx, [esp + 0x30]
push edx
push ecx
push eax
call fcn.0048a7d0
push eax
push str._s_records_have_been_removed
push edi
call fcn.0040ce40
add esp, 0x18
mov eax, dword [esi + 4]
lea edi, [ebx + 0x18]
cmp edi, eax
mov dword [esp + 0x14], 0
je 0x4a2117
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.004a1050
or dword [esp + 0x1c], eax
lea ecx, [esi + 0x128]
push ecx
call fcn.00427040
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x4a21ab
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x4a220f
push 0
push eax
call fcn.00480170
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.004a15a0
add esp, 0x1c
test eax, eax
jne 0x4a21a3
push ebx
push esi
call fcn.0049c720
add esp, 8
test eax, eax
je 0x4a220f
mov dword [esp + 0x14], 1
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x4a21c8
call fcn.00480930
mov edx, dword [eax]
push edx
push str._d_when_fixing_table
push edi
call fcn.0040cca0
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x4a2200
push 0
push eax
call fcn.00480170
mov ecx, dword [ebx + 0x12c]
push ecx
lea edx, [edi + 0xa0]
push edx
call fcn.00482780
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x34]
add esp, 0x10
cmp ecx, eax
jne 0x4a2200
mov dword [esi + 0x34], 0xffffffff
mov eax, dword [esi]
or byte [eax + 0x9c], 6
or dword [esi + 0x54], 1
jmp 0x4a2228
mov ecx, dword [esp + 0x28]
cmp ecx, dword [ebx + 0x78]
jne 0x4a2228
mov edx, dword [esp + 0x2c]
cmp edx, dword [ebx + 0x7c]
jne 0x4a2228
and byte [ebx + 0x9c], 0xef
or byte [ebx + 0x9c], 0x20
mov eax, dword [ebp + 0xc]
push eax
call fcn.00480080
mov ecx, dword [ebp + 0xec]
push ecx
call fcn.00480080
mov edx, dword [ebp + 0xf0]
push edx
call fcn.00480080
lea eax, [edi + 0x2b0]
push eax
call fcn.00427040
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 0x4a2289
mov eax, dword [edi + 0x94]
test ah, 2
je 0x4a2289
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