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

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax]
sub esp, 0x4ec
push ebx
push ebp
xor ebp, ebp
cmp ecx, ebp
push esi
push edi
jne 0x54072b
mov dword [esp + 0x98], ecx
cmp dword [eax + 4], 0xa
mov dword [esp + 0x28], 1
jb 0x54072f
mov dword [esp + 0x28], ebp
push str.SYS_INDEXES
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xac], ebp
mov dword [esp + 0x2c4], ebp
mov dword [esp + 0x2c8], ebp
mov dword [esp + 0x4e8], 0x15
mov dword [esp + 0x4e0], ebp
mov dword [esp + 0x4e4], ebp
call fcn.0053e670
add esp, 4
cmp eax, ebp
mov dword [esp + 0x20], eax
jne 0x54078a
push str.SYS_INDEXES
call fcn.0053f150
add esp, 4
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x504]
mov ebx, dword [eax + 0x30]
push 0x34
push esi
call fcn.004e0640
mov edi, eax
mov dword [edi], ebp
mov eax, 1
mov dword [edi + 4], eax
mov dword [edi + 8], eax
lea ebp, [edi + 0x1c]
mov dword [edi + 0xc], ebp
mov eax, dword [esi + 0x18]
mov edx, dword [eax + 0x30]
mov ecx, dword [eax + 0x24]
add edx, 8
add esp, 8
cmp ecx, edx
jae 0x5407db
push 8
push esi
call fcn.004edaf0
add esp, 8
test eax, eax
jne 0x5407db
xor esi, esi
mov dword [esp + 0x1c], esi
jmp 0x5407ec
mov ecx, dword [eax + 0x30]
lea edx, [ecx + 8]
add ecx, eax
mov dword [eax + 0x30], edx
mov dword [esp + 0x1c], ecx
mov esi, ecx
mov ecx, dword [esp + 0x500]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov edx, eax
shr edx, 0x18
mov byte [esi], dl
mov edx, eax
shr edx, 0x10
mov byte [esi + 1], dl
mov edx, eax
mov byte [esi + 3], al
push ecx
lea eax, [esi + 4]
shr edx, 8
push eax
mov byte [esi + 2], dl
call fcn.004f9d20
push 1
push ebx
push edi
mov dword [ebp], esi
mov dword [ebp + 4], 8
call fcn.0050d380
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x4c]
push edx
push 1
push 2
push edi
push ebx
call fcn.00554ad0
mov eax, dword [esp + 0x64]
add esp, 0x2c
jmp 0x540854
mov esi, dword [esp + 0x1c]
push eax
call fcn.004e8c30
lea ecx, [eax + 0x65]
mov eax, dword [esp + 0x3c]
add esp, 4
cmp ecx, eax
je 0x540def
push eax
call fcn.004e8c30
mov ebp, dword [esp + 0x3c]
add eax, 0x74
add esp, 4
cmp eax, ebp
je 0x540def
lea edx, [esp + 0x10]
push edx
xor ebx, ebx
push ebx
push ebp
mov dword [esp + 0x24], ebp
call fcn.00557d10
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov edi, eax
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x540df1
test byte [ebp - 6], 0x20
jne 0x540e73
lea ecx, [esp + 0x10]
push ecx
push 1
push ebp
call fcn.00557d10
xor ecx, ecx
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + 1]
add eax, 4
push eax
shl ecx, 8
add ecx, edx
xor edx, edx
mov dl, byte [eax - 2]
shl ecx, 8
add ecx, edx
xor edx, edx
mov dl, byte [eax - 1]
shl ecx, 8
add ecx, edx
mov dword [esp + 0x40], ecx
call fcn.004ed520
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x38]
mov eax, dword [edx + 0x40]
mov esi, dword [eax + 0x10]
add esp, 0x10
mov eax, str.NAME
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x540932
test cl, cl
je 0x54092e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x540932
add eax, 2
add esi, 2
test cl, cl
jne 0x54090e
xor eax, eax
jmp 0x540937
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
cmp eax, ebx
mov eax, dword [0x631438]
sete cl
add ecx, eax
jne 0x5409ce
push 0x620ad0
call fcn.004e70c0
add esp, 4
push 0x1e4
push str.C:4017_buildmysql_4.0.17innobasedictdict0load.c
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
call fcn.004d1950
add esp, 4
push eax
push str.__InnoDB:_Assertion_failure_in_thread__lu_in_file__s_line__lu_n
push 0x620ad0
call fcn.00599e71
push str.InnoDB:_Failing_assertion:_0__ut_strcmp__char__NAME___dict_field_get_col__dict_index_get_nth_field__dict_table_get_first_index_sys_indexes___4____name_
push 0x620ad0
call fcn.00599e71
push str._nInnoDB:_We_intentionally_generate_a_memory_trap._n
push 0x620ad0
call fcn.00599e71
push str.InnoDB:_Send_a_detailed_bug_report_to_mysql_lists.mysql.com_n
push 0x620ad0
call fcn.00599e71
mov edx, dword [0x631440]
mov dword [0x63143c], 1
mov eax, dword [edx]
add esp, 0x2c
cmp eax, ebx
je 0x5409d6
mov dword [0x631440], ebx
jmp 0x5409d6
cmp dword [0x63143c], ebx
je 0x540a0b
push 0x1e4
push str.C:4017_buildmysql_4.0.17innobasedictdict0load.c
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
call fcn.004d1950
add esp, 4
push eax
push str.InnoDB:_Thread__lu_stopped_in_file__s_line__lu_n
push 0x620ad0
call fcn.00599e71
push 0x3b9aca00
call fcn.004e7040
add esp, 0x18
lea eax, [esp + 0x24]
push eax
push 4
push ebp
call fcn.00557d10
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x510]
add esp, 0xc
inc ecx
mov esi, eax
mov eax, dword [edx + 0x18]
mov ebx, dword [eax + 0x30]
lea edi, [ecx + 7]
and edi, 0xfffffff8
add ebx, edi
cmp dword [eax + 0x24], ebx
jae 0x540a50
push ecx
push edx
call fcn.004edaf0
add esp, 8
test eax, eax
jne 0x540a50
mov dword [esp + 0x14], eax
jmp 0x540a60
mov ecx, dword [eax + 0x30]
add edi, ecx
add ecx, eax
mov dword [eax + 0x30], edi
mov dword [esp + 0x14], ecx
mov eax, ecx
mov ecx, dword [esp + 0x24]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
push 5
push ebp
mov byte [eax + ecx], 0
call fcn.00557d10
xor ebx, ebx
mov bl, byte [eax]
xor ecx, ecx
mov cl, byte [eax + 1]
xor edx, edx
mov dl, byte [eax + 2]
shl ebx, 8
add ebx, ecx
shl ebx, 8
xor ecx, ecx
mov cl, byte [eax + 3]
add ebx, edx
lea edx, [esp + 0x1c]
push edx
push 6
shl ebx, 8
push ebp
add ebx, ecx
call fcn.00557d10
xor ecx, ecx
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + 1]
mov ebp, ecx
shl ebp, 8
add ebp, edx
xor ecx, ecx
mov cl, byte [eax + 2]
xor edx, edx
mov dl, byte [eax + 3]
shl ebp, 8
lea eax, [esp + 0x28]
push eax
push 7
add ebp, ecx
mov ecx, dword [esp + 0x38]
shl ebp, 8
push ecx
add ebp, edx
call fcn.00557d10
xor edx, edx
mov dl, byte [eax]
xor ecx, ecx
mov cl, byte [eax + 1]
add esp, 0x24
mov edi, str.PAGE_NO
mov esi, edx
xor edx, edx
mov dl, byte [eax + 2]
shl esi, 8
add esi, ecx
xor ecx, ecx
mov cl, byte [eax + 3]
shl esi, 8
add esi, edx
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x30]
shl esi, 8
add esi, ecx
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx + 0x80]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x2c], esi
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x540b54
test cl, cl
je 0x540b50
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x540b54
add edi, 2
add eax, 2
test cl, cl
jne 0x540b30
xor eax, eax
jmp 0x540b59
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
mov eax, dword [0x631438]
sete cl
add ecx, eax
jne 0x540bf4
push 0x620ad0
call fcn.004e70c0
add esp, 4
push 0x1f8
push str.C:4017_buildmysql_4.0.17innobasedictdict0load.c
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
call fcn.004d1950
add esp, 4
push eax
push str.__InnoDB:_Assertion_failure_in_thread__lu_in_file__s_line__lu_n
push 0x620ad0
call fcn.00599e71
push str.InnoDB:_Failing_assertion:_0__ut_strcmp__char___PAGE_NO___dict_field_get_col__dict_index_get_nth_field__dict_table_get_first_index_sys_indexes___8____name_
push 0x620ad0
call fcn.00599e71
push str._nInnoDB:_We_intentionally_generate_a_memory_trap._n
push 0x620ad0
call fcn.00599e71
push str.InnoDB:_Send_a_detailed_bug_report_to_mysql_lists.mysql.com_n
push 0x620ad0
call fcn.00599e71
mov edx, dword [0x631440]
mov dword [0x63143c], 1
mov eax, dword [edx]
add esp, 0x2c
test eax, eax
je 0x540bfd
mov dword [0x631440], 0
jmp 0x540bfd
mov eax, dword [0x63143c]
test eax, eax
je 0x540c32
push 0x1f8
push str.C:4017_buildmysql_4.0.17innobasedictdict0load.c
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
call fcn.004d1950
add esp, 4
push eax
push str.InnoDB:_Thread__lu_stopped_in_file__s_line__lu_n
push 0x620ad0
call fcn.00599e71
push 0x3b9aca00
call fcn.004e7040
add esp, 0x18
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 8
push ecx
call fcn.00557d10
xor edx, edx
mov dl, byte [eax]
xor ecx, ecx
mov cl, byte [eax + 1]
add esp, 0xc
mov edi, edx
shl edi, 8
add edi, ecx
xor edx, edx
mov dl, byte [eax + 2]
xor ecx, ecx
mov cl, byte [eax + 3]
shl edi, 8
add edi, edx
shl edi, 8
add edi, ecx
cmp edi, 0xffffffff
mov dword [esp + 0x18], edi
je 0x540ee8
mov eax, ebp
and eax, 1
jne 0x540c90
mov ecx, dword [esp + 0x500]
mov edx, dword [ecx + 0x30]
test edx, edx
je 0x540f48
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x540ceb
test eax, eax
jne 0x540d38
mov edx, dword [0x6314ec]
mov eax, dword [esp + 0x500]
cmp eax, dword [edx + 0x54]
jne 0x540ceb
or ecx, 0xffffffff
xor eax, eax
mov edi, str.ID_IND
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x24]
not ecx
dec ecx
cmp eax, ecx
jne 0x540ce7
mov esi, dword [esp + 0x14]
mov ecx, eax
mov edi, str.ID_IND
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x540cdf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x540d38
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x500]
mov eax, dword [edx + 0x10]
push ebx
push ebp
push esi
push ecx
push eax
call fcn.00513db0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0xb0]
mov esi, eax
mov eax, dword [esp + 0x518]
push eax
mov dword [esi + 0x20], edi
mov edi, dword [esp + 0x518]
push esi
mov dword [esi], ecx
push edi
mov dword [esi + 4], edx
call fcn.00540ff0
push esi
push edi
call fcn.0050cd10
add esp, 0x28
mov eax, dword [esp + 0x38]
mov dword [esp + 0x70], 0x7514483
push eax
call fcn.004e8c30
lea ecx, [eax + 0x74]
mov eax, dword [esp + 0x3c]
add esp, 4
cmp ecx, eax
push eax
jne 0x540da2
call fcn.004e8c30
add eax, 0xc
push eax
call fcn.004ed520
add esp, 8
cmp eax, 0xffffffff
jne 0x540d8b
mov edx, dword [esp + 0x38]
push edx
call fcn.004e8c30
lea ecx, [eax + 0x74]
mov eax, dword [esp + 0x3c]
add esp, 4
cmp ecx, eax
je 0x540850
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00553e20
add esp, 8
jmp 0x540db6
call fcn.004e8d60
add esp, 4
mov dword [esp + 0x38], eax
mov dword [esp + 0x70], 0x7514483
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004e8c30
lea edx, [eax + 0x65]
mov eax, dword [esp + 0x3c]
add esp, 4
cmp edx, eax
je 0x540d44
push eax
call fcn.004e8c30
lea ecx, [eax + 0x74]
mov eax, dword [esp + 0x3c]
add esp, 4
cmp ecx, eax
je 0x540d44
jmp 0x540850
xor ebx, ebx
mov ebp, dword [esp + 0x90]
cmp ebp, ebx
je 0x540e30
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x28]
add ebp, 0xffffffc0
cmp eax, ebx
je 0x540e12
push ebp
call fcn.004edde0
add esp, 4
cmp esi, ebx
je 0x540e29
mov edi, dword [esi + 0x1c]
push esi
push ebp
call fcn.004edc60
add esp, 8
cmp edi, ebx
mov esi, edi
jne 0x540e16
mov dword [esp + 0x90], ebx
lea edx, [esp + 0xa0]
push edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], 0x7514483
mov dword [esp + 0x70], 3
mov dword [esp + 0x88], 0x4f36e539
call fcn.0054f250
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4ec
ret
mov eax, dword [esp + 0x500]
mov ecx, dword [eax + 0x10]
push ecx
push str.InnoDB:_Error:_data_dictionary_entry_for_table__s_is_corrupt__nInnoDB:_An_index_is_delete_marked._n
push 0x620ad0
call fcn.00599e71
mov eax, dword [esp + 0x9c]
add esp, 0xc
cmp eax, ebx
je 0x540eb8
push 0x260
add eax, 0xffffffc0
push str..._innobase_include_btr0pcur.ic
push eax
call fcn.00525b10
add esp, 0xc
mov dword [esp + 0x90], ebx
lea edx, [esp + 0xa0]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], 0x7514483
mov dword [esp + 0x6c], 3
mov dword [esp + 0x84], 0x4f36e539
push edx
jmp 0x540fcd
mov eax, dword [esp + 0x500]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
push str.InnoDB:_Error:_trying_to_load_index__s_for_table__s_nInnoDB:_but_the_index_tree_has_been_freed__n
push 0x620ad0
call fcn.00599e71
mov eax, dword [esp + 0xa0]
xor ebp, ebp
add esp, 0x10
cmp eax, ebp
je 0x540fa2
mov esi, dword [eax - 0x28]
lea ebx, [eax - 0x40]
cmp dword [ebx + 0x38], ebp
je 0x540f2f
push ebx
call fcn.004edde0
add esp, 4
cmp esi, ebp
je 0x540f9b
mov edi, dword [esi + 0x1c]
push esi
push ebx
call fcn.004edc60
add esp, 8
cmp edi, ebp
mov esi, edi
jne 0x540f33
jmp 0x540f9b
mov ecx, dword [ecx + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
push str.InnoDB:_Error:_trying_to_load_index__s_for_table__s_nInnoDB:_but_the_first_index_was_not_clustered__n
push 0x620ad0
call fcn.00599e71
mov eax, dword [esp + 0xa0]
xor ebp, ebp
add esp, 0x10
cmp eax, ebp
je 0x540fa2
mov esi, dword [eax - 0x28]
lea ebx, [eax - 0x40]
cmp dword [ebx + 0x38], ebp
je 0x540f84
push ebx
call fcn.004edde0
add esp, 4
cmp esi, ebp
je 0x540f9b
mov edi, dword [esi + 0x1c]
push esi
push ebx
call fcn.004edc60
add esp, 8
cmp edi, ebp
mov esi, edi
jne 0x540f88
mov dword [esp + 0x90], ebp
lea eax, [esp + 0xa0]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], 0x7514483
mov dword [esp + 0x6c], 3
mov dword [esp + 0x84], 0x4f36e539
push eax
call fcn.0054f250
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4ec
ret