Function at 0x402315
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
jmp 0x5840c0
sub esp, 0x390
mov eax, dword [0x93e25c]
mov ecx, dword fs:[0x2c]
push ebx
push ebp
mov dword [esp + 0x394], eax
mov eax, dword [0x9798bc]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx + 0x104]
mov edx, dword [esp + 0x3b4]
push esi
push edi
xor esi, esi
mov dword [esp + 0x60], eax
mov eax, dword [eax]
push esi
push 0x1000
mov dword [esp + 0x7c], eax
xor eax, eax
mov edi, edx
push 4
mov ecx, 0x1a4
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x3b0]
lea ebp, [edx + 0x538]
push 0x974550
mov dword [edx + 0x10], ecx
mov dword [edx], ebp
mov edx, dword [esp + 0x3b8]
push 0x73a01c
push edx
lea eax, [esp + 0x1b4]
push eax
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x50], 1
mov dword [esp + 0x58], esi
call fcn.005dc850
add esp, 0x14
push eax
call fcn.005dc660
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x30], eax
jl 0x5856c6
push 4
push 0x40
lea ecx, [esp + 0x84]
push ecx
mov edx, eax
push edx
mov dword [esp + 0x44], 4
call fcn.005dc6f0
add esp, 0x10
test eax, eax
jne 0x5856c6
mov ecx, 5
mov edi, 0x76a7e8
lea esi, [esp + 0x7c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x5841f3
mov ecx, dword [esp + 0x30]
push 0x10
push ecx
call fcn.005dc1d0
mov eax, dword [esp + 0x3b8]
add esp, 8
test ah, 0x20
je 0x5841e6
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
mov ecx, dword [esp + 0x38c]
call fcn.006cedd0
add esp, 0x390
ret
mov dword [esp + 0x30], 0xffffffff
jmp 0x5856c6
mov eax, dword [esp + 0x3b4]
test ah, 0x40
jne 0x5856c6
mov edi, dword [esp + 0x3bc]
mov edx, dword [esp + 0x3b0]
push 0
lea esi, [edi + 0x4d8]
push 0x400
mov dword [ebp + 0xe8], 4
push esi
mov dword [edi + 0x4a4], edx
call fcn.00404700
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x3b4]
push ebx
mov dword [eax], esi
call fcn.005e21e0
add eax, ebx
push eax
push esi
call fcn.005d90e0
push ebx
push esi
mov dword [ebp + 0x94], eax
call fcn.005d90e0
mov ecx, dword [esp + 0x3cc]
push 0x10
push ecx
mov dword [ebp + 0x98], eax
call fcn.005d8c40
mov dword [edi + 0x68], eax
mov ecx, dword [ebp + 0x94]
add esp, 0x28
test ecx, ecx
je 0x5856c6
mov edx, dword [ebp + 0x98]
test edx, edx
je 0x5856c6
test eax, eax
je 0x5856c6
push ecx
call fcn.005e2180
mov byte [eax], 0
mov edx, dword [ebp + 0x98]
push edx
call fcn.005e2180
mov byte [eax], 0
mov al, byte [esp + 0x84]
add esp, 8
cmp al, 0xfe
jne 0x5856c6
cmp byte [esp + 0x7d], 1
jne 0x5856c6
mov al, byte [esp + 0x7e]
cmp al, 6
je 0x5842f2
cmp al, 7
je 0x5842f2
cmp al, 9
jb 0x5842e5
cmp al, 0xa
jbe 0x5842f2
mov dword [esp + 0x34], 6
jmp 0x5856c6
mov cl, byte [esp + 0x97]
movzx eax, al
sub eax, 6
cmp eax, 2
mov dword [esp + 0x68], eax
sbb eax, eax
and eax, 0xfffffffa
add eax, 0x11
push 0
lea edx, [esp + 0x80]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
push edx
push eax
mov byte [esp + 0x47], cl
mov dword [esp + 0x40], 3
call fcn.00403733
add esp, 0xc
test eax, eax
mov dword [esp + 0x48], eax
je 0x5856c6
lea ecx, [esp + 0x19c]
push ecx
call fcn.005e2180
mov byte [eax], 0
mov al, byte [esp + 0x82]
add esp, 4
cmp al, 9
mov byte [ebp + 0x14c], al
jne 0x584376
cmp byte [esp + 0x9d], 5
jne 0x584376
mov byte [ebp + 0x14c], 0xa
movzx edx, byte [esp + 0x7f]
mov eax, dword [esp + 0x3a4]
push 0
push 0
push edx
push eax
call fcn.004070f4
movzx ebx, word [esp + 0xaa]
mov ecx, dword [esp + 0xbf]
mov dword [ebp + 0xdc], eax
mov al, byte [esp + 0xac]
add esp, 0x10
test al, al
mov dword [esp + 0x64], ebx
mov dword [ebp + 0x124], ebx
mov dword [ebp + 0x128], ebx
mov dword [ebp + 0xc8], ecx
mov dword [esp + 0x50], 0
jne 0x584433
movzx ecx, byte [esp + 0xa5]
mov edx, dword [esp + 0x9e]
movzx eax, byte [esp + 0xa4]
mov dword [ebp + 0x130], ecx
movzx ecx, byte [esp + 0xa2]
mov dword [ebp + 0xb8], edx
movzx edx, byte [esp + 0xa6]
mov dword [ebp + 0xe0], eax
mov eax, dword [esp + 0xa7]
push 0
push ecx
mov dword [ebp + 0x134], edx
mov dword [ebp + 0xbc], eax
call fcn.005db370
add esp, 8
mov dword [ebp + 0x88], eax
mov dword [esp + 0x50], 1
mov eax, dword [ebp + 0x88]
test eax, eax
jne 0x58446e
mov edx, dword [0x8410fc]
mov eax, dword [edx + 0x64]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x584462
mov ecx, dword [esp + 0x3a8]
push ecx
push str._s_had_no_or_invalid_character_set__and_default_character_set_is_multi_byte__so_character_column_sizes_may_have_changed
call fcn.00409269
add esp, 8
mov edx, dword [0x8410fc]
mov dword [ebp + 0x88], edx
test bl, 8
mov dword [ebp + 0x12c], 1
je 0x584487
mov dword [ebp + 0xe8], 8
mov edx, dword [ebp + 0xdc]
mov ecx, dword [esp + 0x8e]
mov edi, dword [esp + 0x30]
movzx esi, word [esp + 0x98]
cmp edx, 7
mov edx, dword [esp + 0x92]
setne al
mov byte [ebp + 0x14f], al
movzx eax, word [esp + 0x82]
push 0
mov dword [ebp + 0xd4], edx
cdq
push 0
push edx
push eax
push edi
mov dword [esp + 0x48], 4
mov dword [ebp + 0xd8], ecx
call fcn.005e1d70
push esi
lea eax, [esp + 0x54]
push eax
push edi
call fcn.00404b9c
add esp, 0x20
test eax, eax
jne 0x5856c6
mov ebx, dword [esp + 0x3c]
mov al, byte [ebx]
test al, al
jns 0x584515
movzx esi, byte [ebx + 1]
shl esi, 7
and eax, 0x7f
or esi, eax
mov dword [ebp + 0x100], esi
movzx edi, word [ebx + 2]
jmp 0x584522
movzx esi, al
mov dword [ebp + 0x100], esi
movzx edi, byte [ebx + 1]
xor eax, eax
mov dword [ebp + 0x104], edi
lea ecx, [ebp + 0xa8]
push esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], edi
mov dword [ebp + 0xb0], eax
mov dword [ebp + 0xb4], eax
call fcn.0040b0d2
imul esi, esi, 0x2c
movzx edx, word [ebx + 4]
mov eax, dword [esp + 0x3bc]
lea ecx, [edi + edi*2]
lea edi, [esi + ecx*8]
add edx, edi
push edx
add eax, 0x4d8
push eax
call fcn.005d8dd0
add esp, 8
test eax, eax
mov dword [esp + 0x1c], eax
je 0x5856c6
mov ebx, dword [esp + 0x1c]
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3bc]
mov dword [eax + 0x48], ebx
lea edx, [ecx*4]
add ebx, esi
mov esi, dword [esp + 0x3c]
push edx
add eax, 0x4d8
push eax
add esi, 6
call fcn.005d8dd0
add esp, 8
test eax, eax
je 0x5856c6
mov ecx, dword [esp + 0x28]
xor edi, edi
cmp ecx, edi
jbe 0x5846d2
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov edi, edi
mov ecx, dword [esp + 0x3bc]
mov dword [edx + 0x28], ecx
cmp dword [esp + 0x68], 3
jb 0x584613
movzx ecx, word [esi]
xor ecx, 1
mov dword [edx + 4], ecx
movzx ecx, word [esi + 2]
mov dword [edx], ecx
movzx ecx, byte [esi + 4]
mov dword [edx + 8], ecx
movzx ecx, byte [esi + 5]
mov dword [edx + 0x14], ecx
add esi, 8
jmp 0x58462f
movzx ecx, byte [esi]
xor ecx, 1
mov dword [edx + 4], ecx
movzx ecx, word [esi + 1]
mov dword [edx], ecx
movzx ecx, byte [esi + 3]
mov dword [edx + 8], ecx
mov dword [edx + 0x14], edi
add esi, 4
mov ecx, dword [edx + 8]
cmp ecx, edi
mov dword [edx + 0x18], ebx
mov dword [edx + 0x20], eax
je 0x5846c0
mov dword [esp + 0x20], ecx
mov dword [eax], edi
xor ecx, ecx
mov cx, word [esi]
add eax, 4
and ecx, 0x3fff
mov word [ebx + 0x12], cx
movzx ecx, word [esi + 2]
dec ecx
mov dword [ebx + 4], ecx
mov cx, word [esi + 5]
mov word [ebx + 0x10], cx
cmp dword [esp + 0x68], 1
movzx cx, byte [esi + 4]
jb 0x584685
mov word [ebx + 0x14], cx
mov cx, word [esi + 7]
mov word [ebx + 0xc], cx
add esi, 9
jmp 0x5846aa
mov word [ebx + 0xc], cx
xor ecx, ecx
mov cx, word [ebx + 0xc]
cmp cx, 0x80
mov word [ebx + 0x14], di
jbe 0x5846a7
and ecx, 0x7f
mov word [ebx + 0xc], cx
mov word [ebx + 0x14], 0x80
add esi, 7
mov cx, word [ebx + 0xc]
mov word [ebx + 0xe], cx
mov ecx, dword [esp + 0x20]
add ebx, 0x18
dec ecx
mov dword [esp + 0x20], ecx
jne 0x584644
mov ecx, dword [esp + 0x14]
add edx, 0x2c
dec ecx
mov dword [esp + 0x14], ecx
jne 0x5845e0
push esi
push ebx
mov dword [esp + 0x5c], ebx
call fcn.0062b5e0
movzx edx, word [esp + 0x94]
mov al, byte [esp + 0x9e]
add esp, 8
cmp al, 1
mov dword [ebp + 0xd0], edx
jne 0x584700
mov byte [ebp + 0x14d], 1
mov ax, word [esp + 0x8a]
cmp ax, 0xffff
mov ecx, dword [esp + 0xab]
je 0x584718
movzx ecx, ax
movzx eax, word [esp + 0x82]
movzx edi, word [esp + 0xb3]
add eax, ecx
test edi, edi
mov dword [esp + 0x20], eax
je 0x5847d4
push 0x10
push edi
call fcn.005d8b50
mov esi, eax
add esp, 8
test esi, esi
je 0x5856c6
mov eax, dword [ebp + 0xd0]
mov ecx, dword [esp + 0x20]
push 4
push 0
add eax, ecx
mov ecx, dword [esp + 0x38]
push eax
push edi
push esi
push ecx
call fcn.005df160
add esp, 0x18
test eax, eax
jne 0x5856bd
movzx eax, word [esi]
push eax
mov dword [ebp + 0xa0], eax
mov eax, dword [esp + 0x3c0]
lea edx, [esi + 2]
push edx
add eax, 0x4d8
push eax
call fcn.005d9060
add esp, 0xc
test eax, eax
mov dword [ebp + 0x9c], eax
je 0x5856bd
mov eax, dword [ebp + 0xa0]
lea eax, [esi + eax + 2]
lea ecx, [eax + 2]
lea edx, [esi + edi]
cmp ecx, edx
jae 0x5847cb
movzx eax, word [eax]
push eax
push ecx
call fcn.00401744
add esp, 8
mov dword [ebp + 0xdc], eax
push esi
call fcn.005d8be0
add esp, 4
mov eax, dword [ebp + 0xdc]
mov esi, dword [esp + 0x3bc]
push eax
lea edi, [esi + 0x4d8]
push edi
push esi
mov dword [esp + 0x30], edi
call fcn.0040b0a0
xor ecx, ecx
add esp, 0xc
cmp eax, ecx
mov dword [esi + 4], eax
je 0x5856c6
mov dword [esi + 0x4cc], ecx
mov dword [esi + 0x4ac], ecx
test byte [esp + 0x3b0], 1
mov dword [esp + 0x34], 4
jne 0x584835
mov ecx, dword [esp + 0x3b4]
test ch, 0x10
mov dword [esp + 0x14], 1
je 0x58483d
mov dword [esp + 0x14], 2
test byte [esp + 0x3b4], 9
je 0x58484b
inc dword [esp + 0x14]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x30]
mov ecx, dword [ebp + 0xd0]
lea esi, [eax + ecx + 8]
and esi, 0xfffffff8
mov edx, esi
imul edx, dword [esp + 0x14]
push edx
push edi
mov dword [ebp + 0xfc], esi
call fcn.005d8dd0
mov edi, eax
add esp, 8
test edi, edi
je 0x5856c6
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0xd0]
mov edx, dword [esp + 0x30]
push 4
push 0
push eax
push ecx
push edi
push edx
mov dword [ebp + 0x7c], edi
call fcn.005df160
add esp, 0x18
test eax, eax
jne 0x5856c6
mov edx, dword [esp + 0x14]
cmp edx, 1
mov ecx, dword [esp + 0x3bc]
jne 0x5848c1
mov eax, dword [ebp + 0x7c]
mov dword [ecx + 0x18], eax
jmp 0x5848cf
cmp edx, 2
lea eax, [edi + esi]
mov dword [ecx + 0x18], eax
jbe 0x5848cf
lea eax, [edi + esi*2]
mov esi, dword [esp + 0x30]
push 0
push 0
mov dword [ecx + 0x1c], eax
mov ecx, dword [esp + 0x50]
push 0
push ecx
push esi
call fcn.005e1d70
push 4
push 0x120
lea edx, [esp + 0x98]
push edx
push esi
call fcn.005dc6f0
add esp, 0x24
test eax, eax
jne 0x5856c6
movzx eax, word [esp + 0x17e]
movzx ecx, word [esp + 0x188]
movzx edx, word [esp + 0x18c]
movzx edi, word [esp + 0x18a]
movzx esi, word [esp + 0x180]
mov dword [ebp + 0xf8], eax
movzx eax, word [esp + 0x18e]
mov dword [esp + 0x14], eax
movzx eax, byte [esp + 0xaa]
mov dword [esp + 0x2c], ecx
movzx ecx, word [esp + 0x196]
push eax
mov dword [ebp + 0x84], eax
mov dword [esp + 0x1c], edx
movzx edx, word [esp + 0x19c]
lea eax, [esp + 0xaf]
mov dword [ebp + 0x118], ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x28], edx
call fcn.005d9060
mov edx, dword [ebp + 0xf8]
mov ecx, dword [esp + 0x24]
mov dword [ebp + 0x80], eax
lea eax, [edx + edi*2 + 2]
lea edx, [ecx + eax*2]
add edx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
lea ecx, [eax + edx*4]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
add ecx, edx
mov edx, dword [esp + 0x30]
add ecx, eax
push ecx
push edx
call fcn.005d8dd0
add esp, 0x14
test eax, eax
mov dword [esp + 0x24], eax
je 0x5856c6
mov ecx, dword [esp + 0x3bc]
mov edx, dword [esp + 0x14]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0xf8]
imul eax, dword [esp + 0x5c]
add eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
add eax, edx
add eax, ecx
add eax, esi
push eax
lea edx, [esp + 0x40]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
push edx
push eax
call fcn.00404b9c
add esp, 0xc
test eax, eax
jne 0x5856c6
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
lea edx, [esi + ecx]
mov esi, dword [ebp + 0xf8]
lea ecx, [eax + esi*4 + 4]
mov eax, edi
shl eax, 4
mov dword [ebp + 0x74], ecx
mov dword [esp + 0x4c], eax
add eax, ecx
mov ecx, dword [esp + 0x18]
add ecx, esi
add ecx, dword [esp + 0x28]
test edi, edi
mov dword [esp + 0x10], eax
lea eax, [eax + ecx*4 + 0xc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
jne 0x584a5a
mov dword [ebp + 0x74], edi
imul esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
add ecx, edi
add esi, edx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x48]
lea edi, [eax + ecx]
add edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
sub esi, ecx
add esi, edx
mov edx, ecx
shr ecx, 2
mov dword [esp + 0x78], edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x28]
lea edi, [ebp + 0x64]
push eax
mov eax, 1
mov ecx, edi
lea esi, [esp + 0x14]
call fcn.00581fa0
mov ecx, dword [edi]
mov eax, dword [ebp + 0xf8]
add esp, 4
cmp ecx, eax
jne 0x5856c6
mov eax, dword [esp + 0x44]
mov ecx, dword [ebp + 0x74]
lea edx, [esp + 0x28]
push edx
call fcn.00581fa0
mov esi, dword [ebp + 0x74]
mov eax, dword [esp + 0x50]
add eax, esi
add esp, 4
cmp esi, eax
jae 0x584b60
mov eax, dword [esi]
lea eax, [eax*4 + 4]
push eax
mov eax, dword [esp + 0x3c0]
add eax, 0x4d8
push eax
call fcn.005d8dd0
add esp, 8
test eax, eax
mov dword [esi + 0xc], eax
je 0x5856c6
mov eax, dword [esi]
xor edi, edi
test eax, eax
jbe 0x584b46
mov ecx, dword [esi + 8]
mov eax, dword [ecx + edi*4]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x584b30
sub eax, edx
mov edx, dword [esi + 0xc]
mov dword [edx + edi*4], eax
mov eax, dword [esi]
inc edi
cmp edi, eax
jb 0x584b26
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x4c]
mov dword [eax + edi*4], 0
mov ecx, dword [ebp + 0x74]
add esi, 0x10
add ecx, edx
cmp esi, ecx
jb 0x584af4
xor edi, edi
cmp ebx, edi
je 0x584b7f
lea edx, [esp + 0x54]
push edx
lea ecx, [ebp + 0x54]
mov eax, 1
lea esi, [esp + 0x14]
call fcn.00581fa0
add esp, 4
mov eax, dword [esp + 0x30]
push 0x10
push eax
call fcn.005dc1d0
mov edx, dword [esp + 0x3c4]
mov ecx, dword [edx + 0x18]
mov eax, dword [esp + 0x58]
add esp, 8
dec ecx
cmp eax, edi
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x48], ecx
je 0x584bd9
lea eax, [ecx + 1]
mov dword [edx + 0x6c], eax
mov ecx, dword [ebp + 0x118]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x64]
not eax
and eax, 1
lea edx, [ecx + eax + 7]
shr edx, 3
mov dword [esp + 0x14], eax
mov dword [ebp + 0xec], edx
jmp 0x584c02
mov eax, dword [ebp + 0x118]
mov esi, dword [ebp + 0xd0]
add eax, 7
shr eax, 3
mov dword [ebp + 0xec], eax
sub esi, eax
lea eax, [esi + ecx + 1]
mov dword [esp + 0x2c], eax
mov dword [edx + 0x6c], eax
mov dword [esp + 0x14], edi
mov ecx, dword [ebp + 0xf8]
cmp ecx, 0x20
sbb eax, eax
inc eax
mov dword [esp + 0x44], eax
je 0x584c36
mov eax, dword [0x9749e0]
push edi
push edi
push 0x5817d0
push edi
push edi
push ecx
push eax
push ebp
call fcn.005e11f0
add esp, 0x20
neg al
sbb eax, eax
inc eax
mov dword [esp + 0x44], eax
cmp dword [ebp + 0xf8], edi
mov dword [esp + 0x18], edi
jbe 0x584f87
cmp dword [esp + 0x68], 3
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], 0
jb 0x584d07
movzx ecx, word [eax + 3]
movzx esi, byte [eax + 0xd]
movzx edx, word [eax + 0xf]
movzx ebx, word [eax + 8]
movzx edi, byte [eax + 0xa]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 5]
and ecx, 0xffffff
cmp esi, 0xff
mov dword [esp + 0x4c], ecx
movzx ecx, byte [eax + 0xc]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x64], edx
jne 0x584ca8
movzx eax, byte [eax + 0xe]
mov dword [esp + 0x50], eax
mov dword [esp + 0x10], 0x844320
jmp 0x584cdb
mov al, byte [eax + 0xe]
test al, al
jne 0x584cb9
mov dword [esp + 0x10], 0x844320
jmp 0x584cdb
movzx ecx, al
push 0
push ecx
call fcn.005db370
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
je 0x585097
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x1c]
test edx, edx
jne 0x584cf0
mov dword [esp + 0x54], 0x73a01c
mov dword [esp + 0x58], edx
jmp 0x584d88
mov eax, dword [esp + 0x78]
mov dword [esp + 0x54], eax
add eax, edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x78], eax
jmp 0x584d88
movzx ebx, word [eax + 6]
movzx edx, byte [eax + 3]
movzx ecx, word [eax + 4]
movzx edi, byte [eax + 8]
and ebx, 0xffffbfff
mov esi, ebx
mov dword [esp + 0x28], edx
movzx edx, byte [eax + 0xa]
shr esi, 3
and esi, 0xf
test bl, 1
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x1c], edx
je 0x584d70
mov eax, ebx
and eax, 0x402
cmp eax, 0x400
je 0x584d66
mov ecx, dword [ebp + 0x88]
mov edx, dword [ecx + 0x10]
push 0
push 0x10
push edx
call fcn.005db4e0
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
jne 0x584d7a
mov dword [esp + 0x10], 0x844320
jmp 0x584d7a
mov eax, dword [ebp + 0x88]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
test ecx, ecx
je 0x584db1
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x54], 1
jbe 0x584db1
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x74]
shl eax, 4
lea edx, [eax + ecx - 0x10]
push edx
call fcn.004031de
mov ecx, dword [esp + 0x20]
add esp, 4
cmp esi, 0xf6
jne 0x584e52
mov eax, dword [ebp + 0xc8]
test eax, eax
jne 0x584e52
mov edx, dword [esp + 0x28]
mov eax, ebx
not eax
mov ecx, ebx
and eax, 1
shr ecx, 8
push eax
and ecx, 0xffffff1f
push ecx
push edx
call fcn.0040768a
mov ecx, dword [esp + 0x3b4]
mov edx, dword [ebp + 0x6c]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x94]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [edx + eax*4]
push ecx
push str.Found_incompatible_DECIMAL_field__s_in__s__Please_do__ALTER_TABLE__s_FORCE__to_fix_it_
call fcn.004058b2
mov edx, dword [ebp + 0x94]
mov eax, dword [esp + 0x3c4]
mov ecx, dword [ebp + 0x6c]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0x3c8]
push eax
push str.Found_incompatible_DECIMAL_field__s_in__s__Please_do__ALTER_TABLE__s_FORCE__to_fix_it_
push 0x4aa
push 2
push ecx
call fcn.0040a1b4
mov ecx, dword [esp + 0x54]
add esp, 0x38
mov byte [ebp + 0x150], 1
test ecx, ecx
je 0x584e62
mov edx, dword [ebp + 0x74]
shl ecx, 4
lea eax, [ecx + edx - 0x10]
jmp 0x584e64
xor eax, eax
mov ecx, dword [esp + 0x3bc]
mov edx, dword [ebp + 0x6c]
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [edx + ecx*4]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x5c]
and edi, 0x7f
push edi
mov edi, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x60]
push esi
push ebx
push edi
push edx
mov edx, dword [esp + 0x74]
push eax
add edx, ecx
push edx
call fcn.004024e1
mov ecx, dword [esp + 0x54]
add esp, 0x30
test eax, eax
mov dword [ecx], eax
je 0x5850b0
cmp esi, 0x10
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x18]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 0x50], edx
mov dword [eax + 0x24], ecx
jne 0x584ef9
test bh, 0x10
jne 0x584ef9
mov ecx, dword [esp + 0x28]
and ecx, 7
add edi, ecx
cmp edi, 7
mov dword [esp + 0x14], edi
jbe 0x584ef9
mov esi, dword [esp + 0x2c]
inc esi
sub edi, 8
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], edi
mov cx, word [eax + 0x54]
test cl, 1
jne 0x584f10
inc edi
and edi, 7
mov dword [esp + 0x14], edi
jne 0x584f10
inc dword [esp + 0x2c]
test bh, 0x40
je 0x584f1f
or ecx, 0x1000
mov word [eax + 0x54], cx
cmp dword [eax + 0x48], 0xf
jne 0x584f2f
mov ecx, dword [esp + 0x3bc]
mov dword [ecx + 0x50], eax
mov ecx, dword [esp + 0x3bc]
cmp dword [ecx + 0x58], eax
jne 0x584f41
mov dword [ebp + 0x140], edx
mov eax, dword [esp + 0x44]
test eax, eax
je 0x584f5b
mov edx, dword [esp + 0x24]
push edx
push ebp
call fcn.005e1470
mov edx, dword [esp + 0x20]
add esp, 8
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add esi, eax
mov eax, dword [ebp + 0xf8]
inc edx
add ecx, 4
cmp edx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
jb 0x584c46
mov eax, dword [esp + 0x24]
mov dword [eax], 0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x58548a
mov edx, dword [0x839bdc]
push 3
lea ecx, [ebp + 0x54]
push ecx
push edx
call fcn.005da710
mov esi, dword [esp + 0x3c8]
mov ecx, dword [esi + 4]
mov ebx, eax
mov eax, dword [ecx]
add esp, 0xc
dec ebx
mov dword [esp + 0x24], ebx
call dword [eax + 0x14c]
mov ecx, dword [ebp + 0x100]
test ecx, ecx
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x48]
mov edi, dword [eax + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0
jbe 0x585447
lea ebx, [eax + 8]
mov dword [esp + 0x40], 0
lea ebx, [ebx]
mov eax, dword [ebp + 0x5c]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + ecx*4]
mov esi, dword [esp + 0x40]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x3bc]
mov eax, dword [eax + 0x48]
xor edx, edx
add eax, esi
test byte [eax + 4], 0x80
mov dword [esp + 0x20], edx
je 0x585030
mov dword [eax + 0x14], 4
cmp dword [esp + 0x24], 0x40
jb 0x5850c5
test byte [ebx - 4], 1
je 0x5850c5
cmp dword [ebx], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], edx
jbe 0x5850c5
lea esi, [edi + 0xc]
movzx eax, word [esi + 6]
test eax, eax
je 0x5850bd
mov ecx, dword [esp + 0x3bc]
mov edx, dword [ecx + 0x14]
mov ecx, dword [edx + eax*4 - 4]
lea eax, [edx + eax*4 - 4]
mov edx, dword [ecx + 0xc]
test edx, edx
jne 0x5850bd
mov eax, ecx
mov edx, dword [eax]
call dword [edx + 0x64]
movzx ecx, word [esi]
cmp eax, ecx
jne 0x5850bd
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx]
inc eax
add esi, 0x18
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x585054
jmp 0x5850c5
mov ecx, dword [esp + 0x20]
movzx edx, byte [ecx + 0xe]
mov dword [esp + 0x34], 5
mov dword [esp + 0x6c], edx
jmp 0x5856c6
mov dword [esp + 0x34], 4
jmp 0x5856c6
mov dword [esp + 0x24], 0x40
cmp dword [ebx], 0
mov dword [esp + 0x18], 0
jbe 0x5853c9
cmp byte [esp + 0x3b], 1
ja 0x5850fa
movzx edx, word [edi + 0xc]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x3bc]
push edx
push eax
push ecx
call fcn.00582070
add esp, 0xc
mov word [edi + 0x12], ax
mov ax, word [edi + 0x12]
test ax, ax
je 0x5853a6
movzx edx, ax
mov eax, dword [esp + 0x3bc]
mov ecx, dword [eax + 0x14]
mov esi, dword [ecx + edx*4 - 4]
mov dword [edi], esi
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x60]
mov byte [edi + 0x16], al
mov eax, dword [esi + 0xc]
test eax, eax
je 0x58515b
mov ecx, dword [esp + 0x3bc]
sub eax, dword [ecx + 0x18]
mov dword [edi + 8], eax
mov dl, byte [esi + 0x56]
inc word [edi + 0xe]
mov byte [edi + 0x17], dl
mov eax, dword [ebx - 4]
mov edx, dword [ebx + 4]
or eax, 0x40
mov dword [ebx - 4], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
inc edx
inc ecx
mov dword [ebx + 4], edx
mov dword [eax], ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
cmp eax, 0xfc
je 0x585175
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x6c]
cmp eax, 0xf
jne 0x5851a4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
cmp eax, 0xfc
jne 0x585189
or byte [edi + 0x14], 0x20
jmp 0x58518d
or byte [edi + 0x14], 8
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x1c]
mov ecx, 2
add edx, ecx
mov dword [ebx + 4], edx
add word [edi + 0xe], cx
add dword [eax], ecx
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x68]
cmp eax, 0x10
jne 0x5851b4
or byte [edi + 0x15], 4
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x5851ec
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x10], eax
je 0x5851df
test byte [ebx - 4], 1
je 0x5851d6
cmp dword [ebx], 1
mov eax, 4
je 0x5851db
mov eax, 8
or word [esi + 0x54], ax
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esi + 0x30]
call fcn.0040b159
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
movzx ecx, word [edi + 0xc]
cmp eax, ecx
jne 0x585273
test byte [esi + 0x54], 0x10
jne 0x585273
mov edx, dword [esp + 0x3bc]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
push 0
push edx
mov edx, dword [esp + 0x18]
push edx
call dword [eax + 0x150]
test al, 0x40
je 0x585244
mov eax, dword [esp + 0x10]
push eax
lea ecx, [ebp + 0xb0]
call fcn.0040b159
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esi + 0x38]
call fcn.0040b159
mov edx, dword [esp + 0x3bc]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
push 1
push edx
mov edx, dword [esp + 0x18]
push edx
call dword [eax + 0x150]
test al, 4
je 0x585273
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esi + 0x40]
call fcn.0040b159
mov al, byte [edi + 0x14]
test al, al
js 0x58528b
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x18]
jne 0x58528b
mov eax, ecx
inc eax
mov dword [esp + 0x20], eax
or byte [esi + 0x55], 0x40
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, edx
mov ax, word [esi + 0x54]
jne 0x5852c2
or eax, 2
mov word [esi + 0x54], ax
mov eax, dword [esp + 0x44]
test ah, ah
jns 0x5852c2
mov eax, dword [ebp + 0xa8]
mov dword [esi + 0x38], eax
mov ecx, dword [ebp + 0xac]
mov dword [esi + 0x3c], ecx
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
movzx ecx, word [edi + 0xc]
cmp eax, ecx
je 0x585399
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x68]
cmp eax, 0xf6
jne 0x585363
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x64]
movzx edx, word [edi + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x1c]
sub ecx, edx
add dword [eax], ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x64]
sub ax, word [edi + 0xc]
mov ecx, esi
add word [edi + 0xe], ax
mov edx, dword [esi]
call dword [edx + 0x64]
mov ecx, dword [esp + 0x3a8]
mov word [edi + 0xc], ax
mov eax, dword [ebp + 0x94]
push eax
push ecx
push str.Found_wrong_key_definition_in__s__Please_do__ALTER_TABLE__s_FORCE___to_fix_it_
call fcn.004058b2
mov edx, dword [ebp + 0x94]
mov eax, dword [esp + 0x3b4]
mov ecx, dword [esp + 0x3b0]
push edx
push eax
push str.Found_wrong_key_definition_in__s__Please_do__ALTER_TABLE__s_FORCE__to_fix_it_
push 0x4aa
push 2
push ecx
call fcn.0040a1b4
add esp, 0x24
mov byte [ebp + 0x150], 1
jmp 0x585399
or byte [edi + 0x14], 4
test byte [esi + 0x54], 0x10
jne 0x585399
mov eax, dword [esp + 0x3bc]
mov edx, dword [esi]
xor ecx, ecx
cmp eax, dword [esi + 0x10]
sete cl
push ecx
push eax
add eax, 0x4d8
push eax
mov ecx, esi
call dword [edx + 0xa8]
movzx edx, word [edi + 0xc]
mov esi, eax
mov dword [edi], eax
mov dword [esi + 0x4c], edx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x5853b3
or byte [edi + 0x14], 0x10
jmp 0x5853b3
mov eax, dword [esp + 0x20]
mov dword [ebx], eax
mov dword [ebx - 4], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx]
add edi, 0x18
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x5850d6
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx]
mov dword [ebx + 8], ecx
mov ecx, dword [eax]
add ecx, edx
cmp dword [ebp + 0x108], ecx
jae 0x5853e8
mov dword [ebp + 0x108], ecx
mov edx, dword [eax]
add dword [ebp + 0x110], edx
test byte [ebx - 4], 1
jne 0x585400
test dword [esp + 0x44], 0x40000000
je 0x585410
mov ecx, dword [eax]
cmp dword [ebp + 0x10c], ecx
jae 0x585410
mov dword [ebp + 0x10c], ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
add eax, 0x2c
inc ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x100]
add edx, 0x2c
add ebx, 0x2c
cmp ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x40], edx
jb 0x585000
mov esi, dword [esp + 0x3bc]
mov ebx, dword [esp + 0x24]
cmp ebx, 0x40
jae 0x585491
push ebx
lea ecx, [ebp + 0xa8]
call fcn.00406901
test al, al
je 0x585491
mov dword [ebp + 0x13c], ebx
imul ebx, ebx, 0x2c
mov eax, dword [esi + 0x48]
add ebx, eax
cmp dword [ebx + 8], 1
jne 0x58549b
mov ecx, dword [ebx + 0x18]
mov edi, dword [ecx]
test edi, edi
je 0x58549b
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x28]
cmp eax, 2
jne 0x58549b
mov dword [esi + 0x54], edi
jmp 0x58549b
mov esi, dword [esp + 0x3bc]
mov dword [ebp + 0x13c], 0x40
mov eax, dword [esp + 0x3c]
push eax
call fcn.005d8be0
mov al, byte [esp + 0x3f]
add esp, 4
cmp al, 1
mov dword [esp + 0x3c], 0
ja 0x5854e5
mov ecx, dword [ebp + 0x118]
mov edi, dword [ebp + 0x7c]
mov edx, dword [esi + 0x6c]
mov ebx, dword [esp + 0x48]
add ecx, 7
shr ecx, 3
sub edi, ebx
add edi, edx
mov edx, ecx
shr ecx, 2
mov eax, 0xffffffff
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esi + 0x50]
xor ebx, ebx
cmp edi, ebx
je 0x585515
lea eax, [ebp + 0x148]
push eax
push edi
push esi
call fcn.00409ccd
add esp, 0xc
cmp eax, ebx
mov dword [ebp + 0x144], eax
jge 0x585511
mov dword [edi + 0x48], ebx
mov dword [esi + 0x50], ebx
jmp 0x585515
or byte [edi + 0x55], 2
mov eax, dword [ebp + 0x11c]
cmp eax, ebx
je 0x585569
lea ecx, [eax*4]
push ecx
add esi, 0x4d8
push esi
call fcn.005d8dd0
add esp, 8
cmp eax, ebx
mov dword [ebp + 0x78], eax
je 0x5856c6
mov esi, dword [esp + 0x3bc]
mov edx, dword [esi + 0x14]
mov ecx, dword [edx]
xor edi, edi
test ecx, ecx
je 0x585569
test byte [ecx + 0x54], 0x10
je 0x58555e
mov dword [eax], edi
add eax, 4
mov ecx, dword [edx + 4]
add edx, 4
inc edi
test ecx, ecx
jne 0x585553
mov eax, dword [esp + 0x14]
mov edi, dword [esi + 0x6c]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3b0]
lea edx, [eax + 7]
shr edx, 3
sub edx, edi
add edx, ecx
test ebx, ebx
mov dword [ebp + 0xec], edx
mov dword [ebp + 0xf0], eax
mov dword [esp + 0x34], 2
je 0x585673
lea eax, [esp + 0x19c]
push eax
mov ecx, eax
push ecx
call fcn.005e2e40
add esp, 8
test bh, 2
je 0x5855c0
mov eax, 4
jmp 0x5855e6
test bl, 0x40
jne 0x5855e1
test byte [0x974be0], 8
jne 0x5855e1
mov edx, ebx
and dl, 0x88
neg dl
sbb edx, edx
and edx, 0xfffffffe
add edx, 2
mov eax, edx
jmp 0x5855e6
mov eax, 1
mov edi, dword [esp + 0x3b8]
mov ecx, dword [esi + 4]
shr ebx, 3
or eax, edi
push eax
not ebx
and ebx, 2
push ebx
lea eax, [esp + 0x1a4]
push eax
call fcn.00409089
mov edi, eax
test edi, edi
je 0x585673
cmp edi, 0x91
jne 0x585634
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
call dword [edx + 0x184]
test eax, eax
je 0x585634
test byte [esp + 0x3b8], 0x20
jne 0x585634
mov al, 1
jmp 0x585636
xor al, al
cmp edi, 0x9b
mov byte [ebp + 0x150], al
jne 0x58565c
mov dword [esp + 0x34], 1
call fcn.005e0030
mov dword [eax], 2
jmp 0x5856c6
mov esi, dword [esi + 4]
mov eax, dword [esi]
push 0
push edi
mov ecx, esi
call dword [eax + 0x18]
mov dword [esp + 0x70], 1
jmp 0x5856c6
mov esi, dword [esi + 4]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x178]
mov ecx, dword [esp + 0x60]
mov byte [ebp + 0x14f], al
mov eax, dword [esp + 0x74]
mov dword [ecx], eax
mov eax, dword [esp + 0x3a4]
mov ecx, dword [eax + 0x718]
pop edi
pop esi
inc ecx
pop ebp
mov dword [eax + 0x718], ecx
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x38c]
call fcn.006cedd0
add esp, 0x390
ret
push esi
call fcn.005d8be0
add esp, 4
mov edx, dword [esp + 0x3c]
push edx
call fcn.005d8be0
mov eax, dword [esp + 0x34]
xor edi, edi
add esp, 4
cmp eax, edi
jle 0x5856e8
push 0x10
push eax
call fcn.005dc1d0
add esp, 8
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x3bc]
mov dword [ecx], eax
cmp dword [esp + 0x70], edi
jne 0x58571c
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3a8]
push edx
push 0x66
push eax
mov edx, esi
call fcn.00581c90
add esp, 0xc
mov ecx, dword [esi + 4]
cmp ecx, edi
je 0x58572a
mov edx, dword [ecx]
push 1
call dword [edx + 0x10]
push ebp
mov dword [esi + 4], edi
mov dword [esi + 0x4a4], edi
call fcn.005e12a0
lea eax, [esi + 0x4d8]
push edi
push eax
call fcn.005d8f70
mov ecx, dword [esi + 0x68]
push ecx
call fcn.005d8be0
mov ecx, dword [esp + 0x3ac]
mov eax, dword [esp + 0x44]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
call fcn.006cedd0
add esp, 0x390
ret