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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x38]
push edi
lea ecx, [esp + 0x38]
push eax
push ecx
push 0x8bb
call fcn.004447f0
lea edx, [esp + 0x30]
lea eax, [esp + 0x2c]
push edx
push eax
push 0x8c0
call fcn.004447f0
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 0x54]
add ecx, 4
lea edx, [esp + 0x5c]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x58]
push ecx
add eax, 2
push edx
push eax
call fcn.004447f0
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x78], ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x7c], edx
lea ecx, [esp + 0x6c]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
push 0x508bf0
push 7
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
call fcn.00442f10
mov ecx, dword [esi + 0x38]
mov word [esi + 0x158], 0
mov word [esi + 0x15a], 8
add esp, 0x38
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
je 0x41b43d
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx + 0xac]
test eax, eax
je 0x41b43d
inc word [esi + 0x158]
mov eax, dword [eax + 0x44]
test eax, eax
jne 0x41b42f
xor ebx, ebx
mov bx, word [esi + 0x15a]
mov edx, ebx
and edx, reloc.DSOUND.dll_DirectSoundCreate
jns 0x41b455
dec edx
or edx, 0xfffffffe
inc edx
je 0x41b458
inc ebx
mov ecx, dword [esi + 0x20]
mov ax, word [esi + 0x158]
imul ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x3c]
add ax, bx
mov word [esi + 0xb6], ax
xor eax, eax
mov edi, dword [edx + 4]
shl ecx, 1
mov edx, ecx
add edi, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
xor edx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x3c]
xor ecx, ecx
mov eax, dword [eax + 4]
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
add eax, 4
push edx
push eax
mov eax, dword [esi + 0x54]
push 0
push 0
push eax
push fcn.004c00b0
call fcn.00444850
add esp, 0x1c
cmp word [esi + 0xb4], 1
jbe 0x41b4ee
mov ecx, dword [esi + 0x3c]
xor edx, edx
mov eax, dword [ecx + 4]
xor ecx, ecx
mov dx, word [eax + 2]
mov cx, word [eax]
push edx
add eax, 4
push ecx
push eax
push 8
push 0x32
push 0x8bb
push fcn.004c00b0
call fcn.00444850
add esp, 0x1c
xor edx, edx
xor eax, eax
mov dx, word [esi + 0xb4]
mov ax, word [esi + 0xb6]
inc edx
cmp edx, eax
jge 0x41b535
mov ecx, dword [esi + 0x3c]
xor edx, edx
mov eax, dword [ecx + 4]
xor ecx, ecx
mov dx, word [eax + 2]
mov cx, word [eax]
push edx
add eax, 4
push ecx
push eax
push 8
push 0x141
push 0x8bc
push fcn.004c00b0
call fcn.00444850
add esp, 0x1c
mov edx, dword [esi + 0x3c]
xor ecx, ecx
mov eax, dword [edx + 4]
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
add eax, 4
push edx
push eax
push 0xaf
push 0x3a
push 0x8b1
push fcn.004c00b0
call fcn.00444850
mov eax, dword [esi + 0x3c]
xor ecx, ecx
xor edx, edx
mov eax, dword [eax + 4]
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
add eax, 4
push edx
push eax
push 0xaf
push 0x5d
push 0x8b2
push fcn.004c00b0
call fcn.00444850
mov eax, dword [esi + 0x3c]
xor ecx, ecx
xor edx, edx
mov eax, dword [eax + 4]
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
add eax, 4
push edx
push eax
push 0xaf
push 0x82
push 0x8b3
push fcn.004c00b0
call fcn.00444850
mov eax, dword [esi + 0x3c]
xor ecx, ecx
add esp, 0x54
xor edx, edx
mov eax, dword [eax + 4]
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
add eax, 4
push edx
push eax
push 0xaf
push 0xa4
push 0x8b4
push fcn.004c00b0
call fcn.00444850
mov eax, dword [esi + 0x3c]
xor ecx, ecx
xor edx, edx
mov eax, dword [eax + 4]
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
add eax, 4
push edx
push eax
push 0xaf
push 0xe3
push 0x8b5
push fcn.004c00b0
call fcn.00444850
mov eax, dword [esi + 0x3c]
xor ecx, ecx
mov eax, dword [eax + 4]
mov cx, word [eax + 2]
push ecx
xor edx, edx
mov dx, word [eax]
add eax, 4
push edx
push eax
push 0xaf
push 0x104
push 0x8b6
push fcn.004c00b0
call fcn.00444850
mov eax, dword [esi + 0x3c]
xor ecx, ecx
add esp, 0x54
xor edx, edx
mov eax, dword [eax + 4]
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
add eax, 4
push edx
push eax
push 0xaf
push 0x129
push 0x8b7
push fcn.004c00b0
call fcn.00444850
mov eax, dword [esi + 0x3c]
xor ecx, ecx
xor edx, edx
mov eax, dword [eax + 4]
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
add eax, 4
push edx
push eax
push 0xaf
push 0x14c
push 0x8b8
push fcn.004c00b0
call fcn.00444850
mov ax, word [esi + 0xb4]
add esp, 0x38
cmp ax, word [esi + 0x15a]
ja 0x41bb3d
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x4c]
push eax
mov eax, dword [edx + 4]
mov edx, dword [0x4f2128]
add eax, 4
push ecx
mov ecx, dword [esp + 0x18]
push eax
push str.INDEX
push 0
add ecx, 0xa
push 6
add edx, 0x2c
push ecx
push edx
call fcn.00442410
xor eax, eax
add esp, 0x20
mov ax, word [esi + 0xb4]
dec eax
cmp eax, 7
ja case.default.0x41b711
jmp dword [eax*4 + 0x41c4f8]
mov eax, str.First_Circle
jmp 0x41b755
mov eax, str.Second_Circle
jmp 0x41b755
mov eax, str.Third_Circle
jmp 0x41b755
mov eax, str.Fourth_Circle
jmp 0x41b755
mov eax, str.Fifth_Circle
jmp 0x41b755
mov eax, str.Sixth_Circle
jmp 0x41b755
mov eax, str.Seventh_Circle
jmp 0x41b755
mov eax, str.Eighth_Circle
jmp 0x41b755
mov eax, str.Bad_Circle
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x3c]
push edx
mov edx, dword [ecx + 4]
mov ecx, dword [0x4f212c]
add edx, 4
push edx
push eax
mov eax, dword [esp + 0x20]
push 0
push 6
lea edx, [ecx + eax + 0x14]
mov eax, dword [0x4f2128]
push edx
push eax
call fcn.00442410
mov ecx, dword [esi + 0x38]
mov edx, dword [0x4f212c]
add esp, 0x20
add edx, 0x24
mov edi, dword [ecx + 0xac]
mov dword [esp + 0x14], edx
test edi, edi
mov dword [esp + 0x28], edi
je 0x41b901
xor ecx, ecx
mov cx, word [edi + 0x40]
lea eax, [ecx - 1]
mov dword [esp + 0x2c], eax
cdq
and edx, 7
add eax, edx
xor edx, edx
mov dx, word [esi + 0xb4]
sar eax, 3
inc eax
cmp eax, edx
jne 0x41b8f2
mov ebx, dword [ecx*8 + 0x541bf8]
xor edx, edx
test ebx, ebx
je 0x41b81e
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x41b81e
mov eax, 0x741c5c
mov ebp, ebx
sub eax, ebx
mov dword [esp + 0x34], eax
mov al, byte [ebp]
cmp al, 0x28
je 0x41b81e
mov ecx, dword [esp + 0x34]
inc edx
mov edi, ebx
mov byte [ecx + ebp], al
or ecx, 0xffffffff
xor eax, eax
inc ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x41b7fe
mov byte [edx + 0x741c5b], 0
lea edx, [esp + 0x30]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
push 0x508bf0
push 9
call fcn.00442f10
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
mov edi, dword [esp + 0x28]
push 0x4f2128
mov ecx, dword [eax + 4]
push edx
mov edx, dword [esp + 0x2c]
add ecx, 4
push ecx
mov ecx, dword [0x4f2128]
push 0x741c5c
push 0x288
lea eax, [edi + edx]
push 9
push eax
push ecx
call fcn.00442a40
mov edx, dword [esp + 0x60]
mov eax, dword [0xcc045c]
add esp, 0x34
cmp eax, edx
jne 0x41b8e6
mov eax, dword [esi + 0x3c]
xor ecx, ecx
xor edx, edx
mov eax, dword [eax + 4]
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
add eax, 4
push edx
push eax
push 2
push 0xb8
push 0x8ad
push fcn.004c00b0
call fcn.00444850
mov eax, dword [esi + 0x3c]
xor ecx, ecx
xor edx, edx
mov eax, dword [eax + 4]
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
add eax, 4
push edx
push eax
lea eax, [edi + 6]
push eax
push 0xb8
push 0x8af
push fcn.004c00b0
call fcn.00444850
add esp, 0x38
add edi, dword [esp + 0x18]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x28]
mov edi, dword [edi + 0x44]
test edi, edi
mov dword [esp + 0x28], edi
jne 0x41b7ac
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [eax + 4]
mov eax, dword [0x4f2138]
add ecx, 4
push edx
mov edx, dword [esp + 0x18]
push ecx
push str.INDEX
push 0
add edx, 0xa
push 6
add eax, 0x2c
push edx
push eax
call fcn.00442410
xor eax, eax
add esp, 0x20
mov ax, word [esi + 0xb4]
cmp eax, 7
ja case.default.0x41b944
jmp dword [eax*4 + 0x41c518]
mov eax, str.First_Circle
jmp 0x41b988
mov eax, str.Second_Circle
jmp 0x41b988
mov eax, str.Third_Circle
jmp 0x41b988
mov eax, str.Fourth_Circle
jmp 0x41b988
mov eax, str.Fifth_Circle
jmp 0x41b988
mov eax, str.Sixth_Circle
jmp 0x41b988
mov eax, str.Seventh_Circle
jmp 0x41b988
mov eax, str.Eighth_Circle
jmp 0x41b988
mov eax, str.Bad_Circle
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x3c]
push edx
mov edx, dword [ecx + 4]
mov ecx, dword [0x4f213c]
add edx, 4
push edx
push eax
mov eax, dword [esp + 0x20]
push 0
push 6
lea edx, [ecx + eax + 0x14]
mov eax, dword [0x4f2138]
push edx
push eax
call fcn.00442410
mov ecx, dword [esi + 0x38]
mov edx, dword [0x4f213c]
add esp, 0x20
add edx, 0x24
mov edi, dword [ecx + 0xac]
mov dword [esp + 0x14], edx
test edi, edi
mov dword [esp + 0x28], edi
je 0x41c4ee
xor ecx, ecx
mov cx, word [edi + 0x40]
lea eax, [ecx - 1]
mov dword [esp + 0x2c], eax
cdq
and edx, 7
add eax, edx
xor edx, edx
mov dx, word [esi + 0xb4]
sar eax, 3
inc eax
inc edx
cmp eax, edx
jne 0x41bb26
mov ebx, dword [ecx*8 + 0x541bf8]
xor edx, edx
test ebx, ebx
je 0x41ba52
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x41ba52
mov eax, 0x741c5c
mov ebp, ebx
sub eax, ebx
mov dword [esp + 0x34], eax
mov al, byte [ebp]
cmp al, 0x28
je 0x41ba52
mov ecx, dword [esp + 0x34]
inc edx
mov edi, ebx
mov byte [ecx + ebp], al
or ecx, 0xffffffff
xor eax, eax
inc ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x41ba32
mov byte [edx + 0x741c5b], 0
lea edx, [esp + 0x30]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
push 0x508bf0
push 9
call fcn.00442f10
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
mov edi, dword [esp + 0x28]
push 0x4f2138
mov ecx, dword [eax + 4]
push edx
mov edx, dword [esp + 0x2c]
add ecx, 4
push ecx
mov ecx, dword [0x4f2138]
push 0x741c5c
push 0x288
lea eax, [edi + edx]
push 9
push eax
push ecx
call fcn.00442a40
mov edx, dword [esp + 0x60]
mov eax, dword [0xcc045c]
add esp, 0x34
cmp eax, edx
jne 0x41bb1a
mov eax, dword [esi + 0x3c]
xor ecx, ecx
xor edx, edx
mov eax, dword [eax + 4]
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
add eax, 4
push edx
push eax
push 3
push 0xcb
push 0x8ae
push fcn.004c00b0
call fcn.00444850
mov eax, dword [esi + 0x3c]
xor ecx, ecx
xor edx, edx
mov eax, dword [eax + 4]
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
add eax, 4
push edx
push eax
lea eax, [edi + 6]
push eax
push 0xcb
push 0x8b0
push fcn.004c00b0
call fcn.00444850
add esp, 0x38
add edi, dword [esp + 0x18]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x28]
mov edi, dword [edi + 0x44]
test edi, edi
mov dword [esp + 0x28], edi
jne 0x41b9df
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
and eax, 0xffff
sub eax, ebx
dec eax
cmp word [esi + 0x158], 0
mov dword [esp + 0x2c], eax
jbe 0x41c012
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
call dword [edx + 0x30]
test eax, eax
je 0x41c012
mov eax, dword [esi + 0x38]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
mov eax, dword [eax + 0xac]
test edx, edx
jle 0x41bb8e
mov eax, dword [eax + 0x44]
test eax, eax
je 0x41c012
mov edx, dword [esp + 0x2c]
inc ecx
cmp ecx, edx
jl 0x41bb7a
test eax, eax
je 0x41c012
xor ecx, ecx
mov cx, word [eax + 0x40]
mov eax, ecx
dec eax
test eax, eax
mov dword [esp + 0x14], eax
jl 0x41c012
mov ebx, eax
cdq
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
cmp edi, 7
ja case.default.0x41bbbd
jmp dword [edi*4 + 0x41c538]
mov eax, str.First_Circle
jmp 0x41bc01
mov eax, str.Second_Circle
jmp 0x41bc01
mov eax, str.Third_Circle
jmp 0x41bc01
mov eax, str.Fourth_Circle
jmp 0x41bc01
mov eax, str.Fifth_Circle
jmp 0x41bc01
mov eax, str.Sixth_Circle
jmp 0x41bc01
mov eax, str.Seventh_Circle
jmp 0x41bc01
mov eax, str.Eighth_Circle
jmp 0x41bc01
mov eax, str.Bad_Circle
lea edx, [esp + 0x30]
lea ecx, [esp + 0x18]
push edx
lea edx, [esp + 0x20]
push ecx
push edx
push eax
push 9
call fcn.00442f10
mov eax, dword [0x4f2130]
mov ecx, dword [0x4f2128]
mov edx, dword [esp + 0x30]
sub eax, ecx
sub eax, edx
add esp, 0x14
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x38]
add ecx, 0x32
cmp eax, ecx
jge 0x41bc42
mov eax, ecx
cmp edi, 7
ja case.default.0x41bc47
jmp dword [edi*4 + 0x41c558]
mov ecx, str.First_Circle
jmp 0x41bc8b
mov ecx, str.Second_Circle
jmp 0x41bc8b
mov ecx, str.Third_Circle
jmp 0x41bc8b
mov ecx, str.Fourth_Circle
jmp 0x41bc8b
mov ecx, str.Fifth_Circle
jmp 0x41bc8b
mov ecx, str.Sixth_Circle
jmp 0x41bc8b
mov ecx, str.Seventh_Circle
jmp 0x41bc8b
mov ecx, str.Eighth_Circle
jmp 0x41bc8b
mov ecx, str.Bad_Circle
mov edx, dword [esi + 0x20]
push 0x4f2128
push edx
mov edx, dword [esi + 0x3c]
mov edx, dword [edx + 4]
add edx, 4
push edx
mov edx, dword [0x4f212c]
push ecx
mov ecx, dword [esp + 0x20]
push 0
add edx, ecx
push 6
push edx
push eax
call fcn.00442a40
mov ebx, dword [ebx*8 + 0x541c00]
add esp, 0x20
xor edx, edx
test ebx, ebx
je 0x41bd03
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x41bd03
mov eax, 0x741c5c
mov ebp, ebx
sub eax, ebx
mov dword [esp + 0x34], eax
mov al, byte [ebp]
cmp al, 0x28
je 0x41bd03
mov ecx, dword [esp + 0x34]
inc edx
mov edi, ebx
mov byte [ecx + ebp], al
or ecx, 0xffffffff
xor eax, eax
inc ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x41bce3
mov byte [edx + 0x741c5b], 0
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
push 0
mov ecx, dword [eax + 4]
mov eax, dword [0x4f2128]
push 0xe
push 0
push 0x4f2128
push edx
mov edx, dword [0x4f2130]
add ecx, 4
push ecx
mov ecx, dword [esp + 0x38]
sub edx, eax
sub edx, ecx
lea eax, [eax + ecx + 2]
sub edx, 2
push edx
mov edx, dword [0x4f212c]
push 0x741c5c
push 0
add edx, 0x18
push 6
push edx
push eax
call fcn.004424b0
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x3c]
push 0
push 0xe
push 0
mov edi, dword [0x4f2130]
push 0x4f2128
mov dword [esp + 0x58], eax
push ecx
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x64]
add ecx, 4
push ecx
mov ecx, dword [0x4f2128]
sub edi, ecx
sub edi, edx
lea ecx, [ecx + edx + 2]
sub edi, 2
push edi
mov edi, dword [esp + 0x60]
mov ebx, dword [edi*4 + 0x541e08]
push ebx
mov ebx, dword [0x4f212c]
push 0x288
push 8
lea eax, [ebx + eax + 0x1c]
push eax
push ecx
call fcn.004424b0
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x20]
add esp, 0x60
add edi, 0x8c0
push edx
mov edx, dword [ecx + 4]
mov ecx, dword [0x4f2128]
push eax
mov eax, dword [0x4f212c]
add edx, 4
add eax, 0x1e
push edx
push eax
push ecx
push edi
push fcn.004bfae0
call fcn.00444850
mov edx, dword [esi + 0x3c]
mov eax, dword [esp + 0x40]
mov ecx, dword [0x4f212c]
mov ebp, dword [0x4f2128]
mov edi, dword [edx + 4]
lea edx, [esp + 0x50]
lea ebx, [ecx + eax + 0x22]
lea eax, [esp + 0x44]
push edx
push eax
push 0x835
call fcn.004447f0
mov eax, dword [0x4f2130]
add esp, 0x28
cmp ebp, eax
jg 0x41be8e
mov ecx, dword [esp + 0x28]
add ecx, ebp
cmp ecx, eax
jl 0x41be5a
xor edx, edx
xor eax, eax
mov dx, word [edi + 2]
mov ax, word [edi]
push edx
lea ecx, [edi + 4]
push eax
push ecx
push ebx
push ebp
push 0x4f2128
push 0x835
push fcn.004c00b0
call fcn.00444a10
add esp, 0x20
jmp 0x41be7f
xor edx, edx
xor eax, eax
mov dx, word [edi + 2]
mov ax, word [edi]
push edx
lea ecx, [edi + 4]
push eax
push ecx
push ebx
push ebp
push 0x835
push fcn.004c00b0
call fcn.00444850
add esp, 0x1c
mov ecx, dword [esp + 0x28]
mov eax, dword [0x4f2130]
add ebp, ecx
cmp ebp, eax
jle 0x41be28
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
push 0x4f2128
push edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [0x4f212c]
add ecx, 4
push ecx
mov ecx, dword [esp + 0x30]
add eax, edx
push str.Reagents:
push 0
push 6
lea edx, [eax + ecx + 0x26]
mov eax, dword [0x4f2128]
push edx
push eax
call fcn.00442410
mov ecx, dword [esp + 0x44]
mov edx, dword [0x4f212c]
mov eax, dword [esp + 0x34]
add esp, 0x20
lea ebx, [edx + ecx + 0x36]
or ecx, 0xffffffff
mov edx, dword [eax*4 + 0x541f0c]
xor eax, eax
mov edi, edx
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x41bfa0
movsx eax, byte [edx + ebp]
add eax, 0xffffffcf
cmp eax, 7
ja case.default.0x41bf07
jmp dword [eax*4 + 0x41c578]
mov eax, str.Bloodmoss
jmp 0x41bf4b
mov eax, str.Nightshade
jmp 0x41bf4b
mov eax, str.Garlic
jmp 0x41bf4b
mov eax, str.Ginseng
jmp 0x41bf4b
mov eax, str.Mandrake_root
jmp 0x41bf4b
mov eax, str.Spiders_silk
jmp 0x41bf4b
mov eax, str.Sulfurous_ash
jmp 0x41bf4b
mov eax, str.Black_pearl
jmp 0x41bf4b
mov eax, str.Bad_reagent
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x3c]
push 0x4f2128
push ecx
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x18]
add ecx, 4
push ecx
mov ecx, dword [0x4f2128]
push eax
push 0x288
lea eax, [ebx + edx]
push 9
push eax
push ecx
call fcn.00442410
mov edx, dword [esp + 0x34]
add esp, 0x20
add ebx, 0xe
or ecx, 0xffffffff
mov edx, dword [edx*4 + 0x541f0c]
xor eax, eax
mov edi, edx
inc ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, ecx
jl 0x41befb
mov eax, dword [esp + 0x14]
mov ecx, dword [0xcc045c]
cmp ecx, eax
jne 0x41c012
mov ecx, dword [esi + 0x3c]
xor edx, edx
mov eax, dword [ecx + 4]
xor ecx, ecx
mov dx, word [eax + 2]
mov cx, word [eax]
push edx
add eax, 4
push ecx
push eax
push 2
push 0xb8
push 0x8ad
push fcn.004c00b0
call fcn.00444850
mov edx, dword [esi + 0x3c]
xor ecx, ecx
mov eax, dword [edx + 4]
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
add eax, 4
push edx
push eax
mov eax, dword [0x4f212c]
add eax, 0x1e
push eax
push 0xb8
push 0x8af
push fcn.004c00b0
call fcn.00444850
add esp, 0x38
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 0xb4]
mov dx, word [esi + 0xb6]
inc ecx
cmp ecx, edx
jg 0x41c4ee
mov ecx, dword [esi + 0x38]
mov edi, dword [esp + 0x2c]
inc edi
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
je 0x41c4ee
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx + 0xac]
xor ecx, ecx
test edi, edi
jle 0x41c061
mov eax, dword [eax + 0x44]
test eax, eax
je 0x41c4ee
inc ecx
cmp ecx, edi
jl 0x41c051
test eax, eax
je 0x41c4ee
xor ebp, ebp
mov bp, word [eax + 0x40]
dec ebp
test ebp, ebp
mov dword [esp + 0x14], ebp
jl 0x41c4ee
mov eax, ebp
cdq
and edx, 7
add eax, edx
mov ebx, eax
sar ebx, 3
cmp ebx, 7
ja case.default.0x41c08e
jmp dword [ebx*4 + 0x41c598]
mov eax, str.First_Circle
jmp 0x41c0d2
mov eax, str.Second_Circle
jmp 0x41c0d2
mov eax, str.Third_Circle
jmp 0x41c0d2
mov eax, str.Fourth_Circle
jmp 0x41c0d2
mov eax, str.Fifth_Circle
jmp 0x41c0d2
mov eax, str.Sixth_Circle
jmp 0x41c0d2
mov eax, str.Seventh_Circle
jmp 0x41c0d2
mov eax, str.Eighth_Circle
jmp 0x41c0d2
mov eax, str.Bad_Circle
lea edx, [esp + 0x30]
lea ecx, [esp + 0x18]
push edx
lea edx, [esp + 0x20]
push ecx
push edx
push eax
push 9
call fcn.00442f10
mov eax, dword [0x4f2140]
mov edi, dword [0x4f2138]
mov ecx, dword [esp + 0x30]
sub eax, edi
sub eax, ecx
add esp, 0x14
cdq
sub eax, edx
sar eax, 1
add eax, edi
lea edx, [eax + ecx]
cmp edx, 0x141
jle 0x41c118
mov eax, 0x141
sub eax, ecx
cmp eax, edi
jge 0x41c11e
mov eax, edi
cmp ebx, 7
ja case.default.0x41c123
jmp dword [ebx*4 + 0x41c5b8]
mov ecx, str.First_Circle
jmp 0x41c167
mov ecx, str.Second_Circle
jmp 0x41c167
mov ecx, str.Third_Circle
jmp 0x41c167
mov ecx, str.Fourth_Circle
jmp 0x41c167
mov ecx, str.Fifth_Circle
jmp 0x41c167
mov ecx, str.Sixth_Circle
jmp 0x41c167
mov ecx, str.Seventh_Circle
jmp 0x41c167
mov ecx, str.Eighth_Circle
jmp 0x41c167
mov ecx, str.Bad_Circle
mov edx, dword [esi + 0x20]
push 0x4f2138
push edx
mov edx, dword [esi + 0x3c]
mov edx, dword [edx + 4]
add edx, 4
push edx
mov edx, dword [0x4f213c]
push ecx
mov ecx, dword [esp + 0x20]
push 0
add edx, ecx
push 6
push edx
push eax
call fcn.00442a40
mov ebx, dword [ebp*8 + 0x541c00]
add esp, 0x20
xor edx, edx
test ebx, ebx
je 0x41c1df
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x41c1df
mov eax, 0x741c5c
mov ebp, ebx
sub eax, ebx
mov dword [esp + 0x34], eax
mov al, byte [ebp]
cmp al, 0x28
je 0x41c1df
mov ecx, dword [esp + 0x34]
inc edx
mov edi, ebx
mov byte [ecx + ebp], al
or ecx, 0xffffffff
xor eax, eax
inc ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x41c1bf
mov byte [edx + 0x741c5b], 0
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
push 0
mov ecx, dword [eax + 4]
mov eax, dword [0x4f2138]
push 0xe
push 0
push 0x4f2138
push edx
mov edx, dword [0x4f2140]
add ecx, 4
push ecx
mov ecx, dword [esp + 0x38]
sub edx, eax
sub edx, ecx
lea eax, [eax + ecx + 2]
sub edx, 2
push edx
mov edx, dword [0x4f213c]
push 0x741c5c
push 0
add edx, 0x18
push 6
push edx
push eax
call fcn.004424b0
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x3c]
push 0
push 0xe
push 0
mov edi, dword [0x4f2140]
push 0x4f2138
mov dword [esp + 0x58], eax
push ecx
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x64]
add ecx, 4
push ecx
mov ecx, dword [0x4f2138]
sub edi, ecx
sub edi, edx
lea ecx, [ecx + edx + 2]
sub edi, 2
push edi
mov edi, dword [esp + 0x60]
mov ebx, dword [edi*4 + 0x541e08]
push ebx
mov ebx, dword [0x4f213c]
push 0x288
push 8
lea eax, [ebx + eax + 0x1c]
push eax
push ecx
call fcn.004424b0
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x20]
add esp, 0x60
add edi, 0x8c0
push edx
mov edx, dword [ecx + 4]
mov ecx, dword [0x4f2138]
push eax
mov eax, dword [0x4f213c]
add edx, 4
add eax, 0x1e
push edx
push eax
push ecx
push edi
push fcn.004bfae0
call fcn.00444850
mov edx, dword [esi + 0x3c]
mov eax, dword [esp + 0x40]
mov ecx, dword [0x4f213c]
mov ebp, dword [0x4f2138]
mov edi, dword [edx + 4]
lea edx, [esp + 0x50]
lea ebx, [ecx + eax + 0x22]
lea eax, [esp + 0x48]
push edx
push eax
push 0x835
call fcn.004447f0
mov eax, dword [0x4f2140]
add esp, 0x28
cmp ebp, eax
jg 0x41c36a
mov ecx, dword [esp + 0x2c]
add ecx, ebp
cmp ecx, eax
jl 0x41c336
xor edx, edx
xor eax, eax
mov dx, word [edi + 2]
mov ax, word [edi]
push edx
lea ecx, [edi + 4]
push eax
push ecx
push ebx
push ebp
push 0x4f2138
push 0x835
push fcn.004c00b0
call fcn.00444a10
add esp, 0x20
jmp 0x41c35b
xor edx, edx
xor eax, eax
mov dx, word [edi + 2]
mov ax, word [edi]
push edx
lea ecx, [edi + 4]
push eax
push ecx
push ebx
push ebp
push 0x835
push fcn.004c00b0
call fcn.00444850
add esp, 0x1c
mov ecx, dword [esp + 0x2c]
mov eax, dword [0x4f2140]
add ebp, ecx
cmp ebp, eax
jle 0x41c304
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
push 0x4f2138
push edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [0x4f213c]
add ecx, 4
push ecx
mov ecx, dword [esp + 0x30]
add eax, edx
push str.Reagents:
push 0
push 6
lea edx, [eax + ecx + 0x26]
mov eax, dword [0x4f2138]
push edx
push eax
call fcn.00442410
mov ecx, dword [esp + 0x44]
mov edx, dword [0x4f213c]
mov eax, dword [esp + 0x34]
add esp, 0x20
lea ebx, [edx + ecx + 0x36]
or ecx, 0xffffffff
mov edx, dword [eax*4 + 0x541f0c]
xor eax, eax
mov edi, edx
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x41c47c
movsx eax, byte [edx + ebp]
add eax, 0xffffffcf
cmp eax, 7
ja case.default.0x41c3e3
jmp dword [eax*4 + 0x41c5d8]
mov eax, str.Bloodmoss
jmp 0x41c427
mov eax, str.Nightshade
jmp 0x41c427
mov eax, str.Garlic
jmp 0x41c427
mov eax, str.Ginseng
jmp 0x41c427
mov eax, str.Mandrake_root
jmp 0x41c427
mov eax, str.Spiders_silk
jmp 0x41c427
mov eax, str.Sulfurous_ash
jmp 0x41c427
mov eax, str.Black_pearl
jmp 0x41c427
mov eax, str.Bad_reagent
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x3c]
push 0x4f2138
push ecx
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x18]
add ecx, 4
push ecx
mov ecx, dword [0x4f2138]
push eax
push 0x288
lea eax, [ebx + edx]
push 9
push eax
push ecx
call fcn.00442410
mov edx, dword [esp + 0x34]
add esp, 0x20
add ebx, 0xe
or ecx, 0xffffffff
mov edx, dword [edx*4 + 0x541f0c]
xor eax, eax
mov edi, edx
inc ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, ecx
jl 0x41c3d7
mov eax, dword [esp + 0x14]
mov ecx, dword [0xcc045c]
cmp ecx, eax
jne 0x41c4ee
mov ecx, dword [esi + 0x3c]
xor edx, edx
mov eax, dword [ecx + 4]
xor ecx, ecx
mov dx, word [eax + 2]
mov cx, word [eax]
push edx
add eax, 4
push ecx
push eax
push 3
push 0xcb
push 0x8ae
push fcn.004c00b0
call fcn.00444850
mov edx, dword [esi + 0x3c]
xor ecx, ecx
mov eax, dword [edx + 4]
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
add eax, 4
push edx
push eax
mov eax, dword [0x4f213c]
add eax, 0x1e
push eax
push 0xcb
push 0x8b0
push fcn.004c00b0
call fcn.00444850
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret