Function at 0x4121c0
Capabilities:
Get graphical window text
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x265c
call fcn.00465ab0
cmp dword [0x4b09b8], 0
push ebx
push esi
push edi
mov dword [esp + 0x14], edx
mov edi, ecx
jne 0x41220e
mov eax, dword [0x4af29c]
dec eax
cmp eax, 5
ja case.default.0x4121ed
jmp dword [eax*4 + 0x412d48]
call fcn.00411f60
jmp case.default.0x4121ed
call fcn.00412d60
cmp dword [0x24990fc], 0
je 0x41220e
call fcn.004136d0
push 0x104
push edi
push 0x2483260
call fcn.0046d4e0
add esp, 0xc
push 0x2e
push 0x2483260
call fcn.004673b0
mov esi, eax
add esp, 8
test esi, esi
je 0x41225d
push 0x49d818
push esi
call fcn.00474f75
add esp, 8
test eax, eax
je 0x41225a
push 0x49d820
push esi
call fcn.00474f75
add esp, 8
test eax, eax
jne 0x41225d
mov byte [esi], 0
xor ecx, ecx
nop
mov al, byte [ecx + 0x2483260]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x17], al
test al, al
jne 0x412260
lea eax, [esp + 0x18]
push 0x49d824
push eax
call fcn.0046b3d9
add esp, 8
mov dword [0x248346c], eax
test eax, eax
jne 0x412412
lea eax, [esp + 0x18]
push 0x49d828
push eax
call fcn.0046b3d9
add esp, 8
mov dword [0x248346c], eax
test eax, eax
jne 0x412412
push 0x104
lea eax, [esp + 0x1c]
push 0x49d82c
push eax
call fcn.004745a0
add esp, 0xc
lea eax, [esp + 0x18]
push 0x49d834
push eax
call fcn.0046b3d9
add esp, 8
mov dword [0x248346c], eax
test eax, eax
jne 0x41232f
lea eax, [esp + 0x18]
push 0x49d838
push eax
call fcn.0046b3d9
add esp, 8
mov dword [0x248346c], eax
test eax, eax
jne 0x41232f
call fcn.00474f29
push dword [eax]
call fcn.004751a8
add esp, 4
push eax
push edi
push str._VCR_:_Cannot_start_playback__could_not_open_.m64_file__s:__s_n
push 2
call fcn.00473dc9
add esp, 4
push eax
call fcn.0040d6c0
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [esp + 0x3c4]
push eax
push dword [0x4b09c4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
mov dword [0x4af298], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push eax
call fcn.00474bc5
mov eax, dword [0x4af298]
add esp, 0x14
nop word [eax + eax]
dec eax
cmp byte [esp + eax + 0x3c0], 0x20
je 0x412370
inc eax
lea edi, [esp + 0x3c0]
mov dword [0x4af298], eax
dec edi
mov byte [esp + eax + 0x3c0], 0
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x412391
mov eax, dword [0x49d83c]
lea edx, [esp + 0x18]
mov dword [edi], eax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4123a8
lea edi, [esp + 0x3c0]
sub edx, esi
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4123c0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c0]
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4123e0
mov eax, dword [0x49d884]
mov dword [ecx], eax
mov al, byte [0x49d888]
mov byte [ecx + 4], al
lea eax, [esp + 0x3c0]
push eax
push dword [0x4b09c4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x248346c]
mov edx, 0x2498cf8
mov ecx, eax
call fcn.00410fd0
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x412487
push dword [ebx*4 + 0x49ecbc]
lea eax, [esp + 0x35c]
push str._VCR_:_Error_playing_movie:__s._n
push eax
call fcn.0040e260
add esp, 0xc
lea eax, [esp + 0x358]
cmp dword [0x4af2a8], 0
je 0x412472
push eax
push str.Error:__s_n
push 2
call fcn.00473dc9
add esp, 4
push eax
call fcn.0040d6c0
add esp, 0xc
jmp 0x412bfc
push 0x10
push 0x49d534
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x412bfc
mov bl, byte [0x2498d18]
xor eax, eax
mov byte [esp + 0x6c8], 0
mov dword [esp + 0xc], eax
cmp dword [0x4af120], eax
jne 0x4124d8
test bl, 1
je 0x412594
lea edi, [esp + 0x6c8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4124b4
mov ecx, 0x27
mov dword [esp + 0xc], 1
mov esi, str.Error:_You_have_controller_1_disabled__but_it_is_enabled_in_the_movie_file._nIt_cannot_play_back_correctly_unless_you_fix_this_first__in_your_input_settings_._n
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x412594
test bl, 1
jne 0x412501
lea edi, [esp + 0x6c8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4124e5
mov ecx, 0x29
mov esi, str.Warning:_You_have_controller_1_enabled__but_it_is_disabled_in_the_movie_file._nIt_might_not_play_back_correctly_unless_you_change_this_first__in_your_input_settings_._n
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x412594
mov edx, dword [0x4af128]
cmp edx, 2
je 0x412534
test bl, 0x10
je 0x412534
lea edi, [esp + 0x6c8]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412520
mov ecx, 0x27
mov esi, str.Warning:_Controller_1_has_a_rumble_pack_in_the_movie._nYou_may_need_to_change_your_input_plugin_settings_accordingly_for_this_movie_to_play_back_correctly._n
rep movsd dword es:[edi], dword [esi]
cmp edx, 3
je 0x412564
test dword [0x2498d18], 0x100
je 0x412564
lea edi, [esp + 0x6c8]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412550
mov ecx, 0x27
mov esi, str.Warning:_Controller_1_has_a_memory_pack_in_the_movie._nYou_may_need_to_change_your_input_plugin_settings_accordingly_for_this_movie_to_play_back_correctly._n
rep movsd dword es:[edi], dword [esi]
cmp edx, 1
je 0x412594
test dword [0x2498d18], 0x110
jne 0x412594
lea edi, [esp + 0x6c8]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412580
mov ecx, 0x2c
mov esi, str.Warning:_Controller_1_does_not_have_a_mempak_or_rumble_pack_in_the_movie._nYou_may_need_to_change_your_input_plugin_settings_accordingly_for_this_movie_to_play_back_correctly._n
rep movsd dword es:[edi], dword [esi]
cmp dword [0x4af12c], 0
jne 0x4125d2
test bl, 2
je 0x412684
lea edi, [esp + 0x6c8]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4125b0
mov ecx, 0x27
mov dword [esp + 0xc], 1
mov esi, str.Error:_You_have_controller_2_disabled__but_it_is_enabled_in_the_movie_file._nIt_cannot_back_correctly_unless_you_change_this_first__in_your_input_settings_._n
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x412684
test bl, 2
jne 0x4125f7
lea edi, [esp + 0x6c8]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4125e0
mov ecx, 0x29
mov esi, str.Warning:_You_have_controller_2_enabled__but_it_is_disabled_in_the_movie_file._nIt_might_not_play_back_correctly_unless_you_fix_this_first__in_your_input_settings_._n
jmp 0x412682
mov edx, dword [0x4af134]
cmp edx, 2
je 0x412624
test bl, 0x20
je 0x412624
lea edi, [esp + 0x6c8]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412610
mov ecx, 0x27
mov esi, str.Warning:_Controller_2_has_a_rumble_pack_in_the_movie._nYou_may_need_to_change_your_input_plugin_settings_accordingly_for_this_movie_to_play_back_correctly._n
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x2498d18]
cmp edx, 3
je 0x412659
test eax, 0x200
je 0x412659
lea edi, [esp + 0x6c8]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412640
mov eax, dword [0x2498d18]
mov ecx, 0x27
mov esi, str.Warning:_Controller_2_has_a_memory_pack_in_the_movie._nYou_may_need_to_change_your_input_plugin_settings_accordingly_for_this_movie_to_play_back_correctly._n
rep movsd dword es:[edi], dword [esi]
cmp edx, 1
je 0x412684
test eax, 0x220
jne 0x412684
lea edi, [esp + 0x6c8]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412670
mov ecx, 0x2c
mov esi, str.Warning:_Controller_2_does_not_have_a_mempak_or_rumble_pack_in_the_movie._nYou_may_need_to_change_your_input_plugin_settings_accordingly_for_this_movie_to_play_back_correctly._n
rep movsd dword es:[edi], dword [esi]
cmp dword [0x4af138], 0
jne 0x4126c3
test bl, 4
je 0x412774
lea edi, [esp + 0x6c8]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4126a0
mov ecx, 0x28
mov dword [esp + 0xc], 1
mov esi, str.Error:_You_have_controller_3_disabled__but_it_is_enabled_in_the_movie_file._nIt_cannot_play_back_correctly_unless_you_change_this_first__in_your_input_settings_._n
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x412774
test bl, 4
jne 0x4126e7
lea edi, [esp + 0x6c8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4126d0
mov ecx, 0x29
mov esi, str.Warning:_You_have_controller_3_enabled__but_it_is_disabled_in_the_movie_file._nIt_might_not_play_back_correctly_unless_you_fix_this_first__in_your_input_settings_._n
jmp 0x412772
mov edx, dword [0x4af140]
cmp edx, 2
je 0x412714
test bl, 0x40
jne 0x412714
lea edi, [esp + 0x6c8]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412700
mov ecx, 0x27
mov esi, str.Warning:_Controller_3_has_a_rumble_pack_in_the_movie._nYou_may_need_to_change_your_input_plugin_settings_accordingly_for_this_movie_to_play_back_correctly._n
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x2498d18]
cmp edx, 3
je 0x412749
test eax, 0x400
jne 0x412749
lea edi, [esp + 0x6c8]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412730
mov eax, dword [0x2498d18]
mov ecx, 0x27
mov esi, str.Warning:_Controller_3_has_a_memory_pack_in_the_movie._nYou_may_need_to_change_your_input_plugin_settings_accordingly_for_this_movie_to_play_back_correctly._n
rep movsd dword es:[edi], dword [esi]
cmp edx, 1
je 0x412774
test eax, 0x440
jne 0x412774
lea edi, [esp + 0x6c8]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412760
mov ecx, 0x2c
mov esi, str.Warning:_Controller_3_does_not_have_a_mempak_or_rumble_pack_in_the_movie._nYou_may_need_to_change_your_input_plugin_settings_accordingly_for_this_movie_to_play_back_correctly._n
rep movsd dword es:[edi], dword [esi]
cmp dword [0x4af144], 0
jne 0x4127b0
test bl, 8
je 0x412864
lea edi, [esp + 0x6c8]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412790
mov ecx, 0x28
mov esi, str.Error:_You_have_controller_4_disabled__but_it_is_enabled_in_the_movie_file._nIt_cannot_play_back_correctly_unless_you_change_this_first__in_your_input_settings_._n
rep movsd dword es:[edi], dword [esi]
mov ebx, 1
movsw word es:[edi], word [esi]
jmp 0x412868
test bl, 8
jne 0x4127db
lea edi, [esp + 0x6c8]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4127c0
mov ecx, 0x28
mov esi, str.Error:_You_have_controller_4_enabled__but_it_is_disabled_in_the_movie_file._nIt_might_not_play_back_correctly_unless_you_fix_this_first__in_your_input_settings_._n
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x412864
mov edx, dword [0x4af14c]
cmp edx, 2
je 0x412806
test bl, bl
js 0x412806
lea edi, [esp + 0x6c8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4127f2
mov ecx, 0x27
mov esi, str.Warning:_Controller_4_has_a_rumble_pack_in_the_movie._nYou_may_need_to_change_your_input_plugin_settings_accordingly_for_this_movie_to_play_back_correctly._n
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x2498d18]
cmp edx, 3
je 0x412839
test eax, 0x800
jne 0x412839
lea edi, [esp + 0x6c8]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412820
mov eax, dword [0x2498d18]
mov ecx, 0x27
mov esi, str.Warning:_Controller_4_has_a_memory_pack_in_the_movie._nYou_may_need_to_change_your_input_plugin_settings_accordingly_for_this_movie_to_play_back_correctly._n
rep movsd dword es:[edi], dword [esi]
cmp edx, 1
je 0x412864
test eax, 0x880
jne 0x412864
lea edi, [esp + 0x6c8]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412850
mov ecx, 0x2c
mov esi, str.Warning:_Controller_4_does_not_have_a_mempak_or_rumble_pack_in_the_movie._nYou_may_need_to_change_your_input_plugin_settings_accordingly_for_this_movie_to_play_back_correctly._n
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 0xc]
mov eax, dword [0x4af15c]
test eax, eax
je 0x412986
add eax, 0x20
push eax
push 0x2498dbc
call fcn.00474f75
add esp, 8
test eax, eax
mov eax, dword [0x4af15c]
je 0x4128d4
add eax, 0x20
push eax
push 0x2498dbc
lea eax, [esp + 0x4d0]
push str.The_movie_was_recorded_with_the_ROM___s___nbut_you_are_using_the_ROM___s___nso_the_movie_probably_wont_play_properly._n
push eax
call fcn.0040e260
lea edx, [esp + 0x4d8]
add esp, 0x10
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4128b6
lea edi, [esp + 0x6c8]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4128c7
jmp 0x412978
test eax, eax
je 0x412986
movzx ecx, word [eax + 0x3e]
mov dx, word [0x2498de0]
cmp dx, cx
je 0x41292b
push ecx
movzx eax, dx
push eax
lea eax, [esp + 0x4d0]
push str.The_movie_was_recorded_with_a_ROM_with_country_code___d___nbut_you_are_using_a_ROM_with_country_code___d___nso_the_movie_may_not_play_properly._n
push eax
call fcn.0040e260
lea edx, [esp + 0x4d8]
add esp, 0x10
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x412910
lea edi, [esp + 0x6c8]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412921
jmp 0x412978
mov eax, dword [eax + 0x10]
mov ecx, dword [0x2498ddc]
cmp ecx, eax
je 0x412986
push eax
push ecx
lea eax, [esp + 0x4d0]
push str.The_movie_was_recorded_with_a_ROM_that_has_CRC__0x_x___nbut_you_are_using_a_ROM_with_CRC__0x_x___nso_the_movie_may_not_play_properly._n
push eax
call fcn.0040e260
lea edx, [esp + 0x4d8]
add esp, 0x10
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x412958
lea edi, [esp + 0x6c8]
sub edx, esi
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412970
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x6c8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412990
sub ecx, edx
je 0x4129dd
test ebx, ebx
je 0x4129ad
lea ecx, [esp + 0x6c8]
call fcn.00410c90
jmp 0x4129dd
cmp dword [0x4af2a8], 0
lea eax, [esp + 0x6c8]
je 0x4129cd
push eax
push str.Warning:__s_n
call fcn.0040e1d0
add esp, 8
jmp 0x4129dd
push 0x30
push 0x49d520
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x40
lea eax, [esp + 0x15c]
push 0x4b0cc8
push eax
call fcn.0046d4e0
add esp, 0xc
cmp byte [esp + 0x158], 0
je 0x412a3a
cmp byte [0x2498e9a], 0
je 0x412a3a
lea eax, [esp + 0x158]
push eax
push 0x2498e9a
call fcn.00474f75
add esp, 8
test eax, eax
je 0x412a3a
lea eax, [esp + 0x158]
push eax
push 0x2498e9a
push str.Warning:_The_movie_was_recorded_with_the_input_plugin___s___nbut_you_are_using_the_input_plugin___s___nso_the_movie_may_not_play_properly._n
call fcn.0040e1d0
add esp, 0xc
push 0x40
lea eax, [esp + 0x15c]
push 0x4b0bc8
push eax
call fcn.0046d4e0
add esp, 0xc
cmp byte [esp + 0x158], 0
je 0x412a97
cmp byte [0x2498e1a], 0
je 0x412a97
lea eax, [esp + 0x158]
push eax
push 0x2498e1a
call fcn.00474f75
add esp, 8
test eax, eax
je 0x412a97
lea eax, [esp + 0x158]
push eax
push 0x2498e1a
push str.Warning:_The_movie_was_recorded_with_the_graphics_plugin___s___nbut_you_are_using_the_graphics_plugin___s___nso_the_movie_might_not_play_properly._n
call fcn.0040e1d0
add esp, 0xc
push 0x40
lea eax, [esp + 0x15c]
push 0x4b09c8
push eax
call fcn.0046d4e0
add esp, 0xc
cmp byte [esp + 0x158], 0
je 0x412af4
cmp byte [0x2498e5a], 0
je 0x412af4
lea eax, [esp + 0x158]
push eax
push 0x2498e5a
call fcn.00474f75
add esp, 8
test eax, eax
je 0x412af4
lea eax, [esp + 0x158]
push eax
push 0x2498e5a
push str.Warning:_The_movie_was_recorded_with_the_sound_plugin___s___nbut_you_are_using_the_sound_plugin___s___nso_the_movie_might_not_play_properly._n
call fcn.0040e1d0
add esp, 0xc
push 0x40
lea eax, [esp + 0x15c]
push 0x4b0ac8
push eax
call fcn.0046d4e0
add esp, 0xc
cmp byte [esp + 0x158], 0
je 0x412b51
cmp byte [0x2498eda], 0
je 0x412b51
lea eax, [esp + 0x158]
push eax
push 0x2498eda
call fcn.00474f75
add esp, 8
test eax, eax
je 0x412b51
lea eax, [esp + 0x158]
push eax
push 0x2498eda
push str.Warning:_The_movie_was_recorded_with_the_RSP_plugin___s___nbut_you_are_using_the_RSP_plugin___s___nso_the_movie_probably_wont_play_properly._n
call fcn.0040e1d0
add esp, 0xc
test ebx, ebx
jne 0x412325
mov eax, 2
cmp eax, dword [0x2498cfc]
push ebx
sbb eax, eax
and eax, 0x200
add eax, 0x200
push eax
push dword [0x248346c]
call fcn.00474451
mov eax, dword [0x24990f8]
add esp, 0xc
mov dword [0x2483258], eax
mov eax, dword [0x2498d10]
lea esi, [eax*4 + 4]
mov ecx, esi
call fcn.00410f90
push dword [0x248346c]
push esi
push 1
push dword [0x2483258]
call fcn.004748bb
push 2
push ebx
push dword [0x248346c]
call fcn.00474451
add esp, 0x1c
lea eax, [esp + 0x124]
push dword [0x2498d08]
push 0x49d88c
push eax
call fcn.0040e260
add esp, 0xc
lea eax, [esp + 0x124]
push eax
push 1
push 0x401
push dword [0x4b09c0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [esp + 0x10]
test byte [0x2498d14], 1
mov dword [0x4aba54], 0
mov dword [0x4aba58], 0
je 0x412cf2
push str._VCR_:_Loading_state..._n
call fcn.0040e1d0
add esp, 4
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + 0x2483260]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x17], al
test al, al
jne 0x412c30
lea eax, [esp + 0x18]
push 0x2e
push eax
call fcn.004673b0
mov esi, eax
add esp, 8
test esi, esi
je 0x412c94
lea eax, [esp + 0x18]
push 0x5c
push eax
call fcn.004673b0
add esp, 8
cmp esi, eax
jbe 0x412c94
lea eax, [esp + 0x18]
push 0x2f
push eax
call fcn.004673b0
add esp, 8
cmp esi, eax
jbe 0x412c94
lea eax, [esp + 0x18]
mov byte [esi], 0
push 0x2e
push eax
call fcn.004673b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x412c56
push 0x104
lea eax, [esp + 0x1c]
push 0x49db54
push eax
call fcn.004745a0
lea ecx, [esp + 0x24]
add esp, 0xc
add dword [0x246d5b8], 0xa
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412cc0
sub ecx, edx
cmp ecx, 0x400
jae 0x412ce4
xor ecx, ecx
mov al, byte [esp + ecx + 0x18]
lea ecx, [ecx + 1]
mov byte [ecx + 0x246d5bf], al
test al, al
jne 0x412cd3
or dword [0x4af290], 2
mov eax, 5
jmp 0x412cf7
mov eax, 4
mov dword [0x4af29c], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x412d17
push 0xde
push eax
push 0x2498f1a
call fcn.0046d4e0
add esp, 0xc
mov eax, dword [ebp + 8]
mov byte [0x2498ff7], 0
test eax, eax
je 0x412d38
push 0x100
push eax
push 0x2498ff8
call fcn.0046d4e0
add esp, 0xc
pop edi
pop esi
mov eax, ebx
mov byte [0x24990f7], 0
pop ebx
mov esp, ebp
pop ebp
ret