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

Disassembly:
push 0xffffffffffffffff
push 0x41e580
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x200
push ebx
push ebp
push esi
lea eax, [esp + 0x76]
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.0040f1e0
lea ecx, [esp + 0x79]
mov dword [esp + 0x218], 0
push ecx
lea ecx, [esp + 0x34]
call fcn.0040f1e0
lea edx, [esp + 0x7b]
lea ecx, [esp + 0x40]
push edx
mov byte [esp + 0x21c], 1
call fcn.0040f1e0
lea eax, [esp + 0x77]
lea ecx, [esp + 0x50]
push eax
mov byte [esp + 0x21c], 2
call fcn.0040f1e0
lea ecx, [esp + 0x78]
mov byte [esp + 0x218], 3
push ecx
lea ecx, [esp + 0x64]
call fcn.0040f1e0
mov esi, dword [esp + 0x220]
mov edi, 1
mov dword [esp + 0x218], 4
cmp dword [esi + 8], edi
jb 0x406436
mov ebp, dword [esp + 0x224]
push 0x42215c
push 2
lea edx, [esp + 0x18]
push ebp
push edx
call fcn.00410c00
mov edx, dword [eax + 8]
add esp, 0x10
cmp edx, edi
lea ecx, [esp + 0x10]
push edi
setb bl
call fcn.0040f880
test bl, bl
je 0x40646f
push edi
lea ecx, [esp + 0x64]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0040f880
push edi
lea ecx, [esp + 0x54]
call fcn.0040f880
push edi
lea ecx, [esp + 0x44]
call fcn.0040f880
push edi
lea ecx, [esp + 0x34]
call fcn.0040f880
push edi
jmp 0x406dc2
mov eax, dword [0x41f17c]
lea ecx, [esp + 0x20]
push eax
push 0
push esi
call fcn.0040f570
push 0x42215c
push 2
lea ecx, [esp + 0x18]
push ebp
push ecx
mov dword [esp + 0x80], 0
call fcn.00410c00
add esp, 0x10
push str.spin
mov ecx, eax
mov byte [esp + 0x21c], 5
call fcn.004102b0
test eax, eax
push edi
lea ecx, [esp + 0x14]
sete bl
mov byte [esp + 0x21c], 4
call fcn.0040f880
test bl, bl
je 0x4064d9
mov dword [esp + 0x70], edi
jmp 0x40665f
push 0x42215c
push 2
lea edx, [esp + 0x18]
push ebp
push edx
call fcn.00410c00
add esp, 0x10
push str.check
mov ecx, eax
mov byte [esp + 0x21c], 6
call fcn.004102b0
test eax, eax
push edi
lea ecx, [esp + 0x14]
sete bl
mov byte [esp + 0x21c], 4
call fcn.0040f880
test bl, bl
je 0x40652a
mov dword [esp + 0x70], 3
jmp 0x40665f
push 0x42215c
push 2
lea eax, [esp + 0x18]
push ebp
push eax
call fcn.00410c00
add esp, 0x10
mov edx, eax
mov edi, str.button
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x218], 7
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [edx + 8]
push str.button
push ecx
push eax
mov ecx, edx
call fcn.00410310
test eax, eax
push 1
lea ecx, [esp + 0x14]
sete bl
mov byte [esp + 0x21c], 4
call fcn.0040f880
test bl, bl
je 0x406593
mov dword [esp + 0x70], 2
jmp 0x40665f
push 0x42215c
push 2
lea edx, [esp + 0x18]
push ebp
push edx
call fcn.00410c00
add esp, 0x10
mov edx, eax
mov edi, str.combo
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x218], 8
repne scasb al, byte es:[edi]
mov eax, dword [edx + 8]
not ecx
dec ecx
push ecx
push str.combo
push eax
push 0
mov ecx, edx
call fcn.00410310
test eax, eax
push 1
lea ecx, [esp + 0x14]
sete bl
mov byte [esp + 0x21c], 4
call fcn.0040f880
test bl, bl
je 0x4065fa
mov dword [esp + 0x70], 4
jmp 0x40665f
push 0x42215c
push 2
lea ecx, [esp + 0x18]
push ebp
push ecx
call fcn.00410c00
add esp, 0x10
mov edx, eax
mov edi, str.string
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x218], 9
repne scasb al, byte es:[edi]
mov eax, dword [edx + 8]
not ecx
dec ecx
push ecx
push str.string
push eax
push 0
mov ecx, edx
call fcn.00410310
test eax, eax
push 1
lea ecx, [esp + 0x14]
sete bl
mov byte [esp + 0x21c], 4
call fcn.0040f880
test bl, bl
je 0x40665f
mov dword [esp + 0x70], 5
mov ecx, dword [esp + 0x70]
lea eax, [ecx - 1]
cmp eax, 4
ja case.default.0x40666f
jmp dword [eax*4 + 0x406de4]
push 0x42215c
push 5
lea edx, [esp + 0xf8]
push ebp
push edx
call fcn.00410c00
mov edx, dword [eax + 8]
add esp, 0x10
cmp edx, 1
lea ecx, [esp + 0xf0]
push 1
setb bl
call fcn.0040f880
test bl, bl
jne case.default.0x40666f
push 0x42215c
push 3
lea eax, [esp + 0x88]
push ebp
push eax
call fcn.00410c00
add esp, 0x10
mov ecx, dword [0x41f17c]
mov byte [esp + 0x218], 0xa
push ecx
push 0
push eax
lea ecx, [esp + 0x4c]
call fcn.0040f570
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x21c], 4
call fcn.0040f880
push 0x42215c
push 4
lea edx, [esp + 0xa8]
push ebp
push edx
call fcn.00410c00
add esp, 0x10
mov ecx, dword [0x41f17c]
mov byte [esp + 0x218], 0xb
push ecx
push 0
push eax
lea ecx, [esp + 0x5c]
call fcn.0040f570
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0x21c], 4
call fcn.0040f880
push 0x42215c
push 5
lea edx, [esp + 0xe8]
push ebp
push edx
call fcn.00410c00
add esp, 0x10
mov ecx, dword [0x41f17c]
mov byte [esp + 0x218], 0xc
push ecx
push 0
push eax
lea ecx, [esp + 0x6c]
call fcn.0040f570
mov byte [esp + 0x218], 4
push 1
lea ecx, [esp + 0xe4]
call fcn.0040f880
push 0x42215c
push 1
lea edx, [esp + 0x18]
push ebp
push edx
call fcn.00410c00
mov eax, dword [eax + 4]
add esp, 0x10
test eax, eax
jne 0x4067a9
mov eax, 0x41f178
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xor ebp, ebp
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
cmp eax, ebp
rep movsb byte es:[edi], byte [esi]
je 0x406ad3
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x406aca
cmp al, 0xff
je 0x406aca
dec al
mov byte [ecx], al
jmp 0x406ad3
mov edi, 0x43a998
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x43a998
lea ecx, [esp + 0x48]
call fcn.0040fb90
mov edi, 0x43a998
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x43a998
lea ecx, [esp + 0x58]
call fcn.0040fb90
mov edi, 0x43a998
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x43a998
lea ecx, [esp + 0x68]
call fcn.0040fb90
jmp 0x406788
push 0x42215c
push 3
lea edx, [esp + 0xc8]
push ebp
push edx
call fcn.00410c00
mov edx, dword [eax + 8]
add esp, 0x10
cmp edx, 1
lea ecx, [esp + 0xc0]
push 1
setb bl
call fcn.0040f880
test bl, bl
je 0x4068db
mov edi, str._empty_
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x44]
push ebx
call fcn.0040fc50
test al, al
je 0x406788
mov edi, dword [esp + 0x44]
mov ecx, ebx
mov eax, ecx
mov esi, str._empty_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x44]
call fcn.0040fc30
jmp 0x406788
push 0x42215c
push 3
lea ecx, [esp + 0x108]
push ebp
push ecx
call fcn.00410c00
add esp, 0x10
mov edx, dword [0x41f17c]
lea ecx, [esp + 0x40]
push edx
push 0
push eax
mov byte [esp + 0x224], 0xd
call fcn.0040f570
mov byte [esp + 0x218], 4
push 1
lea ecx, [esp + 0x104]
jmp 0x406783
push 0x42215c
push 3
lea eax, [esp + 0x98]
push ebp
push eax
call fcn.00410c00
add esp, 0x10
mov ecx, dword [0x41f17c]
mov byte [esp + 0x218], 0xe
push ecx
push 0
push eax
lea ecx, [esp + 0x4c]
call fcn.0040f570
push 1
lea ecx, [esp + 0x94]
mov byte [esp + 0x21c], 4
call fcn.0040f880
mov edi, 0x43a998
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x54]
push ebx
call fcn.0040fc50
test al, al
je 0x4069b1
mov edi, dword [esp + 0x54]
mov ecx, ebx
mov edx, ecx
mov esi, 0x43a998
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
call fcn.0040fc30
mov edi, 0x43a998
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x64]
push ebx
call fcn.0040fc50
test al, al
je 0x4069f5
mov edi, dword [esp + 0x64]
mov ecx, ebx
mov eax, ecx
mov esi, 0x43a998
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x64]
call fcn.0040fc30
mov esi, 4
push 0x42215c
push esi
lea ecx, [esp + 0xb8]
push ebp
push ecx
call fcn.00410c00
mov edx, dword [eax + 8]
add esp, 0x10
test edx, edx
push 1
lea ecx, [esp + 0xb4]
seta bl
call fcn.0040f880
test bl, bl
je 0x406788
cmp esi, 4
jle 0x406a7a
mov edx, dword [0x41f17c]
mov ecx, dword [esp + 0x58]
sub edx, ecx
cmp edx, 1
ja 0x406a4a
call fcn.004150eb
mov eax, dword [esp + 0x58]
push 0
lea ecx, [esp + 0x54]
lea edi, [eax + 1]
push edi
call fcn.0040fc50
test al, al
je 0x406a7a
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
push edi
mov byte [edx + ecx], 0x7c
lea eax, [edx + ecx]
lea ecx, [esp + 0x54]
call fcn.0040fc30
mov eax, esi
push 0x42215c
push eax
lea eax, [esp + 0xd8]
push ebp
push eax
inc esi
call fcn.00410c00
add esp, 0x10
mov ecx, dword [0x41f17c]
mov byte [esp + 0x218], 0xf
push ecx
push 0
push eax
lea ecx, [esp + 0x5c]
call fcn.0040f9f0
push 1
lea ecx, [esp + 0xd4]
mov byte [esp + 0x21c], 4
call fcn.0040f880
jmp 0x4069fa
push ecx
call fcn.004150e0
add esp, 4
lea ecx, [esp + 0x110]
mov dword [esp + 0x14], ebp
push ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.004110a0
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x34]
push ebx
call fcn.0040fc50
test al, al
je 0x406b2f
mov edi, dword [esp + 0x34]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ebx
mov byte [eax + ebx], 0
cmp dword [esp + 0x70], 1
jne 0x406bca
mov edi, 0x422250
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push 0x422250
lea ecx, [esp + 0x3c]
call fcn.0040f770
mov edx, dword [0x41f17c]
cmp eax, edx
jne 0x406bca
mov edi, 0x42224c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x38]
sub edx, ecx
cmp edx, esi
ja 0x406b83
call fcn.004150eb
cmp esi, ebp
jbe 0x406bca
mov ecx, dword [esp + 0x38]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x34]
push ebp
call fcn.0040fc50
test al, al
je 0x406bca
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, esi
mov esi, 0x42224c
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ebp
mov byte [eax + ebp], 0
mov eax, dword [esp + 0x70]
cmp eax, 3
je 0x406be1
cmp eax, 5
je 0x406be1
cmp eax, 4
jne 0x406cd5
mov edi, 0x422434
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov dword [esp + 0x7c], esi
je 0x406c64
mov ebp, dword [esp + 0x38]
test ebp, ebp
jbe 0x406c5f
cmp esi, ebp
ja 0x406c5f
movsx edx, byte [0x422434]
mov ebx, dword [esp + 0x34]
mov ecx, 1
sub ecx, esi
add ebp, ecx
push ebp
push edx
push ebx
call fcn.00415ca0
add esp, 0xc
test eax, eax
je 0x406c5f
jmp 0x406c2d
mov esi, dword [esp + 0x7c]
mov ecx, esi
mov edi, 0x422434
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x406d74
sub ebx, eax
lea ebp, [ebx + ebp - 1]
lea ebx, [eax + 1]
movsx eax, byte [0x422434]
push ebp
push eax
push ebx
call fcn.00415ca0
add esp, 0xc
test eax, eax
jne 0x406c29
mov eax, dword [0x41f17c]
mov edx, dword [0x41f17c]
cmp eax, edx
jne 0x406cd5
mov edi, 0x422430
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x38]
sub edx, ecx
cmp edx, esi
ja 0x406c8e
call fcn.004150eb
test esi, esi
jbe 0x406cd5
mov ecx, dword [esp + 0x38]
push 0
lea ebx, [ecx + esi]
lea ecx, [esp + 0x34]
push ebx
call fcn.0040fc50
test al, al
je 0x406cd5
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, esi
mov esi, 0x422430
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ebx
mov byte [eax + ebx], 0
mov esi, dword [0x4306e4]
push 0x5c
mov edi, dword [esi + 4]
call fcn.00415442
add esp, 4
mov ecx, esi
test esi, esi
jne 0x406cf0
mov ecx, eax
mov dword [eax], ecx
mov ecx, edi
test edi, edi
jne 0x406cfa
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [esp + 0x20]
add eax, 8
push ecx
push eax
call fcn.0040ff70
mov ebx, dword [0x4306e8]
add esp, 8
inc ebx
lea ecx, [esp + 0x60]
push 1
mov dword [0x4306e8], ebx
mov dword [esp + 0x21c], 0xffffffff
call fcn.0040f880
push 1
lea ecx, [esp + 0x54]
call fcn.0040f880
push 1
lea ecx, [esp + 0x44]
call fcn.0040f880
push 1
lea ecx, [esp + 0x34]
call fcn.0040f880
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x406dcb
mov al, byte [ecx - 1]
test al, al
je 0x406d7d
cmp al, 0xff
je 0x406d7d
dec al
mov byte [ecx - 1], al
jmp 0x406dcb
sub eax, dword [esp + 0x34]
jmp 0x406c64
dec ecx
push ecx
call fcn.004150e0
add esp, 4
jmp 0x406dcb
push 1
lea ecx, [esp + 0x64]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0040f880
push 1
lea ecx, [esp + 0x54]
call fcn.0040f880
push 1
lea ecx, [esp + 0x44]
call fcn.0040f880
push 1
lea ecx, [esp + 0x34]
call fcn.0040f880
push 1
lea ecx, [esp + 0x24]
call fcn.0040f880
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20c
ret