Function at 0x417f00
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x40
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
push esi
push edi
push ebp
mov eax, dword [ebp + 0x90]
mov ecx, dword [ebp + 0x94]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x2c]
mov edi, dword [ebp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 0xc0]
mov edx, dword [ebp + 0x98]
mov esi, dword [eax + 8]
mov dword [esp + 0x1c], ecx
mov ecx, esi
mov dword [esp + 0x3c], edx
sub ecx, edi
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0xd0]
mov ebx, ecx
mov dword [esp + 0x18], edx
and bl, 0x20
mov eax, dword [eax]
neg bl
sbb ebx, ebx
and cl, 0x10
and ebx, 0xfffffffe
mov dword [esp + 0x2c], edi
inc ebx
imul ebx, dword [edx + 8]
neg cl
mov edx, dword [ebp + 0xc]
sbb ecx, ecx
imul edx, esi
and ecx, 0xfffffffe
inc ecx
imul ecx, edi
sub ebx, ecx
mov ecx, dword [ebp + 8]
add edx, ecx
mov dword [esp + 0x24], ebx
lea esi, [eax + edx*2]
call fcn.00414930
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, dword [ecx]
lea ebx, [edx + eax*2]
mov eax, edi
and eax, reloc.DSOUND.dll_DirectSoundCreate
mov dword [esp + 0x2c], ebx
jns 0x417fb5
dec eax
or eax, 0xfffffffe
inc eax
mov dword [esp + 0x34], eax
mov eax, edi
xor edi, edi
mov di, word [ebp + 0xca]
mov ebp, 0x20
cdq
mov dword [esp + 0x4c], edi
sub eax, edx
sar edi, 3
sar eax, 1
sub ebp, edi
mov dword [esp + 0x30], eax
test edi, edi
mov dword [esp + 0x24], ebp
je 0x418af2
cmp edi, 0x20
jne 0x417ff8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
jmp fcn.00417440
mov ecx, dword [esp + 0x40]
mov eax, 0x80
cmp ecx, eax
jne 0x4186ee
cmp dword [esp + 0x3c], eax
jne 0x4186ee
cmp dword [esp + 0x38], eax
jne 0x4186ee
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
jne 0x41816f
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x418af2
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], edx
lea edx, [ecx + ecx]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x4180cc
mov dword [esp + 0x2c], eax
mov ecx, dword [ebx]
mov edx, dword [esi]
mov eax, dword [0x66eb70]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x40], edx
add esi, 4
shr eax, 5
shr edx, 5
shr ecx, 5
and edx, eax
and ecx, eax
imul edx, ebp
imul ecx, edi
mov eax, dword [esp + 0x40]
add edx, ecx
mov ecx, dword [0x66eb70]
add ebx, 4
and edx, ecx
mov ecx, dword [0x66eb74]
and eax, ecx
imul eax, ebp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
and eax, ecx
mov ecx, dword [esp + 0x40]
imul eax, edi
add ecx, eax
mov eax, dword [0x66eb74]
shr ecx, 5
and ecx, eax
mov eax, dword [esp + 0x2c]
or edx, ecx
dec eax
mov dword [esi - 4], edx
mov dword [esp + 0x2c], eax
jne 0x41805c
mov eax, dword [esp + 0x34]
test eax, eax
je 0x418147
mov ecx, dword [0x66eb5c]
xor eax, eax
mov ax, word [ebx]
and ecx, 0xffff
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov cx, word [esi]
mov dword [esp + 0x54], eax
mov dword [esp + 0x40], ecx
mov edx, ecx
mov ecx, dword [0x66eb6c]
add esi, 2
and edx, ecx
and eax, ecx
imul edx, ebp
imul eax, edi
add edx, eax
mov eax, dword [esp + 0x10]
shr edx, 5
and edx, ecx
mov ecx, dword [esp + 0x40]
and ecx, eax
imul ecx, ebp
mov word [esp + 0x3c], cx
mov ecx, dword [esp + 0x54]
and eax, ecx
mov cx, word [esp + 0x3c]
imul eax, edi
add ecx, eax
mov eax, dword [0x66eb5c]
sar ecx, 5
and ecx, eax
or edx, ecx
add ebx, 2
mov word [esi - 2], dx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
add esi, edx
add ebx, ecx
dec eax
mov dword [esp + 0x28], eax
jne 0x418050
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
cmp eax, 0xfffffffe
jne 0x4184a1
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
test edx, edx
je 0x4184a1
mov edx, dword [esp + 0x54]
push edx
call fcn.00414930
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x10]
add eax, edx
test ecx, ecx
mov dword [esp + 0x18], eax
jle 0x418af2
mov edx, dword [esp + 0x1c]
lea ecx, [edx + edx]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x30]
test ecx, ecx
jle 0x418364
mov dword [esp + 0x28], ecx
mov cl, byte [eax]
test cl, cl
jne 0x4181e1
mov dl, byte [eax + 1]
test dl, dl
je 0x418344
cmp cl, 0xff
jne 0x418256
cmp byte [eax + 1], cl
jne 0x418256
mov eax, dword [ebx]
mov ecx, dword [esi]
mov edx, dword [0x66eb70]
mov dword [esp + 0x54], eax
mov dword [esp + 0x40], ecx
shr edx, 5
shr ecx, 5
shr eax, 5
and ecx, edx
and eax, edx
imul ecx, ebp
imul eax, edi
add ecx, eax
mov eax, dword [0x66eb70]
and ecx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x3c], ecx
mov ecx, dword [0x66eb74]
and eax, ecx
imul eax, ebp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
and eax, ecx
mov ecx, dword [esp + 0x40]
imul eax, edi
add ecx, eax
mov eax, dword [0x66eb74]
shr ecx, 5
and ecx, eax
mov eax, dword [esp + 0x3c]
or eax, ecx
mov dword [esi], eax
jmp 0x418340
and ecx, 0xff
mov eax, 0x1f
imul ecx, edi
sar ecx, 8
sub eax, ecx
mov ecx, dword [0x66eb5c]
and ecx, 0xffff
xor edx, edx
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov cx, word [esi]
mov dx, word [ebx]
mov ebp, ecx
mov dword [esp + 0x1c], eax
and ebp, dword [0x66eb6c]
mov dword [esp + 0x54], edx
imul ebp, eax
mov eax, dword [0x66eb6c]
and edx, eax
imul edx, edi
add ebp, edx
mov edx, dword [esp + 0x54]
shr ebp, 5
and ebp, eax
mov eax, dword [esp + 0x10]
and ecx, eax
and eax, edx
imul ecx, dword [esp + 0x1c]
imul eax, edi
add ecx, eax
mov eax, dword [0x66eb5c]
sar ecx, 5
and ecx, eax
xor eax, eax
or ebp, ecx
mov ecx, dword [esp + 0x18]
mov word [esi], bp
mov ebp, dword [0x66eb5c]
mov al, byte [ecx + 1]
xor ecx, ecx
mov edx, eax
mov cx, word [esi + 2]
imul edx, edi
sar edx, 8
mov eax, 0x1f
and ebp, 0xffff
sub eax, edx
xor edx, edx
mov dx, word [ebx + 2]
mov ebx, ecx
and ebx, ebp
mov dword [esp + 0x1c], eax
imul ebx, eax
mov eax, edx
and eax, ebp
mov ebp, dword [esp + 0x24]
imul eax, edi
add ebx, eax
mov eax, dword [0x66eb5c]
sar ebx, 5
and ebx, eax
mov eax, dword [0x66eb6c]
and ecx, eax
and edx, eax
imul ecx, dword [esp + 0x1c]
imul edx, edi
add ecx, edx
shr ecx, 5
and ecx, eax
or ebx, ecx
mov word [esi + 2], bx
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
add esi, 4
add ebx, 4
add eax, 2
dec ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ecx
jne 0x4181d0
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x41846c
mov cl, byte [eax]
test cl, cl
je 0x418465
cmp cl, 0xff
jne 0x4183d9
mov ecx, dword [0x66eb5c]
xor eax, eax
mov ax, word [ebx]
and ecx, 0xffff
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov cx, word [esi]
mov dword [esp + 0x54], eax
mov dword [esp + 0x2c], ecx
mov edx, ecx
mov ecx, dword [0x66eb6c]
and edx, ecx
and eax, ecx
imul edx, ebp
imul eax, edi
add edx, eax
mov eax, dword [esp + 0x10]
shr edx, 5
and edx, ecx
mov ecx, dword [esp + 0x2c]
and ecx, eax
imul ecx, ebp
mov word [esp + 0x44], cx
mov ecx, dword [esp + 0x54]
and eax, ecx
mov cx, word [esp + 0x44]
jmp 0x41844d
mov edx, dword [0x66eb5c]
and ecx, 0xff
imul ecx, edi
and edx, 0xffff
mov eax, 0x1f
mov dword [esp + 0x10], edx
xor edx, edx
mov dx, word [esi]
sar ecx, 8
mov dword [esp + 0x2c], edx
and edx, dword [0x66eb6c]
sub eax, ecx
xor ecx, ecx
mov cx, word [ebx]
mov dword [esp + 0x1c], eax
imul edx, eax
mov eax, dword [0x66eb6c]
mov dword [esp + 0x54], ecx
and ecx, eax
imul ecx, edi
add edx, ecx
mov ecx, dword [esp + 0x10]
shr edx, 5
and edx, eax
mov eax, dword [esp + 0x2c]
and eax, ecx
imul eax, dword [esp + 0x1c]
mov word [esp + 0x48], ax
mov eax, ecx
mov ecx, dword [esp + 0x54]
and eax, ecx
mov cx, word [esp + 0x48]
imul eax, edi
add ecx, eax
mov eax, dword [0x66eb5c]
sar ecx, 5
and ecx, eax
mov eax, dword [esp + 0x18]
or edx, ecx
mov word [esi], dx
add esi, 2
add ebx, 2
inc eax
mov edx, dword [esp + 0x14]
add esi, edx
mov edx, dword [esp + 0x20]
add eax, edx
lea ecx, [edx + edx]
mov dword [esp + 0x18], eax
add ebx, ecx
mov ecx, dword [esp + 0x38]
dec ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ecx
jne 0x4181c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x418af2
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
add edx, edx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x20]
add edx, edx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x30]
test ecx, ecx
jle 0x418648
mov dword [esp + 0x38], ecx
xor edx, edx
mov dx, word [ebx]
cmp edx, eax
mov dword [esp + 0x54], edx
je 0x4185c0
xor ecx, ecx
mov cx, word [ebx + 2]
cmp ecx, eax
je 0x41855b
mov eax, dword [ebx]
mov ecx, dword [esi]
mov edx, dword [0x66eb70]
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], ecx
shr edx, 5
shr ecx, 5
shr eax, 5
and ecx, edx
and eax, edx
imul ecx, ebp
imul eax, edi
add ecx, eax
mov eax, dword [0x66eb70]
and ecx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x44], ecx
mov ecx, dword [0x66eb74]
and eax, ecx
imul eax, ebp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
and eax, ecx
mov ecx, dword [esp + 0x48]
imul eax, edi
add ecx, eax
mov eax, dword [0x66eb74]
shr ecx, 5
and ecx, eax
mov eax, dword [esp + 0x44]
or eax, ecx
mov dword [esi], eax
jmp 0x41862f
cmp edx, eax
je 0x4185c0
mov ecx, dword [0x66eb5c]
xor eax, eax
mov ax, word [esi]
and ecx, 0xffff
mov dword [esp + 0x2c], eax
and eax, ecx
and ecx, edx
imul eax, ebp
imul ecx, edi
mov edx, dword [0x66eb5c]
add eax, ecx
mov ecx, dword [esp + 0x54]
sar eax, 5
and eax, edx
mov edx, dword [0x66eb6c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
and eax, edx
and ecx, edx
imul eax, ebp
imul ecx, edi
mov word [esp + 0x40], ax
add eax, ecx
shr eax, 5
mov ecx, edx
and eax, ecx
mov ecx, dword [esp + 0x48]
or ecx, eax
mov word [esi], cx
jmp 0x41862f
xor edx, edx
mov dx, word [ebx + 2]
cmp edx, eax
mov dword [esp + 0x48], edx
je 0x418633
mov ecx, dword [0x66eb5c]
xor eax, eax
mov ax, word [esi + 2]
and ecx, 0xffff
mov dword [esp + 0x54], eax
and eax, ecx
and edx, ecx
imul eax, ebp
imul edx, edi
add eax, edx
mov edx, dword [0x66eb5c]
mov ecx, dword [esp + 0x48]
sar eax, 5
and eax, edx
mov edx, dword [0x66eb6c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
and eax, edx
and ecx, edx
imul eax, ebp
imul ecx, edi
mov word [esp + 0x3c], ax
add eax, ecx
shr eax, 5
mov ecx, edx
and eax, ecx
mov ecx, dword [esp + 0x44]
or ecx, eax
mov word [esi + 2], cx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
add esi, 4
add ebx, 4
dec ecx
mov dword [esp + 0x38], ecx
jne 0x4184d5
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4186c6
xor edx, edx
mov dx, word [ebx]
cmp edx, eax
mov dword [esp + 0x54], edx
je 0x4186c0
mov ecx, dword [0x66eb5c]
xor eax, eax
mov ax, word [esi]
and ecx, 0xffff
mov dword [esp + 0x2c], eax
and eax, ecx
and ecx, edx
imul eax, ebp
imul ecx, edi
mov edx, dword [0x66eb5c]
add eax, ecx
mov ecx, dword [esp + 0x54]
sar eax, 5
and eax, edx
mov edx, dword [0x66eb6c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
and eax, edx
and ecx, edx
imul eax, ebp
imul ecx, edi
mov word [esp + 0x24], ax
add eax, ecx
shr eax, 5
mov ecx, edx
and eax, ecx
mov ecx, dword [esp + 0x48]
or ecx, eax
mov eax, dword [esp + 0x18]
mov word [esi], cx
add esi, 2
add ebx, 2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add esi, ecx
mov ecx, dword [esp + 0x28]
add ebx, edx
dec ecx
mov dword [esp + 0x28], ecx
jne 0x4184c5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
call fcn.00405cd0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4187fe
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x418af2
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
lea ecx, [edx + edx]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
lea ecx, [edx + edx]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x4187d6
mov edx, eax
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x2c]
xor eax, eax
mov ax, word [ebx]
add esi, 2
mov ecx, eax
xor eax, eax
add ebx, 2
mov ax, word [edx + ecx*2]
mov ecx, dword [0x66eb5c]
mov dword [esp + 0x54], eax
xor eax, eax
mov ax, word [esi - 2]
and ecx, 0xffff
mov edx, eax
and edx, ecx
imul edx, ebp
mov ebp, dword [esp + 0x54]
and ebp, ecx
mov ecx, dword [esp + 0x54]
imul ebp, edi
add edx, ebp
mov ebp, dword [0x66eb5c]
sar edx, 5
and edx, ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x48], edx
mov edx, dword [0x66eb6c]
and eax, edx
and ecx, edx
imul eax, dword [esp + 0x24]
imul ecx, edi
add eax, ecx
mov ecx, dword [esp + 0x48]
shr eax, 5
and eax, edx
or ecx, eax
mov eax, dword [esp + 0x40]
mov word [esi - 2], cx
dec eax
mov dword [esp + 0x40], eax
jne 0x41874e
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
add esi, edx
add ebx, ecx
dec eax
mov dword [esp + 0x3c], eax
jne 0x41873c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
cmp dword [esp + 0x18], 0xfffffffe
jne 0x418a0b
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x418a0b
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00414930
mov edx, dword [esp + 0x18]
mov ecx, eax
add esp, 4
mov eax, dword [edx + 4]
add ecx, eax
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x30], ecx
jle 0x418af2
mov eax, dword [esp + 0x1c]
lea edx, [eax + eax]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x4189da
mov dword [esp + 0x40], eax
mov al, byte [ecx]
test al, al
je 0x4189bc
cmp al, 0xff
jne 0x4188ef
mov edx, dword [esp + 0x2c]
xor ecx, ecx
mov cx, word [ebx]
xor eax, eax
mov ax, word [edx + ecx*2]
mov edx, dword [0x66eb5c]
xor ecx, ecx
and edx, 0xffff
mov cx, word [esi]
mov dword [esp + 0x54], eax
mov dword [esp + 0x34], ecx
and ecx, edx
and eax, edx
imul ecx, ebp
imul eax, edi
add ecx, eax
mov eax, dword [0x66eb5c]
sar ecx, 5
and ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], ecx
mov ecx, dword [0x66eb6c]
and eax, ecx
imul eax, ebp
mov word [esp + 0x48], ax
mov eax, dword [esp + 0x54]
and eax, ecx
mov cx, word [esp + 0x48]
imul eax, edi
add ecx, eax
mov eax, dword [0x66eb6c]
shr ecx, 5
and ecx, eax
mov eax, dword [esp + 0x44]
or eax, ecx
mov word [esi], ax
jmp 0x4189bc
mov ecx, dword [0x66eb5c]
and eax, 0xff
shr eax, 3
xor edx, edx
and ecx, 0xffff
mov dx, word [ebx]
mov dword [esp + 0x1c], eax
lea ebp, [eax + 1]
mov eax, ecx
and eax, edx
mov dword [esp + 0x54], edx
shl eax, 5
cdq
idiv ebp
mov dword [esp + 0x10], ecx
xor edx, edx
and eax, ecx
mov ecx, dword [0x66eb6c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
and eax, ecx
shl eax, 5
div ebp
mov edx, 0x20
and eax, ecx
mov ecx, dword [esp + 0x44]
or ecx, eax
mov eax, dword [esp + 0x2c]
mov ax, word [eax + ecx*2]
mov ecx, dword [esp + 0x1c]
imul ecx, dword [esp + 0x4c]
sar ecx, 8
sub edx, ecx
and eax, 0xffff
mov dword [esp + 0x54], edx
xor edx, edx
mov dx, word [esi]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
mov ebp, eax
mov dword [esp + 0x34], edx
and ebp, ecx
imul ebp, dword [esp + 0x1c]
and edx, ecx
mov ecx, dword [esp + 0x34]
imul edx, dword [esp + 0x54]
add ebp, edx
mov edx, dword [0x66eb5c]
sar ebp, 5
and ebp, edx
mov edx, dword [0x66eb6c]
and eax, edx
and ecx, edx
imul eax, dword [esp + 0x1c]
imul ecx, dword [esp + 0x54]
add eax, ecx
shr eax, 5
and eax, edx
or ebp, eax
mov word [esi], bp
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
add esi, 2
add ebx, 2
inc ecx
dec eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], eax
jne 0x418863
mov edx, dword [esp + 0x14]
add esi, edx
mov edx, dword [esp + 0x20]
add ecx, edx
lea eax, [edx + edx]
mov dword [esp + 0x30], ecx
add ebx, eax
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x3c], eax
jne 0x418853
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x418af2
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], edx
lea edx, [ecx + ecx]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x418ad7
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov cx, word [ebx]
cmp ecx, eax
je 0x418ac2
mov edx, dword [esp + 0x2c]
xor eax, eax
mov ax, word [edx + ecx*2]
mov edx, dword [0x66eb5c]
xor ecx, ecx
and edx, 0xffff
mov cx, word [esi]
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], ecx
and ecx, edx
and eax, edx
imul ecx, ebp
imul eax, edi
add ecx, eax
mov eax, dword [0x66eb5c]
sar ecx, 5
and ecx, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x44], ecx
mov ecx, dword [0x66eb6c]
and eax, ecx
imul eax, ebp
mov word [esp + 0x48], ax
mov eax, dword [esp + 0x54]
and eax, ecx
mov cx, word [esp + 0x48]
imul eax, edi
add ecx, eax
mov eax, dword [0x66eb6c]
shr ecx, 5
and ecx, eax
mov eax, dword [esp + 0x44]
or eax, ecx
mov word [esi], ax
mov eax, dword [esp + 0x40]
add esi, 2
add ebx, 2
dec eax
mov dword [esp + 0x40], eax
jne 0x418a41
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
add esi, edx
add ebx, ecx
dec eax
mov dword [esp + 0x3c], eax
jne 0x418a31
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret