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

Disassembly:
sub esp, 0x8d0
mov eax, dword [0x93e25c]
push ebx
mov ebx, dword [esp + 0x8dc]
push ebp
mov ebp, dword [ebx]
mov edx, dword [ebp + 0x118]
mov ecx, dword [ebp + 0x18c]
mov dword [esp + 0x8d4], eax
xor eax, eax
test edx, edx
jbe 0x5b6b39
add ecx, 8
cmp byte [ecx], 2
je 0x5b6bd6
mov edx, dword [ebp + 0x118]
inc eax
add ecx, 0x3c
cmp eax, edx
jb 0x5b6b22
push esi
mov esi, dword [esp + 0x8e0]
test dword [esi + 0x98], 0x400000
jne 0x5b6b62
mov eax, dword [esp + 0x8e8]
push eax
push str.__Sorting_index_for_MyISAM_table__s_n
call fcn.006d1d9e
add esp, 8
mov ecx, dword [esp + 0x8e8]
push edi
push 0x26
push str..MYI
push 0x73a01c
lea edi, [esi + 0xa6]
push ecx
push edi
mov dword [esp + 0x28], edi
call fcn.005dc850
mov edx, dword [esi + 0x2b0]
add esp, 0x14
push 0
push edx
push 0
push 6
push str..TMM
push 0x73a01c
push edi
push edi
call fcn.005dc850
add esp, 0x14
push eax
call fcn.005ded30
mov edi, eax
add esp, 0x10
test edi, edi
mov dword [esp + 0x18], edi
jg 0x5b6bed
mov eax, dword [esp + 0x14]
push eax
push str.Cant_create_new_tempfile:__s
push esi
call fcn.004012fd
add esp, 0xc
jmp 0x5b6cc6
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x8cc]
call fcn.006cedd0
add esp, 0x8d0
ret
mov ecx, dword [ebp + 0xc8]
mov edx, dword [ebp + 0x210]
push str.headerblock
push 0
push ecx
push 0
push 0
push edx
push edi
push esi
call fcn.005b23f0
add esp, 0x20
test eax, eax
jne 0x5b6cac
mov eax, dword [ebp + 0xc8]
mov dword [esi + 0x28], eax
mov ecx, dword [ebp + 0xcc]
mov dword [esi + 0x2c], ecx
mov eax, dword [ebp + 0x118]
mov edx, dword [ebp + 0x18c]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], edx
jbe 0x5b6d02
mov edi, dword [ebx]
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.006cfb80
and eax, dword [edi + 0x90]
and edx, dword [edi + 0x94]
or eax, edx
je 0x5b6ce8
mov eax, dword [ebp + 0x74]
mov ecx, dword [eax + esi*8]
mov edx, dword [eax + esi*8 + 4]
mov edi, ecx
and edi, edx
or eax, 0xffffffff
cmp edi, eax
je 0x5b6ce0
mov eax, dword [esp + 0x8e4]
mov edi, dword [eax + 0x28]
mov dword [esp + esi*8 + 0x1c], edi
mov edi, dword [eax + 0x2c]
mov dword [esp + esi*8 + 0x20], edi
mov edi, dword [esp + 0x18]
push edi
push edx
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push eax
call fcn.005b1fd0
add esp, 0x18
test eax, eax
je 0x5b6ce8
push 0x10
push edi
call fcn.005dc1d0
add esp, 8
mov eax, dword [esp + 0x14]
push 0x10
push eax
call fcn.005e8350
add esp, 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x8cc]
call fcn.006cedd0
add esp, 0x8d0
ret
mov dword [esp + esi*8 + 0x1c], eax
mov dword [esp + esi*8 + 0x20], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x118]
inc esi
add ecx, 0x3c
cmp esi, eax
mov dword [esp + 0x10], ecx
jb 0x5b6c44
mov edx, dword [ebp + 0x210]
mov eax, dword [ebp + 0x1bc]
push 2
push edx
push eax
call fcn.005e4330
push 0
call fcn.006d15df
mov dword [ebp + 0x9c], eax
mov ecx, 0x32
mov esi, ebp
lea edi, [esp + 0x824]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x110]
mov esi, dword [ebp + 0x224]
mov edi, dword [ebp + 0x220]
xor eax, eax
push 1
push ebx
mov dword [esp + 0x28], ecx
mov dword [ebp + 0x228], eax
mov dword [ebp + 0x220], eax
mov dword [ebp + 0x224], eax
call fcn.005ba1d0
mov edx, dword [ebp + 0x210]
push 0x10
push edx
call fcn.005dc1d0
mov eax, dword [esp + 0x38]
push 0x10
push eax
mov dword [ebp + 0x210], 0xffffffff
call fcn.005dc1d0
mov ecx, dword [ebp + 0x1b4]
push 0
push 0
push str..TMM
push str..MYI
push ecx
call fcn.005b22e0
add esp, 0x3c
test eax, eax
jne 0x5b6cb7
push ebp
call fcn.005ad6c0
add esp, 4
test eax, eax
jne 0x5b6cb7
push eax
push 4
push ebx
mov dword [ebx + 0x110], eax
call fcn.005ba9c0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x8f0]
mov dword [ebx + 0x110], edx
mov dword [ebp + 0x220], edi
mov dword [ebp + 0x224], esi
add edi, esi
mov dword [ebp + 0x228], edi
mov ecx, 0x32
lea esi, [esp + 0x820]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0x28]
mov ecx, dword [ebx + 4]
mov dword [ecx + 0x18], edx
mov eax, dword [eax + 0x2c]
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebx]
mov dword [ebx + 0xec], 0x401
mov edx, dword [ecx + 0x118]
add esp, 0xc
xor eax, eax
test edx, edx
jbe 0x5b6e51
mov edi, edi
mov edx, dword [ebx]
mov ecx, dword [edx + 0x74]
mov edx, dword [esp + eax*8 + 0x1c]
mov dword [ecx + eax*8], edx
mov edx, dword [esp + eax*8 + 0x20]
mov dword [ecx + eax*8 + 4], edx
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x118]
inc eax
cmp eax, edx
jb 0x5b6e30
mov edx, dword [ebx]
mov cl, byte [edx + 0x15]
xor eax, eax
test cl, cl
jbe 0x5b6e7f
lea esp, [esp]
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x78]
mov dword [edx + eax*8], 0xffffffff
mov dword [edx + eax*8 + 4], 0xffffffff
mov ecx, dword [ebx]
movzx edx, byte [ecx + 0x15]
inc eax
cmp eax, edx
jb 0x5b6e60
mov ebx, dword [ebx]
mov al, byte [ebx + 0xb4]
mov ecx, dword [esp + 0x8dc]
pop edi
and al, 0xdf
pop esi
mov byte [ebx + 0xb4], al
pop ebp
xor eax, eax
pop ebx
call fcn.006cedd0
add esp, 0x8d0
ret