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

Disassembly:
and eax, 0xecb3ff
add byte [eax], al
call dword [ebp + 0x2c]
mov ebx, eax
mov eax, ebx
lea edx, [esi + 0xd0]
mov ecx, 3
add esp, 0xfffffff4
call fcn.00404206
mov eax, ebx
push eax
call fcn.0040425e
movzx edx, byte [esi + 0xb4]
push eax
mov byte [eax + ebx], dl
movzx ecx, byte [esi + 0xb5]
mov byte [eax + ebx + 1], cl
movzx edx, byte [esi + 0xb6]
mov byte [eax + ebx + 2], dl
movzx edx, byte [esi + 0xb7]
mov byte [eax + ebx + 3], dl
mov eax, ebx
call fcn.0040425e
movzx edx, byte [esi + 0x24]
push eax
mov byte [eax + ebx], dl
movzx ecx, byte [esi + 0x25]
mov byte [eax + ebx + 1], cl
movzx edx, byte [esi + 0x26]
mov byte [eax + ebx + 2], dl
movzx edx, byte [esi + 0x27]
mov byte [eax + ebx + 3], dl
mov eax, ebx
call fcn.0040425e
mov edx, eax
mov edi, edx
test edx, edx
je 0x405118
mov eax, edx
shr eax, 1
mov dword [esp + 0xc], eax
je 0x4065a6
mov ecx, dword [esp + 4]
xor eax, eax
lea edi, [ebx + edx]
mov dword [esp + 0x90], esi
mov dword [esp], ebx
lea ecx, [ecx + edx*2]
mov dword [esp + 0x94], ebp
mov ebp, edi
mov esi, eax
movsx edi, byte [esi + ebp]
lea ebx, [eax*4]
neg ebx
inc eax
mov word [ecx + ebx], di
movsx edi, byte [esi + ebp - 1]
mov word [ecx + ebx - 2], di
lea edi, [esi + edx - 2]
add esi, 0xfffffffe
cmp eax, dword [esp + 0xc]
jb 0x4050be
mov ebx, dword [esp]
lea ecx, [eax + eax + 1]
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0x90]
lea eax, [ecx - 1]
cmp eax, edx
jae 0x405118
mov edi, edx
add edx, ebx
sub edx, ecx
sub edi, ecx
movsx eax, byte [edx + 1]
mov edx, dword [esp + 4]
mov word [edx + edi*2 + 2], ax
mov eax, dword [esp + 4]
movsx ebx, byte [edi + ebx]
mov word [eax + edi*2], bx
mov edi, dword [ebp + 0x4c]
push dword [edi + 0x10c]
push dword [edi + 0xec]
call dword [ebp + 0x2c]
mov dword [esp], eax
push eax
mov eax, dword [esp + 8]
call fcn.00403f46
test eax, eax
jbe 0x40518d
cmp eax, 0x30
jbe 0x406546
mov ecx, dword [esp]
lea edi, [eax + eax]
sub ecx, dword [esp + 4]
xor ebx, ebx
xor edx, edx
cmp ecx, edi
mov dword [esp + 0xc], eax
setg dl
neg ecx
cmp ecx, edi
setg bl
mov eax, edx
or eax, ebx
mov eax, dword [esp + 0xc]
je 0x406546
push edi
push dword [esp + 8]
push dword [esp + 8]
call fcn.00403ee6
add esp, 0xc
push dword [esp]
call dword [ebp + 0x30]
mov ebx, eax
mov eax, ebx
mov ecx, esi
mov edx, dword [esi + 0x98]
add esp, 0xfffffff4
call fcn.00404296
mov dword [esp + 0x6c], eax
mov eax, ebx
mov ecx, esi
add esp, 0xfffffff4
mov edx, dword [esi + 0x1c]
call fcn.00404296
mov dword [esp + 0x54], eax
mov eax, ebx
mov ecx, esi
add esp, 0xfffffff4
mov edx, dword [esi + 0x11c]
call fcn.00404296
mov dword [esp + 0x5c], eax
mov eax, ebx
mov ecx, esi
add esp, 0xfffffff4
mov edx, dword [esi + 0xac]
call fcn.00404296
mov dword [esp + 0x58], eax
mov eax, ebx
mov ecx, esi
add esp, 0xfffffff4
mov edx, dword [esi + 0xc0]
call fcn.00404296
mov dword [esp + 0x50], eax
mov eax, ebx
mov ecx, esi
add esp, 0xfffffff4
mov edx, dword [esi + 0x80]
call fcn.00404296
mov dword [esp + 0x60], eax
mov eax, ebx
mov ecx, esi
add esp, 0xfffffff4
mov edx, dword [esi + 0xe4]
call fcn.00404296
mov dword [esp + 0x68], eax
mov eax, ebx
mov ecx, esi
add esp, 0xfffffff4
mov edx, dword [esi + 0xcc]
call fcn.00404296
mov dword [esp + 0x64], eax
mov ebx, dword [ebp + 0x4c]
push dword [ebx + 0x10c]
push dword [ebx + 0xec]
call dword [ebp + 0x2c]
mov dword [esp + 4], eax
mov ebx, dword [ebp + 0x4c]
push 0x27
push dword [ebx + 0xec]
call dword [ebp + 0x2c]
mov ebx, eax
mov eax, ebx
lea edx, [esi + 0x9c]
mov ecx, 4
add esp, 0xfffffff4
call fcn.00404206
mov eax, ebx
push eax
call fcn.0040425e
movzx edx, byte [esi + 0x18]
push eax
mov byte [eax + ebx], dl
movzx ecx, byte [esi + 0x19]
mov byte [eax + ebx + 1], cl
mov eax, ebx
call fcn.0040425e
movzx edx, byte [esi + 0x24]
push eax
mov byte [eax + ebx], dl
movzx ecx, byte [esi + 0x25]
mov byte [eax + ebx + 1], cl
movzx edx, byte [esi + 0x26]
mov byte [eax + ebx + 2], dl
movzx edx, byte [esi + 0x27]
mov byte [eax + ebx + 3], dl
mov eax, ebx
call fcn.0040425e
mov edx, eax
mov edi, edx
test edx, edx
je 0x405358
mov eax, edx
shr eax, 1
mov dword [esp + 0xc], eax
je 0x40653c
mov ecx, dword [esp + 4]
xor eax, eax
lea edi, [ebx + edx]
mov dword [esp + 0x90], esi
mov dword [esp], ebx
lea ecx, [ecx + edx*2]
mov dword [esp + 0x94], ebp
mov ebp, edi
mov esi, eax
movsx edi, byte [esi + ebp]
lea ebx, [eax*4]
neg ebx
inc eax
mov word [ecx + ebx], di
movsx edi, byte [esi + ebp - 1]
mov word [ecx + ebx - 2], di
lea edi, [esi + edx - 2]
add esi, 0xfffffffe
cmp eax, dword [esp + 0xc]
jb 0x4052fe
mov ebx, dword [esp]
lea ecx, [eax + eax + 1]
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0x90]
lea eax, [ecx - 1]
cmp eax, edx
jae 0x405358
mov edi, edx
add edx, ebx
sub edx, ecx
sub edi, ecx
movsx eax, byte [edx + 1]
mov edx, dword [esp + 4]
mov word [edx + edi*2 + 2], ax
mov eax, dword [esp + 4]
movsx ebx, byte [edi + ebx]
mov word [eax + edi*2], bx
mov edi, dword [ebp + 0x4c]
push dword [edi + 0x10c]
push dword [edi + 0xec]
call dword [ebp + 0x2c]
mov dword [esp], eax
push eax
mov eax, dword [esp + 8]
call fcn.00403f46
test eax, eax
jbe 0x4053cd
cmp eax, 0x30
jbe 0x4064dc
mov ecx, dword [esp]
lea edi, [eax + eax]
sub ecx, dword [esp + 4]
xor ebx, ebx
xor edx, edx
cmp ecx, edi
mov dword [esp + 0xc], eax
setg dl
neg ecx
cmp ecx, edi
setg bl
mov eax, edx
or eax, ebx
mov eax, dword [esp + 0xc]
je 0x4064dc
push edi
push dword [esp + 8]
push dword [esp + 8]
call fcn.00403ee6
add esp, 0xc
push dword [esp]
call dword [ebp + 0x30]
mov ebx, eax
mov eax, ebx
mov ecx, esi
mov edx, dword [esi + 0x3c]
add esp, 0xfffffff4
call fcn.00404296
mov dword [ebp + 0x48], eax
mov eax, ebx
mov ecx, esi
add esp, 0xfffffff4
mov edx, dword [esi + 0xd4]
call fcn.00404296
mov dword [ebp + 0x20], eax
mov eax, ebx
mov ecx, esi
add esp, 0xfffffff4
mov edx, dword [esi + 0xa0]
call fcn.00404296
mov edi, dword [ebp + 0x4c]
mov dword [ebp + 0x5c], eax
push dword [edi + 0x10c]
push dword [edi + 0xec]
call dword [ebp + 0x2c]
mov edi, eax
mov dword [esp + 0x98], 0x20000
mov eax, 0x20000
mov dword [esp], ebx
mov dword [esp + 0x90], esi
mov edx, dword [ebp + 0x4c]
jmp 0x40544d
mov edx, dword [ebp + 0x4c]
mov eax, dword [edx + 0x10c]
push eax
push dword [edx + 0xec]
call dword [ebp + 0x2c]
mov ebx, eax
test ebx, ebx
je 0x4064cd
mov esi, dword [esp + 0x98]
mov eax, ebx
mov edx, esi
add esp, 0xfffffff8
call fcn.00404d06
lea ecx, [esp + 0x98]
push ecx
push esi
push ebx
push 5
call dword [ebp + 0x1c]
test eax, eax
je 0x40549b
mov eax, dword [esp + 0x98]
add eax, eax
mov dword [esp + 0x98], eax
je 0x405444
jmp 0x40543f
mov eax, dword [ebp + 0x4c]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp]
mov esi, dword [esp + 0x90]
push 0xcc
push dword [eax + 0xec]
call dword [ebp + 0x2c]
mov edx, dword [esp + 0xc]
cmp dword [edx], 0
je 0x40565b
mov dword [esp + 0x94], ebp
mov dword [esp + 4], edi
mov dword [esp], ebx
mov ebx, eax
mov dword [esp + 0x90], esi
mov ebp, edx
cmp dword [ebp + 0x3c], 0
je 0x405639
mov eax, ebx
mov edx, 4
add esp, 0xfffffff8
call fcn.00404d06
mov ecx, dword [ebp + 0x3c]
xor edx, edx
movzx esi, word [ecx + edx*2]
test esi, esi
je 0x405510
mov word [ebx + edx*2], si
inc edx
cmp edx, 2
jb 0x4054fe
mov eax, ebx
push eax
call fcn.00403f46
test eax, eax
je 0x405583
jbe 0x405583
mov edx, eax
shr edx, 1
je 0x40620f
xor ecx, ecx
movzx edi, word [ebx + ecx*4]
cmp edi, 0x41
jl 0x40553d
cmp edi, 0x5a
lea esi, [edi + 0x20]
jg 0x40553d
mov edi, esi
mov word [ebx + ecx*4], di
movzx edi, word [ebx + ecx*4 + 2]
cmp edi, 0x41
jl 0x405555
cmp edi, 0x5a
lea esi, [edi + 0x20]
jg 0x405555
mov edi, esi
mov word [ebx + ecx*4 + 2], di
inc ecx
cmp ecx, edx
jb 0x40552a
lea esi, [ecx + ecx + 1]
lea edx, [esi - 1]
cmp edx, eax
jae 0x405583
movzx ecx, word [ebx + esi*2 - 2]
cmp ecx, 0x41
jl 0x40557e
cmp ecx, 0x5a
lea edx, [ecx + 0x20]
jg 0x40557e
mov ecx, edx
mov word [ebx + esi*2 - 2], cx
mov eax, ebx
push eax
call fcn.00403f46
test eax, eax
jbe 0x4055e1
mov edx, dword [esp + 0x90]
xor ecx, ecx
mov esi, dword [edx + 0xf0]
mov edx, eax
shr edx, 1
je 0x406219
mov dword [esp + 0xc], ebp
xor edi, edi
imul ecx, esi
movzx ebp, word [ebx + edi*4]
add ecx, ebp
imul ecx, esi
movzx ebp, word [ebx + edi*4 + 2]
inc edi
add ecx, ebp
cmp edi, edx
jb 0x4055ae
mov ebp, dword [esp + 0xc]
lea edi, [edi + edi + 1]
lea edx, [edi - 1]
cmp edx, eax
jae 0x4055e3
imul esi, ecx
movzx ecx, word [ebx + edi*2 - 2]
add ecx, esi
jmp 0x4055e3
xor ecx, ecx
mov edx, dword [esp + 0x90]
cmp ecx, dword [edx + 0xf4]
jne 0x4055fc
mov edx, dword [esp + 4]
mov byte [edx + 1], 1
jmp 0x405639
cmp ecx, dword [edx + 0x6c]
jne 0x40560b
mov edx, dword [esp + 4]
mov byte [edx + 5], 1
jmp 0x405639
cmp ecx, dword [edx + 0xc4]
jne 0x40561d
mov edx, dword [esp + 4]
mov byte [edx + 6], 1
jmp 0x405639
cmp ecx, dword [edx + 0x20]
jne 0x40562c
mov edx, dword [esp + 4]
mov byte [edx + 7], 1
jmp 0x405639
cmp ecx, dword [edx + 0x54]
jne 0x405639
mov edx, dword [esp + 4]
mov byte [edx + 8], 1
add ebp, dword [ebp]
cmp dword [ebp], 0
jne 0x4054e0
mov edi, dword [esp + 4]
mov ebx, dword [esp]
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0x90]
cmp byte [edi + 1], 0
jne 0x405667
cmp byte [edi + 5], 0
je 0x4056bf
xor edx, edx
lea eax, [esp + 0xb4]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov ebx, eax
mov dword [eax - 0x24], esi
mov esi, edx
mov eax, ebx
mov edx, 8
add esp, 0xfffffff8
mov edi, dword [ebp + 0x54]
call fcn.00404d06
mov dword [esp + 0xb4], 0xff2382b0
mov dword [esp + 0xb8], 0xffffffff
push ebx
push 0
call edi
inc esi
cmp esi, 0x2c
jl 0x40567e
mov edi, dword [esp + 4]
mov ebx, dword [esp]
mov esi, dword [esp + 0x90]
push 0
call dword [ebp + 0x10]
movzx edi, word [edi + 6]
test edi, edi
je 0x40619e
mov eax, ebx
mov ecx, esi
mov dword [esp + 0x14], ebp
add esp, 0xfffffff4
mov edx, dword [esi + 0x4c]
call fcn.00404296
mov dword [esp + 0x1c], eax
mov eax, ebx
mov ecx, esi
add esp, 0xfffffff4
mov edx, dword [esi + 0xb0]
call fcn.00404296
mov dword [esp + 0x20], eax
add esp, 0xfffffff4
mov ecx, esi
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0xc8]
call fcn.00404296
mov dword [esp + 0x24], eax
mov ebx, dword [ebp + 0x4c]
push dword [ebx + 0x10c]
push dword [ebx + 0xec]
call dword [ebp + 0x2c]
mov edi, eax
push 0x104
push edi
push 0
call dword [ebp + 0x60]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edi
call dword [ebp + 0x34]
mov dword [esp], eax
cmp dword [esp], 0xffffffff
je 0x405768
push 0
push dword [esp + 4]
call dword [ebp + 0x58]
mov ebx, eax
test ebx, ebx
jne 0x40576c
push dword [esp]
call dword [ebp + 0x68]
xor edi, edi
jmp 0x405798
mov edi, dword [ebp + 0x4c]
push ebx
push dword [edi + 0xec]
call dword [ebp + 0x2c]
mov edi, eax
xor eax, eax
lea edx, [esp + 0x48]
mov dword [edx], eax
push eax
push edx
push ebx
push edi
push dword [esp + 0x10]
call dword [ebp + 0x3c]
test eax, eax
je 0x405762
push dword [esp]
call dword [ebp + 0x68]
add esp, 0xfffffff4
mov ecx, esi
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x8c]
call fcn.00404296
mov dword [esp + 0x80], eax
mov edx, dword [esi + 0x74]
mov dword [esp + 0xc], edx
mov eax, dword [esi + 0x114]
mov ecx, dword [edi + edx]
mov edx, dword [edi + edx + 4]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 0xa8], edx
mov dword [esp + 0x8c], edx
mov edx, dword [esi]
xor eax, dword [esi + 0x5c]
mov dword [esp + 0x34], edx
mov edx, dword [esi + 8]
mov dword [esp + 0x10], edx
cmp ecx, eax
jne 0x40589f
add esp, 0xfffffff4
mov edx, esi
mov ecx, 4
lea eax, [esp + 0xb8]
call fcn.00404206
mov eax, dword [esp + 0xc]
add ebx, 0xfffffffa
mov byte [esp + 0xb0], 0xd
mov byte [esp + 0xb1], 0xa
mov dword [esp + 0x94], ebp
lea edi, [edi + eax + 8]
mov dword [esp + 0x90], esi
xor ebp, ebp
test ebx, ebx
je 0x40622d
mov esi, ebp
mov eax, ebp
mov ecx, edi
movzx edx, byte [esp + eax + 0xac]
cmp dl, byte [ecx + 1]
je 0x405858
cmp edx, 0x3f
jne 0x406223
inc eax
inc ecx
cmp eax, 6
jb 0x405842
inc edi
je 0x40622d
add esp, 0xffffffec
mov eax, edi
mov esi, dword [esp + 0xa8]
lea ecx, [esp + 0xa0]
mov dword [esp + 0xc], esi
mov edx, dword [ecx + 4]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x1c]
call fcn.00403f86
test al, al
je 0x405834
mov ebp, esi
mov esi, dword [esp + 0x90]
jmp 0x405d4e
mov eax, dword [ebp + 0x4c]
test ecx, ecx
jne 0x4058ae
mov ebx, dword [eax + 0x10c]
jmp 0x4058b0
mov ebx, ecx
push ebx
push dword [eax + 0xec]
mov dword [esp + 0xc], ecx
call dword [ebp + 0x2c]
mov ecx, dword [esp + 4]
mov dword [esp], eax
add esp, 0xfffffff4
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
lea edx, [edi + ebx + 8]
call fcn.00404206
mov ecx, dword [esp + 4]
test ecx, ecx
jbe 0x40591d
add ecx, 3
mov ebx, ecx
shr ebx, 3
je 0x4064b4
mov eax, dword [esp]
xor edi, edi
mov edx, dword [esp + 8]
xor dword [eax + edi*8], edx
xor dword [eax + edi*8 + 4], edx
inc edi
cmp edi, ebx
jb 0x4058f8
lea eax, [edi + edi + 1]
shr ecx, 2
lea ebx, [eax - 1]
cmp ebx, ecx
jae 0x40591d
mov edi, dword [esp]
mov ebx, dword [esp + 8]
xor dword [edi + eax*4 - 4], ebx
mov ebx, dword [ebp + 0x4c]
push dword [ebx + 0x10c]
push dword [ebx + 0xec]
call dword [ebp + 0x2c]
mov dword [esp + 4], eax
mov ebx, dword [esp]
cmp byte [ebx], 0
je 0x40594f
xor ebx, ebx
mov edx, dword [esp]
movsx edi, byte [ebx + edx]
mov word [eax + ebx*2], di
inc ebx
cmp byte [ebx + edx], 0
jne 0x405940
mov ebx, dword [ebp + 0x4c]
push dword [ebx + 0x10c]
push dword [ebx + 0xec]
call dword [ebp + 0x2c]
mov edi, eax
push edi
push 0x104
call dword [ebp + 8]
mov ebx, dword [ebp + 0x4c]
push 0x1d
push dword [ebx + 0xec]
call dword [ebp + 0x2c]
mov ebx, eax
mov ecx, 0x25
mov eax, 0x78
mov word [esp + 0x40], cx
xor edx, edx
mov word [esp + 0x42], ax
mov word [esp + 0x44], dx
mov edx, 8
mov ecx, dword [ebp + 0x6c]
mov dword [esp], ecx
add esp, 0xfffffff8
lea eax, [esp + 0x34]
call fcn.00404d06
lea eax, [esp + 0x2c]
push eax
call dword [esp + 4]
lea eax, [esp + 0x40]
push dword [esp + 0x2c]
push eax
push ebx
call dword [ebp + 0x64]
add esp, 0xc
movzx eax, word [edi]
xor ecx, ecx
test eax, eax
je 0x4064ad
inc ecx
lea eax, [edi + ecx*2]
movzx edx, word [eax]
test edx, edx
jne 0x4059d4
movzx edx, word [eax - 2]
cmp edx, 0x5c
je 0x4059f8
mov edx, 0x5c
mov word [edi + ecx*2], dx
mov edx, 1
jmp 0x4059fa
xor edx, edx
test ebx, ebx
je 0x4064a2
add ecx, edx
xor eax, eax
movzx edx, word [ebx]
test edx, edx
je 0x405a2f
mov dword [esp + 0x90], esi
lea edx, [edi + ecx*2]
movzx esi, word [ebx + eax*2]
mov word [edx + eax*2], si
inc eax
movzx esi, word [ebx + eax*2]
test esi, esi
jne 0x405a17
mov esi, dword [esp + 0x90]
add eax, ecx
xor ebx, ebx
mov word [edi + eax*2], bx
push eax
mov eax, dword [esp + 8]
call fcn.00403f46
dec dword [ebx + 0x76c985c8]
invalid
mov edi, ecx
xor ebx, ebx
mov edx, dword [esi + 0xf0]
shr edi, 1
je 0x406240
mov dword [esp + 0x94], ebp
xor eax, eax
mov dword [esp + 0x90], esi
mov ebp, dword [esp + 4]
imul ebx, edx
movzx esi, word [ebp + eax*4]
add ebx, esi
imul ebx, edx
movzx esi, word [ebp + eax*4 + 2]
inc eax
add ebx, esi
cmp eax, edi
jb 0x405a6d
mov ebp, dword [esp + 0x94]
lea edi, [eax + eax + 1]
mov esi, dword [esp + 0x90]
lea eax, [edi - 1]
cmp eax, ecx
jae 0x405ab1
imul edx, ebx
mov ebx, dword [esp + 4]
movzx ebx, word [ebx + edi*2 - 2]
xor ebx, ebx
mov edx, dword [esi + 0x90]
lea edi, [esp + 0x50]
add edx, eax
mov dword [edi + 0x4c], 0
mov dword [esp], ebx
mov dword [edi + 0x40], esi
mov esi, edx
add esp, 0xfffffff0
mov eax, ebp
mov edx, esi
lea ecx, [esp + 0xac]
mov dword [esp + 0xc], edi
call fcn.00404476
test eax, eax
jg 0x4064be
add esp, 0xfffffff8
mov edx, 8
mov ebx, dword [ebp + 0x54]
lea eax, [esp + 0x8c]
call fcn.00404d06
mov dword [esp + 0x84], 0xfbff8660
lea ecx, [esp + 0x84]
mov dword [ecx + 4], 0xffffffff
push ecx
push 0
call ebx
jmp 0x4061b9
mov esi, 1
jmp 0x405563
mov edi, 1
jmp 0x4055ce
inc esi
inc edi
cmp esi, ebx
jb 0x40583e
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0x90]
jmp 0x405d4e
mov edi, 1
jmp 0x405a98
xor ebx, ebx
mov word [eax + 2], bx
jmp 0x405a37
mov eax, edi
jmp 0x4059df
mov eax, 1
jmp 0x405908
mov ebx, dword [esp]
mov esi, dword [esp + 0x90]
jmp 0x4056d0
mov ebx, dword [esp]
mov esi, dword [esp + 0x90]
jmp 0x40565b
mov edi, eax
shr edi, 1
je 0x406535
mov dword [esp + 0x90], esi
xor ebx, ebx
mov edx, dword [esp]
mov ecx, dword [esp + 4]
movzx esi, word [ecx + ebx*4]
mov word [edx + ebx*4], si
movzx esi, word [ecx + ebx*4 + 2]
mov word [edx + ebx*4 + 2], si
mov dword [edx + ebx*4 + 2], esi
inc ebx
cmp ebx, edi
jb 0x4064f2
mov esi, dword [esp + 0x90]
lea ebx, [ebx + ebx + 1]
lea edi, [ebx - 1]
cmp edi, eax
jae 0x4053cd
mov edi, dword [esp + 4]
mov eax, dword [esp]
movzx edi, word [edi + ebx*2 - 2]
mov word [eax + ebx*2 - 2], di
jmp 0x4053cd
mov ebx, 1
jmp 0x406514
mov ecx, 1
jmp 0x40533c
mov edi, eax
shr edi, 1
je 0x40659f
mov dword [esp + 0x90], esi
xor ebx, ebx
mov edx, dword [esp]
mov ecx, dword [esp + 4]
movzx esi, word [ecx + ebx*4]
mov word [edx + ebx*4], si
movzx esi, word [ecx + ebx*4 + 2]
mov word [edx + ebx*4 + 2], si
inc ebx
cmp ebx, edi
jb 0x40655c
mov esi, dword [esp + 0x90]
lea ebx, [ebx + ebx + 1]
lea edi, [ebx - 1]
cmp edi, eax
jae 0x40518d
mov edi, dword [esp + 4]
mov eax, dword [esp]
movzx edi, word [edi + ebx*2 - 2]
mov word [eax + ebx*2 - 2], di
jmp 0x40518d
mov ebx, 1
jmp 0x40657e
mov ecx, 1
jmp 0x4050fc