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

Disassembly:
push 0xffffffffffffffff
push 0x440ea6
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x490130]
xor eax, esp
mov dword [esp + 0x45c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490130]
xor eax, esp
push eax
lea eax, [esp + 0x474]
mov dword fs:[0], eax
mov eax, dword [str.What_are_you_doing]
mov edx, dword [0x4450d0]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, ecx
mov ecx, dword [0x4450cc]
mov dword [esp + 0x5c], eax
mov eax, dword [0x4450d4]
mov dword [esp + 0x60], ecx
mov cx, word [0x4450d8]
mov dword [esp + 0x64], edx
mov dl, byte [0x4450da]
mov dword [esp + 0x68], eax
mov eax, dword [str.best_performance]
mov word [esp + 0x6c], cx
mov ecx, dword [0x4450b8]
xor ebp, ebp
mov byte [esp + 0x6e], dl
mov edx, dword [0x4450bc]
mov dword [esp + 0x48], eax
mov eax, dword [0x4450c0]
mov dword [esp + 0x4c], ecx
mov cl, byte [0x4450c4]
xor edi, edi
cmp byte [esi + 0xb1], 0xff
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov byte [esp + 0x58], cl
mov dword [esp + 0x24], ebp
jne 0x405f8b
cmp dword [esi + 0x181], edi
jne 0x405fa0
mov edx, dword [esi + 0x189]
push edi
push edi
mov byte [edx + 0xcc], 0
mov eax, dword [esi + 0x3a5]
push pe_nt_image_headers32
push eax
call ebx
cmp eax, 1
jne 0x405fdc
mov byte [esi + 0xb1], 0x4a
cmp dword [esi + 0x181], edi
jne 0x405fa0
push 0
lea ecx, [esi + 0x235]
call fcn.004125f0
mov al, byte [esi + 0xb1]
cmp al, 0x4a
jne 0x40611c
cmp word [esi + 0xb5], 0x3744
jne 0x4060fd
mov edi, 0x6d90
mov ebp, 0x4543b0
mov byte [esi + 0xb2], 1
mov al, 0xd
mov byte [esi + 0xb4], 0
jmp 0x40620d
mov ecx, dword [esi + 0x3f9]
push 0
push 0
push pe_nt_image_headers32
push ecx
call ebx
cmp eax, 1
jne 0x405ffc
mov byte [esi + 0xb1], 0x53
jmp 0x405f8b
mov edx, dword [esi + 0x44d]
push 0
push 0
push pe_nt_image_headers32
push edx
call ebx
cmp eax, 1
jne 0x40601f
mov byte [esi + 0xb1], 0x4d
jmp 0x405f8b
lea ecx, [esi + 0x481]
call fcn.004045a0
cmp eax, 1
jne 0x4060ce
mov eax, dword [esi + 0x189]
mov byte [esi + 0xb1], 0x42
mov byte [eax + 0xcc], 0x55
mov ecx, dword [esi + 0x189]
mov dl, 0x4e
mov byte [ecx + 0xcd], dl
mov eax, dword [esi + 0x189]
mov cl, 0x44
mov byte [eax + 0xce], cl
mov ebx, dword [esi + 0x189]
mov al, 0x45
mov byte [ebx + 0xcf], al
mov ebx, dword [esi + 0x189]
mov byte [ebx + 0xd0], 0x46
mov ebx, dword [esi + 0x189]
mov byte [ebx + 0xd1], 0x49
mov ebx, dword [esi + 0x189]
mov byte [ebx + 0xd2], dl
mov edx, dword [esi + 0x189]
mov byte [edx + 0xd3], al
mov eax, dword [esi + 0x189]
mov byte [eax + 0xd4], cl
mov ecx, dword [esi + 0x189]
mov byte [ecx + 0xd5], 0x20
mov edx, dword [esi + 0x189]
mov byte [edx + 0xd6], 0x20
jmp 0x405f8b
lea ecx, [esi + 0x4d5]
call fcn.004045a0
cmp eax, 1
jne 0x4060ea
mov byte [esi + 0xb1], 0x41
jmp 0x405f8b
push 0
push 0
push str.Please_select_the_Product_Option_first.
call fcn.004078dc
jmp 0x406bb7
mov edi, 0x63d0
mov ebp, 0x467ea0
mov byte [esi + 0xb2], 2
mov al, 0x1b
mov byte [esi + 0xb4], 0
jmp 0x40620d
cmp al, 0x53
jne 0x406169
cmp word [esi + 0xb5], 0x3744
jne 0x406140
mov edi, 0x48b0
mov ebp, 0x45b140
mov byte [esi + 0xb2], 1
mov al, 4
jmp 0x406153
mov edi, 0x54b0
mov ebp, 0x46e270
mov byte [esi + 0xb2], 2
mov al, 6
mov byte [esi + 0xb4], al
mov byte [esp + 0x17], al
mov byte [esi + 0xb3], 0
jmp 0x406217
cmp al, 0x4d
jne 0x4061ce
cmp word [esi + 0xb5], 0x3744
jne 0x4061a3
mov al, 0xd
mov byte [esp + 0x16], al
mov byte [esi + 0xb3], al
mov al, 4
mov edi, 0x84b0
mov ebp, 0x45f9f0
mov byte [esi + 0xb2], 1
mov byte [esp + 0x17], al
mov byte [esi + 0xb4], al
jmp 0x406217
mov al, 0x1b
mov byte [esp + 0x16], al
mov byte [esi + 0xb3], al
mov al, 6
mov edi, 0x7e50
mov ebp, 0x473720
mov byte [esi + 0xb2], 2
mov byte [esp + 0x17], al
mov byte [esi + 0xb4], al
jmp 0x406217
cmp al, 0x42
jne 0x4061ea
mov edi, 0xb4a0
mov ebp, 0x47b570
mov byte [esp + 0x17], 0xf
mov byte [esi + 0xb4], 0xf
jmp 0x406204
cmp al, 0x41
jne 0x406217
mov edi, 0x6cb0
mov ebp, 0x486a10
mov byte [esp + 0x17], 1
mov byte [esi + 0xb4], 1
mov al, 0x1b
mov byte [esi + 0xb2], 2
mov byte [esp + 0x16], al
mov byte [esi + 0xb3], al
movzx eax, word [esi + 0xaf]
sub eax, 1
shl eax, 0xa
sub eax, dword [esi + 0x529]
sub eax, 0x4000
cmp edi, eax
jbe 0x40628e
cmp dword [esi + 0x181], 0
jne 0x40624f
push 0
push 0
push str.The_up_to_date_firmware_is_too_big_for_this_board._Cant_update.
call fcn.004078dc
jmp 0x406bb7
push 0xa
mov ecx, 0x494320
call fcn.00403e60
mov ecx, 0x494320
call fcn.00403aa0
push str.The_up_to_date_firmware_is_too_big_for_this_board._Cant_update.
push 0x494320
call fcn.00403c50
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403e60
mov ecx, esi
call fcn.00403aa0
jmp 0x406bb7
mov ecx, edi
shr ecx, 2
lea edx, [ecx*4 + 4]
push edx
call fcn.00406c6a
add esp, 4
test ebp, ebp
mov ebx, eax
mov dword [esp + 0x1c], ebx
je 0x4062bd
push edi
lea eax, [esp + 0x4c]
push eax
push ebx
push ebp
call fcn.00401d70
add esp, 0x10
cmp byte [esi + 0xb2], 1
mov eax, 0xaaaaaaab
jne 0x4062d8
lea ecx, [edi - 1]
mul ecx
shr edx, 0xb
add edx, 5
jmp 0x4062e3
lea edx, [edi - 1]
mul edx
shr edx, 0xb
add edx, 3
cmp dword [esi + 0x181], 0
movzx eax, dx
mov dword [esp + 0x20], eax
jne 0x406324
mov ecx, dword [esi + 0x2a9]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
movzx eax, ax
shl eax, 0x10
push eax
push 0
push 0x401
push ecx
call ebp
mov edx, dword [esi + 0x2a9]
push 0
push 1
push 0x404
push edx
call ebp
jmp 0x406333
push 0x2e
push 0x494320
call fcn.00405270
add esp, 8
push 0x400
lea eax, [esp + 0x74]
push 0xff
push eax
call fcn.00428510
movzx eax, word [esi + 0xaf]
add esp, 0xc
push 0x10
shl eax, 0xa
lea ecx, [esp + 0x74]
add eax, 0x7fffff0
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.00405df0
cmp eax, 1
je 0x40637f
push ebx
call fcn.00406c6f
add esp, 4
jmp 0x406bb7
test edi, edi
mov ebx, 0x8004000
mov dword [esp + 0x18], 0
je 0x4063f8
cmp edi, 0xc00
mov ebp, 0xc00
ja 0x40639f
mov ebp, edi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebp
add edx, eax
push edx
push ebx
mov ecx, esi
call fcn.00405df0
cmp eax, 1
jne 0x406499
cmp dword [esi + 0x181], 0
jne 0x4063dd
mov ecx, dword [esi + 0x2a9]
push 0
push 0
push 0x405
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4063ec
push 0x2e
push 0x494320
call fcn.00405270
add esp, 8
add dword [esp + 0x18], ebp
sub edi, ebp
add ebx, ebp
test edi, edi
jne 0x406390
mov eax, dword [esp + 0x1c]
push eax
call fcn.00406c6f
add esp, 4
cmp byte [esi + 0xb2], 1
jne 0x4064d3
push 0x1494
mov ebp, 0x1490
call fcn.00406c6a
push ebp
lea ecx, [esp + 0x50]
push ecx
push eax
push 0x48d6c0
mov dword [esp + 0x30], eax
call fcn.00401d70
add esp, 0x14
mov ebx, 0x800d000
mov dword [esp + 0x18], 0
jmp 0x406450
cmp ebp, 0xc00
mov edi, 0xc00
ja 0x40645f
mov edi, ebp
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push edi
add edx, eax
push edx
push ebx
mov ecx, esi
call fcn.00405df0
cmp eax, 1
jne 0x406499
cmp dword [esi + 0x181], 0
jne 0x4064ab
mov ecx, dword [esi + 0x2a9]
push 0
push 0
push 0x405
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4064ba
mov edx, dword [esp + 0x1c]
push edx
call fcn.00406c6f
add esp, 4
jmp 0x406bb7
push 0x2e
push 0x494320
call fcn.00405270
add esp, 8
add dword [esp + 0x18], edi
sub ebp, edi
add ebx, edi
test ebp, ebp
jne 0x406450
mov eax, dword [esp + 0x1c]
push eax
call fcn.00406c6f
add esp, 4
push 0x10
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esi + 0x8d]
push eax
call fcn.00401ca0
movzx ecx, byte [esi + 0xb1]
mov al, byte [esi + 0xb3]
mov byte [esp + 0xa0], cl
movzx ecx, byte [esi + 0xb2]
mov dl, al
shr dl, 2
and dl, 0xf
shl cl, 4
or dl, cl
mov byte [esp + 0x47e], dl
mov dl, byte [esi + 0xb4]
shl al, 6
and dl, 0x3f
or dl, al
or eax, 0xffffffff
add esp, 0x10
cmp byte [esi + 0xb8], 2
mov byte [esp + 0x46f], dl
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov word [esp + 0x40], ax
jb 0x4065c4
push 0x16
lea eax, [esp + 0x30]
push eax
lea ecx, [esi + 0x74]
call fcn.00401f50
mov ebp, 1
cmp eax, ebp
je 0x4065c9
cmp dword [esi + 0x181], 0
jne 0x406588
push 0
push 0
push str.Error_getting_previous_values_of_parameters__USB_max_current__volume_name_.
call fcn.004078dc
jmp 0x4065c9
push 0xa
mov ecx, 0x494320
call fcn.00403e60
mov ecx, 0x494320
call fcn.00403aa0
push str.Error_getting_previous_values_of_parameters__USB_max_current__volume_name_.
push 0x494320
call fcn.00403c50
add esp, 8
mov edi, eax
push 0xa
mov ecx, edi
call fcn.00403e60
mov ecx, edi
call fcn.00403aa0
jmp 0x4065c9
mov ebp, 1
mov edi, dword [esi + 0x189]
cmp dword [edi + 0xc8], 0xffffffff
je 0x4065f4
mov byte [esp + 0xa0], 0x50
mov eax, dword [edi + 0xc8]
cdq
sub eax, edx
sar eax, 1
mov byte [esp + 0xa1], al
jmp 0x40660e
mov al, 0x50
cmp byte [esp + 0x2c], al
jne 0x40660e
mov cl, byte [esp + 0x2d]
mov byte [esp + 0xa0], al
mov byte [esp + 0xa1], cl
cmp byte [edi + 0xcc], 0
lea ecx, [edi + 0xcc]
je 0x406644
mov byte [esp + 0xa2], 0x56
xor eax, eax
jmp 0x406630
mov dl, byte [ecx]
mov byte [esp + eax + 0xa3], dl
add eax, ebp
add ecx, ebp
cmp eax, 0xb
jl 0x406630
jmp 0x40669a
cmp dword [edi + 0xdc], ebp
jne 0x406656
mov byte [esp + 0xa2], 0xff
jmp 0x40669a
cmp byte [esp + 0x2e], 0x56
jne 0x40669a
mov eax, dword [esp + 0x2e]
mov ecx, dword [esp + 0x32]
mov edx, dword [esp + 0x36]
push 0xa
mov dword [esp + 0xa6], eax
lea eax, [esp + 0x33]
push str.DIS_F746NG
push eax
mov dword [esp + 0xb2], ecx
mov dword [esp + 0xb6], edx
call fcn.004298c8
add esp, 0xc
test eax, eax
jne 0x40669a
mov dword [esp + 0x24], ebp
mov ecx, dword [esi + 0x189]
cmp dword [ecx + 0xe8], ebp
jne 0x4066b5
mov byte [esp + 0xaf], 0x20
jmp 0x40674c
cmp dword [ecx + 0xe0], ebp
jne 0x4066ff
mov byte [esp + 0xaf], 0x42
movzx edx, byte [ecx + 0xe4]
mov byte [esp + 0xb0], dl
movzx eax, byte [ecx + 0xe5]
mov byte [esp + 0xb1], al
movzx edx, byte [ecx + 0xe6]
mov byte [esp + 0xb2], dl
movzx eax, byte [ecx + 0xe7]
mov byte [esp + 0xb3], al
jmp 0x40674c
cmp byte [esp + 0x3b], 0x42
jne 0x40671e
mov edx, dword [esp + 0x3b]
mov al, byte [esp + 0x3f]
mov dword [esp + 0xaf], edx
mov byte [esp + 0xb3], al
jmp 0x40674c
cmp dword [esp + 0x24], ebp
jne 0x40674c
mov byte [esp + 0xaf], 0x42
mov byte [esp + 0xb0], 0x30
mov byte [esp + 0xb1], 0x38
mov byte [esp + 0xb2], 0x31
mov byte [esp + 0xb3], 0x35
cmp byte [esp + 0x40], 0x46
mov byte [esp + 0xb4], 0x46
setne al
sub al, 1
and eax, dword [esp + 0x41]
mov byte [esp + 0xb5], al
cmp dword [ecx + 0xec], ebp
jne 0x40677a
or al, 1
mov byte [esp + 0xb5], al
cmp dword [ecx + 0xec], 2
jne 0x40678c
and al, 0xfe
mov byte [esp + 0xb5], al
test al, al
jne 0x4067a0
mov byte [esp + 0xb4], 0xff
mov byte [esp + 0xb5], 0xff
push 0x400
lea ecx, [esp + 0x74]
push ecx
push 0x8003c00
mov ecx, esi
call fcn.00405df0
cmp eax, ebp
jne 0x406bb7
mov eax, dword [esp + 0x28]
push 0x10
lea edx, [esp + 0x74]
push edx
push eax
mov ecx, esi
mov dword [esp + 0x88], 0xa50027d3
call fcn.00405df0
cmp eax, ebp
jne 0x406bb7
cmp dword [esi + 0x181], 0
jne 0x406833
movzx ecx, word [esp + 0x20]
mov edx, dword [esi + 0x2a9]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ecx
push 0x402
push edx
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x2a9]
push 0
push 0
push 0x402
push eax
call edi
push 0
push 0
push str.Upgrade_is_successful.
call fcn.004078dc
jmp 0x40686d
push 0xa
mov ecx, 0x494320
call fcn.00403e60
mov ecx, 0x494320
call fcn.00403aa0
push str.Upgrade_is_successful.
push 0x494320
call fcn.00403c50
add esp, 8
mov edi, eax
push 0xa
mov ecx, edi
call fcn.00403e60
mov ecx, edi
call fcn.00403aa0
lea ebx, [esi + 0x74]
mov ecx, ebx
call fcn.00401eb0
call fcn.00412ed8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406891
push 0x80004005
call fcn.00401b70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x47c], 0
call fcn.00412ed8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4068c6
push 0x80004005
call fcn.00401b70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov al, byte [esi + 0xb1]
cmp al, 0x4a
mov byte [esp + 0x47c], 1
jne 0x406934
movzx ecx, byte [esi + 0xb4]
movzx edx, byte [esi + 0xb3]
movzx eax, byte [esi + 0xb2]
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push str.V_d.J_d.S_d_STM32_Debugger
push ecx
call fcn.00404f00
movzx edx, byte [esp + 0x2a]
movzx eax, byte [esi + 0xb2]
push edx
push eax
lea ecx, [esp + 0x38]
push str.V_d.J_d.S0
push ecx
call fcn.00404f00
add esp, 0x24
jmp 0x406a6e
cmp al, 0x53
jne 0x406984
movzx edx, byte [esi + 0xb4]
movzx eax, byte [esi + 0xb3]
movzx ecx, byte [esi + 0xb2]
push edx
push eax
push ecx
lea edx, [esp + 0x24]
push str.V_d.J_d.S_d_STM8_Debugger
push edx
call fcn.00404f00
movzx eax, byte [esp + 0x2b]
movzx ecx, byte [esi + 0xb2]
push eax
push ecx
lea edx, [esp + 0x38]
push str.V_d.J0.S_d
push edx
call fcn.00404f00
add esp, 0x24
jmp 0x406a6e
cmp al, 0x4d
jne 0x4069d2
movzx eax, byte [esi + 0xb4]
movzx ecx, byte [esi + 0xb3]
movzx edx, byte [esi + 0xb2]
push eax
push ecx
push edx
lea eax, [esp + 0x24]
push str.V_d.J_d.S_d_STM32STM8_Debugger
push eax
call fcn.00404f00
movzx ecx, byte [esp + 0x2b]
movzx edx, byte [esp + 0x2a]
movzx eax, byte [esi + 0xb2]
push ecx
push edx
push eax
push str.V_d.J_d.S_d
lea ecx, [esp + 0x40]
push ecx
jmp 0x406a66
cmp al, 0x42
jne 0x406a1d
movzx edx, byte [esi + 0xb4]
movzx eax, byte [esi + 0xb3]
movzx ecx, byte [esi + 0xb2]
push edx
push eax
push ecx
lea edx, [esp + 0x24]
push str.V_d.J_d.M_d_STM32_DebugMass_storage
push edx
call fcn.00404f00
movzx eax, byte [esp + 0x2b]
movzx ecx, byte [esp + 0x2a]
movzx edx, byte [esi + 0xb2]
push eax
push ecx
push edx
push str.V_d.J_d.M_d
lea eax, [esp + 0x40]
push eax
jmp 0x406a66
cmp al, 0x41
jne 0x406a6e
movzx ecx, byte [esi + 0xb4]
movzx edx, byte [esi + 0xb3]
movzx eax, byte [esi + 0xb2]
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push str.V_d.J_d.A_d_STM32_DebugAudio
push ecx
call fcn.00404f00
movzx edx, byte [esp + 0x2b]
movzx eax, byte [esp + 0x2a]
movzx ecx, byte [esi + 0xb2]
push edx
push eax
push ecx
push str.V_d.J_d.A_d
lea edx, [esp + 0x40]
push edx
call fcn.00404f00
add esp, 0x28
cmp dword [esi + 0x181], 0
jne 0x406b07
push 0x3e8
mov ecx, esi
call fcn.00412442
test eax, eax
je 0x406a8e
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
push ecx
push eax
call edi
push 0x3ea
mov ecx, esi
call fcn.00412442
test eax, eax
je 0x406aaf
mov eax, dword [eax + 0x20]
mov edx, dword [esp + 0x1c]
push edx
push eax
call edi
push 0
lea ecx, [esi + 0x331]
call fcn.004125b4
push 0
lea ecx, [esi + 0x385]
call fcn.004125b4
push 0
lea ecx, [esi + 0x3d9]
call fcn.004125b4
push 0
lea ecx, [esi + 0x42d]
call fcn.004125b4
push 0
lea ecx, [esi + 0x481]
call fcn.004125b4
push 0
lea ecx, [esi + 0x4d5]
call fcn.004125b4
jmp 0x406b39
mov eax, dword [esp + 0x18]
push eax
push str.Firmware_version_read_back:
push 0x494320
call fcn.00403c50
add esp, 8
push eax
call fcn.00403c50
add esp, 8
mov edi, eax
push 0xa
mov ecx, edi
call fcn.00403e60
mov ecx, edi
call fcn.00403aa0
push 0
mov ecx, ebx
call fcn.00402a40
cmp dword [esi + 0x181], 0
jne 0x406b64
push ebp
lea ecx, [esi + 0x235]
call fcn.004125f0
push 0
lea ecx, [esi + 0x1e1]
call fcn.004125f0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x47c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x47c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406bb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x474]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x45c]
xor ecx, esp
call fcn.00427b8d
add esp, 0x46c
ret
push esi
mov esi, ecx
mov dword [esi + 0x185], 1
call fcn.004054c0
cmp dword [esi + 0x185], 1
jne 0x406c03
mov ecx, esi
pop esi
jmp 0x405e90
pop esi
ret