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

Disassembly:
push 0xffffffffffffffff
push 0x470990
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x48b670]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b670]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
call fcn.004194d8
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406714
push 0x80004005
call fcn.00401f50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea eax, [esi + 0x24c]
push str.config.ini
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x8c], ebx
call fcn.0040c5e0
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], 1
call fcn.004037c0
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40677e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x24]
push ecx
lea ebp, [esi - 0x10]
mov dword [esp + 0x24], esp
mov edi, esp
push ebp
call fcn.00403750
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00450740
add esp, 4
cmp eax, ebx
jne 0x4067e9
mov eax, dword [0x4a120c]
cmp eax, ebx
je 0x4067bd
push str.LoadConfig___PathFileExists_failed
push eax
call fcn.00451cb0
add esp, 8
mov dword [esp + 0x80], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067e2
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
xor eax, eax
jmp 0x40749b
xor eax, eax
mov word [esp + 0x2c], ax
mov edi, 7
mov eax, esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406802
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x30]
call fcn.0040dc30
mov byte [esp + 0x80], 2
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x2c]
add ecx, 0x260
push edx
call fcn.0044ffc0
mov byte [esp + 0x80], 0
cmp dword [esp + 0x40], 8
mov bl, al
jb 0x406858
mov eax, dword [esp + 0x2c]
push eax
call fcn.00411474
add esp, 4
xor ecx, ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], cx
test bl, bl
jne 0x4068b2
mov eax, dword [0x4a120c]
test eax, eax
je 0x406886
push str.LoadConfig___Load_file_failed
push eax
call fcn.00451cb0
add esp, 8
mov dword [esp + 0x80], 0xffffffff
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4068ab
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
xor eax, eax
jmp 0x40749b
mov ecx, dword [str.Language]
mov edx, dword [0x47a7c8]
mov eax, dword [0x47a7cc]
mov dword [esp + 0x50], ecx
mov ecx, dword [0x47a7d0]
mov dword [esp + 0x54], edx
mov dx, word [0x47a7d4]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
sub esp, 0x1c
mov ecx, esp
mov word [esp + 0x7c], dx
xor eax, eax
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], 0
mov word [ecx + 4], ax
lea eax, [esp + 0x6c]
mov dword [esp + 0x3c], esp
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x406905
sub eax, esi
sar eax, 1
push eax
lea edx, [esp + 0x70]
push edx
call fcn.0040dc30
mov ecx, dword [esp + 0x38]
add ecx, 0x260
call fcn.0044cee0
mov edi, eax
test edi, edi
jne 0x406968
mov eax, dword [0x4a120c]
test eax, eax
je 0x40694b
push str.LoadConfig___GetSection_Language_failed
push eax
call fcn.00451cb0
add esp, 8
mov dword [esp + 0x80], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x40689e
call fcn.004194d8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406982
push 0x80004005
call fcn.00401f50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
sub esp, 0x1c
mov byte [esp + 0x9c], 3
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.Kinds
call fcn.0040c730
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
call fcn.0044d8e0
mov esi, 8
mov byte [esp + 0x80], 4
cmp dword [eax + 0x18], esi
jb 0x4069d0
mov eax, dword [eax + 4]
jmp 0x4069d3
add eax, 4
push eax
lea edx, [esp + 0x18]
push 0x47a834
push edx
call fcn.00402020
add esp, 0xc
mov byte [esp + 0x80], 3
cmp dword [esp + 0x40], esi
jb 0x406a01
mov eax, dword [esp + 0x2c]
push eax
call fcn.00411474
add esp, 4
mov esi, dword [esp + 0x14]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x24], esp
mov ebx, esp
push esi
call fcn.00403750
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.004546b0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jg 0x406a6e
mov eax, dword [0x4a120c]
test eax, eax
je 0x406a44
push str.LoadConfig___GetKeyValue_kinds_failed
push eax
call fcn.00451cb0
add esp, 8
mov byte [esp + 0x80], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40694b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x40694b
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Selected
call fcn.0040c730
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
call fcn.0044d8e0
mov ebx, 8
mov byte [esp + 0x80], 5
cmp dword [eax + 0x18], ebx
jb 0x406aa4
mov eax, dword [eax + 4]
jmp 0x406aa7
add eax, 4
push eax
lea edx, [esp + 0x18]
push 0x47a834
push edx
call fcn.00402020
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 3
call fcn.0040c770
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00403750
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004546b0
add esp, 4
test eax, eax
jg 0x406b23
mov eax, dword [0x4a120c]
test eax, eax
je 0x406b0a
push str.LoadConfig___GetKeyValue_Selected_failed
push eax
call fcn.00451cb0
add esp, 8
lea ecx, [esp + 0x14]
call fcn.00401dc0
lea ecx, [esp + 0x24]
call fcn.00401dc0
xor eax, eax
jmp 0x40749b
mov ebp, dword [esp + 0x1c]
sub esp, 0x1c
dec al
mov ecx, esp
mov dword [esp + 0x34], esp
push str.LangPath
mov byte [ebp + 0x2a0], al
call fcn.0040c730
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.0044d8e0
mov byte [esp + 0x80], 6
cmp dword [eax + 0x18], ebx
jb 0x406b60
mov eax, dword [eax + 4]
jmp 0x406b63
add eax, 4
push eax
lea ecx, [esp + 0x18]
push 0x47a834
push ecx
call fcn.00402020
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 3
call fcn.0040c770
push 1
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
lea eax, [esp + 0x1c]
push eax
lea eax, [ebp + 0x24c]
push eax
push edx
call fcn.0040c520
lea ecx, [esp + 0x30]
add esp, 0xc
push ecx
call fcn.00450500
add esp, 0xc
lea ebx, [ebp + 0x25c]
push eax
mov ecx, ebx
mov byte [esp + 0x84], 7
call fcn.004037c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 3
call fcn.00401dc0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ebx
call fcn.004035b0
call fcn.00450740
add esp, 4
test eax, eax
jne 0x406c22
mov eax, dword [0x4a120c]
test eax, eax
je 0x406c09
push str.LoadConfig___PathFileExists_LangPath_failed
push eax
call fcn.00451cb0
add esp, 8
lea ecx, [esp + 0x14]
call fcn.00401dc0
lea ecx, [esp + 0x24]
call fcn.00401dc0
xor eax, eax
jmp 0x40749b
lea ecx, [esp + 0x1c]
call fcn.00401d90
lea esi, [esp + 0x44]
call fcn.004074c0
mov byte [esp + 0x80], 9
cmp dword [esp + 0x20], 0
jle 0x406e14
mov esi, 1
lea esp, [esp]
push esi
lea edx, [esp + 0x20]
push str.Lang_dFile
push edx
call fcn.00402020
mov eax, dword [esp + 0x28]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0040c730
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
call fcn.0044d8e0
mov byte [esp + 0x80], 0xa
cmp dword [eax + 0x18], 8
jb 0x406c92
mov eax, dword [eax + 4]
jmp 0x406c95
add eax, 4
push eax
lea edx, [esp + 0x18]
push 0x47a834
push edx
call fcn.00402020
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 9
call fcn.0040c770
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
lea ecx, [esp + 0x18]
push ecx
push ebx
push eax
call fcn.0040c520
add esp, 0xc
call fcn.00450740
add esp, 4
test eax, eax
je 0x406e88
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x48]
call fcn.004037c0
push esi
lea eax, [esp + 0x20]
push str.Lang_dFontName
push eax
call fcn.00402020
mov edx, dword [esp + 0x28]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.0040c730
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.0044d8e0
mov byte [esp + 0x80], 0xb
cmp dword [eax + 0x18], 8
jb 0x406d2f
mov eax, dword [eax + 4]
jmp 0x406d32
add eax, 4
push eax
lea ecx, [esp + 0x18]
push 0x47a834
push ecx
call fcn.00402020
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 9
call fcn.0040c770
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x4c]
call fcn.004037c0
push esi
lea eax, [esp + 0x20]
push str.Lang_dFontSize
push eax
call fcn.00402020
mov edx, dword [esp + 0x28]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.0040c730
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.0044d8e0
mov byte [esp + 0x80], 0xc
cmp dword [eax + 0x18], 8
jb 0x406da6
mov eax, dword [eax + 4]
jmp 0x406da9
add eax, 4
push eax
lea ecx, [esp + 0x18]
push 0x47a834
push ecx
call fcn.00402020
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 9
call fcn.0040c770
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.004035b0
call fcn.004546b0
add esp, 4
mov dword [esp + 0x4c], eax
test eax, eax
ja 0x406df6
mov dword [esp + 0x4c], 9
lea eax, [esp + 0x44]
push eax
lea ecx, [ebp + 0x288]
call fcn.0040c7a0
inc esi
lea ecx, [esi - 1]
cmp ecx, dword [esp + 0x20]
jl 0x406c50
mov edx, dword [0x47aa0c]
mov eax, dword [str.System]
mov ecx, dword [0x47aa08]
sub esp, 0x1c
mov dword [esp + 0x88], edx
mov dword [esp + 0x80], eax
mov ax, word [0x47aa10]
mov dword [esp + 0x84], ecx
lea edx, [esp + 0x80]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov word [esp + 0x90], ax
call fcn.0040c730
lea ecx, [ebp + 0x260]
call fcn.0044cee0
mov edi, eax
test edi, edi
jne 0x406ebb
mov eax, dword [0x4a120c]
test eax, eax
je 0x406ea4
push str.LoadConfig___GetSection_System_failed
push eax
call fcn.00451cb0
add esp, 8
jmp 0x406ea4
mov eax, dword [0x4a120c]
test eax, eax
je 0x406ea4
mov edx, dword [esp + 0x14]
push edx
push str.LoadConfig___PathFileExists__s_failed
push eax
call fcn.00451cb0
add esp, 0xc
lea ecx, [esp + 0x44]
call fcn.00405cb0
lea ecx, [esp + 0x1c]
call fcn.00401dc0
jmp 0x406b0a
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.DEFAULT_DEMO_PATH
call fcn.0040c730
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.0044d8e0
mov ebx, 8
mov byte [esp + 0x80], 0xd
cmp dword [eax + 0x18], ebx
jb 0x406ef1
mov eax, dword [eax + 4]
jmp 0x406ef4
add eax, 4
push eax
lea ecx, [esp + 0x18]
push 0x47a834
push ecx
call fcn.00402020
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 9
call fcn.0040c770
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.004035b0
call fcn.00450740
add esp, 4
lea ecx, [ebp + 0x254]
test eax, eax
jne 0x406f47
push 0x47a404
call fcn.00404850
jmp 0x406f51
lea eax, [esp + 0x14]
push eax
call fcn.004037c0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.USER_DISK_VOLUME
call fcn.0040c730
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
call fcn.0044d8e0
mov byte [esp + 0x80], 0xe
cmp dword [eax + 0x18], ebx
jb 0x406f82
mov eax, dword [eax + 4]
jmp 0x406f85
add eax, 4
push eax
lea edx, [esp + 0x18]
push 0x47a834
push edx
call fcn.00402020
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 9
call fcn.0040c770
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0xb
jle 0x406fea
push 0xb
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040c4a0
push eax
lea ecx, [ebp + 0x258]
mov byte [esp + 0x84], 0xf
call fcn.00403840
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 9
call fcn.00401dc0
jmp 0x406ffa
lea edx, [esp + 0x14]
lea ecx, [ebp + 0x258]
push edx
call fcn.004037c0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.UPGRADE_FW_MODE
call fcn.0040c730
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.0044d8e0
mov byte [esp + 0x80], 0x10
cmp dword [eax + 0x18], ebx
jb 0x40702b
mov eax, dword [eax + 4]
jmp 0x40702e
add eax, 4
push eax
lea ecx, [esp + 0x18]
push 0x47a834
push ecx
call fcn.00402020
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 9
call fcn.0040c770
mov edx, dword [esp + 0x14]
push str.TRUE
push edx
call fcn.00430336
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 8
test eax, eax
jne 0x407089
push 0x3f5
mov ecx, ebp
call fcn.00416fa1
mov eax, dword [eax + 0x20]
push 0
push 1
push 0xf1
push eax
call esi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.PCBA_MODE
call fcn.0040c730
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
call fcn.0044d8e0
mov byte [esp + 0x80], 0x11
cmp dword [eax + 0x18], ebx
jb 0x4070ba
mov eax, dword [eax + 4]
jmp 0x4070bd
add eax, 4
push eax
lea edx, [esp + 0x18]
push 0x47a834
push edx
call fcn.00402020
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 9
call fcn.0040c770
mov eax, dword [esp + 0x14]
push str.TRUE
push eax
call fcn.00430336
add esp, 8
test eax, eax
jne 0x407112
push 0x3f6
mov ecx, ebp
call fcn.00416fa1
mov ecx, dword [eax + 0x20]
push 0
push 1
push 0xf1
push ecx
call esi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.SDBOOT_MODE
call fcn.0040c730
lea edx, [esp + 0x44]
push edx
mov ecx, edi
call fcn.0044d8e0
mov byte [esp + 0x80], 0x12
cmp dword [eax + 0x18], ebx
jb 0x407143
mov eax, dword [eax + 4]
jmp 0x407146
add eax, 4
push eax
lea eax, [esp + 0x18]
push 0x47a834
push eax
call fcn.00402020
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 9
call fcn.0040c770
mov ecx, dword [esp + 0x14]
push str.TRUE
push ecx
call fcn.00430336
add esp, 8
test eax, eax
jne 0x4071da
push 0x3f8
mov ecx, ebp
call fcn.00416fa1
mov edx, dword [eax + 0x20]
push 0
push 1
push 0xf1
push edx
call esi
push 0
push 0x3f5
mov ecx, ebp
call fcn.00416fa1
mov ecx, eax
call fcn.004171c5
push 0
push 0x3f6
mov ecx, ebp
call fcn.00416fa1
mov ecx, eax
call fcn.004171c5
push 0
push 0x3ec
mov ecx, ebp
call fcn.00416fa1
mov ecx, eax
call fcn.004171c5
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.PCBA_HIDE
call fcn.0040c730
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.0044d8e0
mov byte [esp + 0x80], 0x13
cmp dword [eax + 0x18], ebx
jb 0x40720b
mov eax, dword [eax + 4]
jmp 0x40720e
add eax, 4
push eax
lea ecx, [esp + 0x18]
push 0x47a834
push ecx
call fcn.00402020
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 9
call fcn.0040c770
mov edx, dword [esp + 0x14]
push str.TRUE
push edx
call fcn.00430336
add esp, 8
test eax, eax
jne 0x40725c
push eax
push 0x3f6
mov ecx, ebp
call fcn.00416fa1
mov ecx, eax
call fcn.00417183
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.SDBOOT_HIDE
call fcn.0040c730
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.0044d8e0
mov byte [esp + 0x80], 0x14
cmp dword [eax + 0x18], ebx
jb 0x40728d
mov eax, dword [eax + 4]
jmp 0x407290
add eax, 4
push eax
lea ecx, [esp + 0x18]
push 0x47a834
push ecx
call fcn.00402020
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 9
call fcn.0040c770
mov edx, dword [esp + 0x14]
push str.TRUE
push edx
call fcn.00430336
add esp, 8
test eax, eax
jne 0x4072de
push eax
push 0x3f8
mov ecx, ebp
call fcn.00416fa1
mov ecx, eax
call fcn.00417183
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.DEMO_HIDE
call fcn.0040c730
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.0044d8e0
mov byte [esp + 0x80], 0x15
cmp dword [eax + 0x18], ebx
jb 0x40730f
mov eax, dword [eax + 4]
jmp 0x407312
add eax, 4
push eax
lea ecx, [esp + 0x18]
push 0x47a834
push ecx
call fcn.00402020
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 9
call fcn.0040c770
mov edx, dword [esp + 0x14]
push str.TRUE
push edx
call fcn.00430336
add esp, 8
test eax, eax
jne 0x40738a
push eax
push 0x3f0
mov ecx, ebp
call fcn.00416fa1
mov ecx, eax
call fcn.00417183
push 0
push 0x3eb
mov ecx, ebp
call fcn.00416fa1
mov ecx, eax
call fcn.00417183
push 0
push 0x3ec
mov ecx, ebp
call fcn.00416fa1
mov ecx, eax
call fcn.00417183
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.USE_FW_LOADER
call fcn.0040c730
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.0044d8e0
mov byte [esp + 0x80], 0x16
cmp dword [eax + 0x18], ebx
jb 0x4073bb
mov eax, dword [eax + 4]
jmp 0x4073be
add eax, 4
push eax
lea ecx, [esp + 0x18]
push 0x47a834
push ecx
call fcn.00402020
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 9
call fcn.0040c770
mov edx, dword [esp + 0x14]
push str.TRUE
push edx
call fcn.00430336
add esp, 8
test eax, eax
jne 0x407402
mov dword [ebp + 0x2cc], 1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.NOT_UPGRADE_LOADER
call fcn.0040c730
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.0044d8e0
mov byte [esp + 0x80], 0x17
cmp dword [eax + 0x18], ebx
jb 0x407433
mov eax, dword [eax + 4]
jmp 0x407436
add eax, 4
push eax
lea ecx, [esp + 0x18]
push 0x47a834
push ecx
call fcn.00402020
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.0040c770
mov edx, dword [esp + 0x14]
push str.TRUE
push edx
call fcn.00430336
add esp, 8
test eax, eax
jne 0x407472
mov dword [ebp + 0x2d0], 1
lea ecx, [esp + 0x44]
call fcn.00405cb0
lea ecx, [esp + 0x1c]
call fcn.00401dc0
lea ecx, [esp + 0x14]
call fcn.00401dc0
lea ecx, [esp + 0x24]
call fcn.00401dc0
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0042fc9e
add esp, 0x70
ret