Function at 0x418110
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4a4cf0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push str._SetWinEventFinalHand_:__d_n
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.0045c9ef
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x10
lea ecx, [ebp - 0x204]
push ecx
call edi
lea edx, [ebp - 0x204]
push edx
xor ebx, ebx
push ebx
call fcn.00408ed0
add esp, 8
cmp esi, 0x2f
ja case.0x418174.1
movzx eax, byte [esi + 0x41866c]
jmp dword [eax*4 + 0x418654]
mov dword [0x4a3b14], ebx
mov byte [0x4a92f4], bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045bfe1
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4a9180]
cmp eax, ebx
jne 0x4181a7
push ebx
push ebx
push 6
jmp 0x4181b0
cmp eax, 1
jne 0x4181b8
push ebx
push ebx
push 7
call fcn.004095f0
add esp, 0xc
mov byte [0x4a9213], 1
mov byte [0x4a92f4], 1
cmp byte [0x4a91ca], bl
jne 0x4181f7
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x40c], esp
push str.FairyIntro
mov byte [0x4a91ca], 1
call fcn.00414af0
mov ecx, dword [0x4a63f8]
call fcn.004018e0
push 1
push 1
push 0x19
call fcn.004095f0
push str.FairyIn__n
lea ecx, [ebp - 0x404]
push 0x100
push ecx
call fcn.0045c9ef
add esp, 0x18
lea edx, [ebp - 0x404]
push edx
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045bfe1
mov esp, ebp
pop ebp
ret
cmp dword [0x4a9200], ebx
jg 0x41825b
mov byte [0x4a9213], 1
mov byte [0x4a92f4], bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045bfe1
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4a9180]
cmp eax, ebx
jne 0x41826a
push ebx
push ebx
push 6
jmp 0x418273
cmp eax, 1
jne 0x41827b
push ebx
push ebx
push 7
call fcn.004095f0
add esp, 0xc
push ebx
push 1
push 0x35
mov byte [0x4a9213], 1
mov byte [0x4a92f4], 1
mov dword [0x4a91fc], ebx
mov dword [0x4a3b04], 1
mov byte [0x4a3aec], 1
mov byte [0x4a91f3], bl
mov byte [0x4a92f5], 1
mov dword [0x4a3bdc], 0xa
call fcn.004095f0
mov eax, dword [0x4a6948]
mov esi, dword [sym.imp.USER32.dll_KillTimer]
add esp, 0xc
push 0x46a
push eax
call esi
mov ecx, dword [0x4a6948]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push ebx
push 0x1e
push 0x46a
push ecx
call edi
mov edx, dword [0x4b80f8]
mov dword [0x4a3d10], 0x64
mov byte [edx + 0xf4], bl
mov eax, dword [0x4a6948]
push 0x49c
push eax
call esi
mov ecx, dword [0x4a6948]
push ebx
push 0x1e
push 0x49c
push ecx
call edi
mov edx, dword [ebp + 8]
push edx
push str._SetWinEventFinalHand_:_CLAM__d__n
lea eax, [ebp - 0x204]
push 0x100
push eax
mov byte [0x4a91ce], bl
call fcn.0045c9ef
add esp, 0x10
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045bfe1
mov esp, ebp
pop ebp
ret
cmp dword [0x4a9200], ebx
jle case.0x418174.1
mov eax, dword [0x4a9180]
cmp eax, ebx
jne 0x41837e
push ebx
push ebx
push 6
jmp 0x418387
cmp eax, 1
jne 0x41838f
push ebx
push ebx
push 7
call fcn.004095f0
add esp, 0xc
xor eax, eax
mov edx, dword [0x4a6948]
push 0x4b7
push edx
mov byte [0x4a9213], 1
mov byte [0x4a92f4], 1
mov byte [0x49b053], 1
mov byte [0x4a6783], bl
mov dword [0x4a6868], ebx
mov dword [0x49c3f4], 0x28
mov byte [0x4a91f4], bl
mov dword [0x4a67bc], ebx
mov dword [0x4a67c0], ebx
mov dword [0x4a67c8], eax
mov dword [0x4a67cc], eax
mov dword [0x4a67d0], eax
mov dword [0x4a67d4], eax
mov dword [0x4a67d8], eax
mov dword [0x4a67dc], eax
mov dword [0x4a67e0], eax
mov dword [0x4a67e4], eax
mov dword [0x4a67e8], eax
mov dword [0x4a67ec], eax
mov dword [0x4a67f0], eax
mov dword [0x4a67f4], eax
mov dword [0x4a67f8], eax
mov dword [0x4a67fc], eax
mov dword [0x4a6800], eax
mov dword [0x4a6804], eax
mov dword [0x4a6808], eax
mov dword [0x4a680c], eax
mov dword [0x4a6810], eax
mov dword [0x4a6814], eax
mov dword [0x4a6818], eax
mov dword [0x4a681c], eax
mov dword [0x4a6820], eax
mov dword [0x4a6824], eax
mov dword [0x4a6828], eax
mov dword [0x4a682c], eax
mov dword [0x4a6830], eax
mov dword [0x4a6834], eax
mov dword [0x4a6838], eax
mov dword [0x4a683c], eax
mov dword [0x4a6840], eax
mov dword [0x4a6844], eax
mov dword [0x4a6848], eax
mov dword [0x4a684c], eax
mov dword [0x4a6850], eax
mov dword [0x4a6854], eax
mov dword [0x4a6858], eax
mov dword [0x4a685c], eax
mov dword [0x4a6860], eax
mov dword [0x4a6864], eax
mov dword [0x4a67ac], ebx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x4a6948]
push ebx
push 0x1e
push 0x4b7
push eax
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045bfe1
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4a9180]
cmp eax, ebx
jne 0x4184ec
push ebx
push ebx
push 6
call fcn.004095f0
mov esi, 1
jmp 0x4184fe
mov esi, 1
cmp eax, esi
jne 0x418501
push ebx
push ebx
push 7
call fcn.004095f0
add esp, 0xc
mov byte [0x4a9213], 1
mov byte [0x4a92f4], 1
mov byte [0x4a91b3], bl
mov dword [0x4a91e4], ebx
mov byte [0x4a91b4], bl
mov dword [0x4a91ec], ebx
mov byte [0x4a91db], bl
mov dword [0x4a3ae8], esi
mov byte [0x4a91f0], bl
mov byte [0x4a91f1], bl
mov byte [0x4a67c6], bl
mov dword [0x4a91f8], esi
mov dword [0x4a3af4], esi
mov dword [0x4a3af8], esi
mov dword [0x4a3afc], esi
mov dword [0x4a3b18], ebx
mov byte [0x4a91d9], bl
mov byte [0x4a91f5], bl
call fcn.0045c5cc
mov dword [ebp - 0x408], eax
fild dword [ebp - 0x408]
push ebx
fnstcw word [ebp - 0x406]
push esi
movzx eax, word [ebp - 0x406]
fmul qword [0x48bd08]
or eax, 0xc00
mov dword [ebp - 0x40c], eax
push 0x35
fmul qword [0x48bd20]
mov byte [0x4a92f5], 1
fldcw word [ebp - 0x40c]
mov dword [0x4a3bdc], 0xa
fistp qword [ebp - 0x410]
mov ecx, dword [ebp - 0x410]
add ecx, 2
mov dword [0x4a3b08], ecx
fldcw word [ebp - 0x406]
call fcn.004095f0
mov edx, dword [0x4a6948]
mov esi, dword [sym.imp.USER32.dll_KillTimer]
add esp, 0xc
push 0x46a
push edx
call esi
mov eax, dword [0x4a6948]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push ebx
push 0x1e
push 0x46a
push eax
call edi
mov ecx, dword [0x4b80f8]
mov dword [0x4a3d10], 0x64
mov byte [ecx + 0xf4], bl
mov edx, dword [0x4a6948]
push 0x49c
push edx
call esi
mov eax, dword [0x4a6948]
push ebx
push 0x1e
push 0x49c
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045bfe1
mov esp, ebp
pop ebp
ret