Function at 0x477a74
Capabilities:
Packed with generic packer

Disassembly:
sub esp, 0x94
pushal
mov esi, eax
mov word [esp + 0x46], bx
mov word [esp + 0x48], cx
mov dword [esp + 0x66], edx
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x2a7]
mov dword [esp + 0x22], eax
mov ax, 0
mov ebx, dword [esp + 0x22]
cmp ebx, 0
pushfd
movzx edi, word [esp + 0x4a]
popfd
pushfd
movzx ebp, word [esp + 0x4c]
popfd
je 0x477dac
mov eax, ebp
cmp eax, 0xb
jne 0x477b22
mov dword [esp + 0x3e], str.Getting_Auto_increment_state
mov edx, ebx
mov dword [esp + 0x4a], edx
mov eax, edx
mov ebx, 0
mov ecx, 2
call fcn.0051a48c
mov ecx, dword [esp + 0x3e]
cmp ecx, 0
je 0x477af1
mov eax, ecx
call fcn.00420750
mov ebx, eax
jmp 0x477af6
mov ebx, 0
mov eax, edx
lea edx, [esp + 0x6c]
call fcn.0051a40c
cmp byte [0x59f994], 0
je 0x477b13
push dword [esp + 0x4a]
call sub.KERNEL32.dll_FlushFileBuffers
call fcn.0040fbf0
mov dword [0x52169c], eax
jmp 0x477cc3
cmp eax, 0xd
jne 0x477b8b
mov dword [esp + 0x3a], str.Getting_Searchable_state
mov edx, ebx
mov dword [esp + 0x4e], edx
mov eax, edx
mov ebx, 0
mov ecx, 2
call fcn.0051a48c
mov ecx, dword [esp + 0x3a]
cmp ecx, 0
je 0x477b5a
mov eax, ecx
call fcn.00420750
mov ebx, eax
jmp 0x477b5f
mov ebx, 0
mov eax, edx
lea edx, [esp + 0x70]
call fcn.0051a40c
cmp byte [0x59f994], 0
je 0x477b7c
push dword [esp + 0x4e]
call sub.KERNEL32.dll_FlushFileBuffers
call fcn.0040fbf0
mov dword [0x52169c], eax
jmp 0x477cc3
cmp eax, 0
jne 0x477bf4
mov dword [esp + 0x36], str.Getting_Column_Count
mov edx, ebx
mov dword [esp + 0x52], edx
mov eax, edx
mov ebx, 0
mov ecx, 2
call fcn.0051a48c
mov ecx, dword [esp + 0x36]
cmp ecx, 0
je 0x477bc3
mov eax, ecx
call fcn.00420750
mov ebx, eax
jmp 0x477bc8
mov ebx, 0
mov eax, edx
lea edx, [esp + 0x74]
call fcn.0051a40c
cmp byte [0x59f994], 0
je 0x477be5
push dword [esp + 0x52]
call sub.KERNEL32.dll_FlushFileBuffers
call fcn.0040fbf0
mov dword [0x52169c], eax
jmp 0x477cc3
mov dword [esp + 0x32], str.Getting_Column_Attribute
mov edx, ebx
mov dword [esp + 0x56], edx
mov eax, edx
mov ebx, 0
mov ecx, 2
call fcn.0051a48c
mov ecx, dword [esp + 0x32]
cmp ecx, 0
je 0x477c27
mov eax, ecx
call fcn.00420750
mov ebx, eax
jmp 0x477c2c
mov ebx, 0
mov eax, edx
lea edx, [esp + 0x78]
call fcn.0051a40c
cmp byte [0x59f994], 0
je 0x477c49
push dword [esp + 0x56]
call sub.KERNEL32.dll_FlushFileBuffers
call fcn.0040fbf0
mov dword [0x52169c], eax
mov eax, ebp
mov edx, dword [esp + 0x22]
mov dword [esp + 0x5a], edx
lea ebx, [esp + 0x7c]
mov dword [esp + 0x2e], ebx
mov ecx, 0xa
call fcn.00474948
mov eax, edx
mov ebx, 0
mov ecx, 2
call fcn.0051a48c
mov ecx, dword [esp + 0x2e]
cmp ecx, 0
je 0x477c94
mov eax, ecx
call fcn.00420750
mov ebx, eax
jmp 0x477c99
mov ebx, 0
mov eax, edx
lea edx, [esp + 0x90]
call fcn.0051a40c
cmp byte [0x59f994], 0
je 0x477cb9
push dword [esp + 0x5a]
call sub.KERNEL32.dll_FlushFileBuffers
call fcn.0040fbf0
mov dword [0x52169c], eax
mov dword [esp + 0x2a], str._for_Column
mov edx, dword [esp + 0x22]
mov dword [esp + 0x5e], edx
mov eax, edx
mov ebx, 0
mov ecx, 2
call fcn.0051a48c
mov ecx, dword [esp + 0x2a]
cmp ecx, 0
je 0x477cf8
mov eax, ecx
call fcn.00420750
mov ebx, eax
jmp 0x477cfd
mov ebx, 0
mov eax, edx
lea edx, [esp + 0x94]
call fcn.0051a40c
cmp byte [0x59f994], 0
je 0x477d1d
push dword [esp + 0x5e]
call sub.KERNEL32.dll_FlushFileBuffers
call fcn.0040fbf0
mov dword [0x52169c], eax
mov eax, edi
mov edx, dword [esp + 0x22]
mov dword [esp + 0x62], edx
lea ebx, [esp + 0x98]
mov dword [esp + 0x26], ebx
mov ecx, 0xa
call fcn.00474948
mov eax, edx
mov ebx, 0
mov ecx, 2
call fcn.0051a48c
mov ecx, dword [esp + 0x26]
cmp ecx, 0
je 0x477d6b
mov eax, ecx
call fcn.00420750
mov ebx, eax
jmp 0x477d70
mov ebx, 0
mov eax, edx
lea edx, [esp + 0xac]
call fcn.0051a40c
cmp byte [0x59f994], 0
je 0x477d90
push dword [esp + 0x62]
call sub.KERNEL32.dll_FlushFileBuffers
call fcn.0040fbf0
mov dword [0x52169c], eax
mov eax, esi
mov ebx, dword [esp + 0x22]
mov ecx, 0x59eed8
mov dl, 1
call fcn.0047cc4c
push dword [esp + 0xb8]
push dword [esp + 0xc0]
movsx eax, word [esp + 0xc8]
push eax
push dword [esp + 0x72]
push ebp
push edi
mov eax, dword [esi + 4]
push eax
call dword [0x59f9f0]
mov word [esp + 0x6a], ax
cmp ebx, 0
je 0x477ece
mov edx, 0x59eee0
mov edi, ebx
call fcn.0040fbf0
sub eax, dword [0x52169c]
mov dword [esp + 0x42], eax
mov eax, edi
mov ebx, 0
mov ecx, 2
call fcn.0051a48c
cmp edx, 0
je 0x477e18
mov eax, edx
call fcn.00420750
mov ebx, eax
jmp 0x477e1d
mov ebx, 0
mov eax, edi
mov ecx, edx
lea ebp, [esp + 0xb0]
mov edx, ebp
call fcn.0051a40c
mov eax, edi
mov edx, ebp
mov ebx, 0xc
mov ecx, str._Time_Taken:
call fcn.0051a40c
mov eax, dword [esp + 0x42]
mov ebx, 0x64
cdq
idiv ebx
push edx
push eax
push str._ld._02ld_secs
push 0x5218a0
call fcn.004dbfa0
add esp, 0x10
mov eax, edi
mov ebx, 0
mov ecx, 2
call fcn.0051a48c
mov eax, 0x5218a0
cmp eax, 0
je 0x477e99
mov eax, 0x5218a0
call fcn.00420750
mov ebx, eax
jmp 0x477e9e
cmp word [esp + 0x6a], 2
je 0x477a9c
jmp 0x477ed4
mov ebx, 0
mov eax, edi
mov edx, ebp
mov ecx, 0x5218a0
call fcn.0051a40c
mov eax, edi
mov edx, ebp
mov ebx, 2
mov ecx, 0x59eae4
call fcn.0051a40c
cmp byte [0x59f994], 0
je 0x477ece
push edi
call sub.KERNEL32.dll_FlushFileBuffers
cmp byte [esi + 0x14], 0
jne 0x477e8b
popal
add esp, 0x94
ret 0xc