Function at 0x40a2a0
Capabilities:
Accept command line arguments
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454316
mov eax, dword fs:[0]
push eax
mov eax, 0x12f4
call fcn.0043faf0
mov eax, dword [0x46c99c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1288], ecx
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, dword [ebp - 0x1288]
call fcn.00428aa8
push 0
call fcn.0042ab4e
add esp, 4
mov eax, dword [ebp - 0x1288]
mov dword [eax + 0xa4], 0
lea ecx, [ebp - 0x14]
call fcn.004072b0
mov dword [ebp - 4], 0
mov dword [ebp - 0x11f8], 0
mov dword [ebp - 0x11fc], 0
push 0
lea ecx, [ebp - 0x11ec]
call fcn.0040c7e0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1288]
lea edx, [ebp - 0x11ec]
mov dword [ecx + 0x20], edx
push 0xac
push 0
lea eax, [ebp - 0xe8]
push eax
call fcn.0043d340
add esp, 0xc
push 0xa
push 0x67
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x11f4], eax
cmp dword [ebp - 0x11f4], 0
je 0x40a3df
push 0xa
push 0x40e
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x11f4], eax
cmp dword [ebp - 0x11f4], 0
jne 0x40a3a2
push 0
push 0
push str.option_resource_load_failed
call fcn.00427f58
jmp 0x40a3df
mov ecx, dword [ebp - 0x11f4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x11f0], eax
mov edx, dword [ebp - 0x11f0]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
push 0xac
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0xe8]
push ecx
call fcn.0043d4e0
add esp, 0xc
lea edx, [ebp - 0x11ec]
push edx
mov ecx, dword [ebp - 0x1288]
call fcn.0040bc40
cmp dword [ebp - 0x60], 1
jne 0x40a401
mov dword [ebp - 0x11f8], 0xffffffff
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x14]
call fcn.00404c50
cmp dword [ebp - 0x11f8], 0xffffffff
je 0x40b027
lea ecx, [ebp - 0x120c]
call fcn.004072b0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x11f8]
push eax
push 0x2f
lea ecx, [ebp - 0x14]
call fcn.0040bfe0
mov dword [ebp - 0x11f8], eax
cmp dword [ebp - 0x11f8], 0xffffffff
jne 0x40a483
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120c]
call fcn.004066f0
jmp 0x40b027
mov ecx, dword [ebp - 0x11f8]
push ecx
lea edx, [ebp - 0x1224]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040c120
mov dword [ebp - 0x128c], eax
mov eax, dword [ebp - 0x128c]
mov dword [ebp - 0x1290], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1290]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00407a20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1224]
call fcn.004066f0
push 0
push 0x20
lea ecx, [ebp - 0x14]
call fcn.0040bfe0
mov dword [ebp - 0x1200], eax
push 0
push 9
lea ecx, [ebp - 0x14]
call fcn.0040bfe0
mov dword [ebp - 0x1208], eax
push 0
push 0x3b
lea ecx, [ebp - 0x14]
call fcn.0040bfe0
mov dword [ebp - 0x1204], eax
cmp dword [ebp - 0x1200], 0xffffffff
jne 0x40a521
cmp dword [ebp - 0x1208], 0xffffffff
jne 0x40a521
mov dword [ebp - 0x11f8], 0xffffffff
jmp 0x40a589
cmp dword [ebp - 0x1200], 0xffffffff
jne 0x40a541
cmp dword [ebp - 0x1208], 0xffffffff
je 0x40a541
mov edx, dword [ebp - 0x1208]
mov dword [ebp - 0x11f8], edx
jmp 0x40a589
cmp dword [ebp - 0x1200], 0xffffffff
je 0x40a561
cmp dword [ebp - 0x1208], 0xffffffff
jne 0x40a561
mov eax, dword [ebp - 0x1200]
mov dword [ebp - 0x11f8], eax
jmp 0x40a589
mov ecx, dword [ebp - 0x1200]
cmp ecx, dword [ebp - 0x1208]
jge 0x40a57d
mov edx, dword [ebp - 0x1200]
mov dword [ebp - 0x11f8], edx
jmp 0x40a589
mov eax, dword [ebp - 0x1208]
mov dword [ebp - 0x11f8], eax
push 0x459120
push 5
lea ecx, [ebp - 0x122c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040c240
mov dword [ebp - 0x1294], eax
mov edx, dword [ebp - 0x1294]
mov dword [ebp - 0x1298], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1298]
call fcn.0040bf60
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x1225], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x122c]
call fcn.004066f0
movzx eax, byte [ebp - 0x1225]
test eax, eax
je 0x40a61a
push 0
push 0x3b
lea ecx, [ebp - 0x14]
call fcn.0040bfe0
mov dword [ebp - 0x1204], eax
cmp dword [ebp - 0x1204], 0xffffffff
jne 0x40a60e
mov dword [ebp - 0x11f8], 0xffffffff
jmp 0x40a61a
mov ecx, dword [ebp - 0x1204]
mov dword [ebp - 0x11f8], ecx
cmp dword [ebp - 0x11f8], 0xffffffff
je 0x40a674
mov edx, dword [ebp - 0x11f8]
push edx
push 0
lea eax, [ebp - 0x1230]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c160
mov dword [ebp - 0x129c], eax
mov ecx, dword [ebp - 0x129c]
mov dword [ebp - 0x12a0], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x12a0]
push edx
lea ecx, [ebp - 0x120c]
call fcn.00407a20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1230]
call fcn.004066f0
jmp 0x40a683
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x120c]
call fcn.00407a20
push 0x459128
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40a6af
movzx ecx, byte [ebp - 0x73]
cmp ecx, 1
jne 0x40a6aa
mov dword [ebp - 0x88], 1
jmp 0x40b013
push 0x45912c
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40a6d6
mov dword [ebp - 0xe4], 1
mov byte [ebp - 0x74], 0xe
jmp 0x40b013
push str._nvm
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40a6f9
mov dword [ebp - 0xe0], 1
jmp 0x40b013
push 0x459138
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40a71c
mov dword [ebp - 0x88], 1
jmp 0x40b013
push 0x45913c
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40a74f
cmp dword [ebp - 0x80], 1
jne 0x40a74a
mov dword [ebp - 0xd8], 1
mov dword [ebp - 0x11f8], 0xffffffff
jmp 0x40b013
push 0x459140
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40a785
movzx edx, byte [ebp - 0x93]
cmp edx, 1
jne 0x40a780
mov dword [ebp - 0x11fc], 1
mov dword [ebp - 0x78], 0
jmp 0x40b013
push str._BGhp
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40a7a5
mov byte [ebp - 0x93], 1
jmp 0x40b013
push str._BGasus
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40a7c5
mov byte [ebp - 0x93], 2
jmp 0x40b013
push str._BGmemo
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40a7e5
mov byte [ebp - 0x93], 3
jmp 0x40b013
push str._lcd:
push 5
lea eax, [ebp - 0x1238]
push eax
lea ecx, [ebp - 0x120c]
call fcn.0040c240
mov dword [ebp - 0x12a4], eax
mov ecx, dword [ebp - 0x12a4]
mov dword [ebp - 0x12a8], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x12a8]
call fcn.0040bf60
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x1231], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1238]
call fcn.004066f0
movzx edx, byte [ebp - 0x1231]
test edx, edx
je 0x40aac1
lea ecx, [ebp - 0x1214]
call fcn.004072b0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1210]
call fcn.004072b0
mov byte [ebp - 4], 8
push 0
push 0x459164
lea ecx, [ebp - 0x120c]
call fcn.0040c050
cmp eax, 0xffffffff
je 0x40a8f6
push 0
push 0x459168
lea ecx, [ebp - 0x120c]
call fcn.0040c050
push eax
lea ecx, [ebp - 0x120c]
call fcn.004051a0
push eax
lea ecx, [ebp - 0x1214]
call fcn.004050d0
push 5
lea eax, [ebp - 0x123c]
push eax
lea ecx, [ebp - 0x1214]
call fcn.0040c120
mov dword [ebp - 0x12ac], eax
mov ecx, dword [ebp - 0x12ac]
mov dword [ebp - 0x12b0], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x12b0]
push edx
lea ecx, [ebp - 0x1214]
call fcn.00407a20
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x123c]
call fcn.004066f0
jmp 0x40a941
push 5
lea eax, [ebp - 0x1240]
push eax
lea ecx, [ebp - 0x120c]
call fcn.0040c120
mov dword [ebp - 0x12b4], eax
mov ecx, dword [ebp - 0x12b4]
mov dword [ebp - 0x12b8], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x12b8]
push edx
lea ecx, [ebp - 0x1214]
call fcn.00407a20
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1240]
call fcn.004066f0
lea eax, [ebp - 0x11ec]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x1244], esp
lea edx, [ebp - 0x1214]
push edx
call fcn.004066d0
mov dword [ebp - 0x12bc], eax
mov ecx, dword [ebp - 0x1288]
call fcn.0040b0e0
mov dword [ebp - 0x12c0], eax
mov eax, dword [ebp - 0x12c0]
mov dword [ebp - 0x1218], eax
cmp dword [ebp - 0x1218], 0
je 0x40aa9e
mov byte [ebp - 0xd0], 0
lea ecx, [ebp - 0x121c]
call fcn.004072b0
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x1218], 1
jne 0x40a9be
push str.no_option_specifiied
lea ecx, [ebp - 0x121c]
call fcn.00404c50
jmp 0x40aa3a
cmp dword [ebp - 0x1218], 2
jne 0x40a9d9
push str.options_are_disordered
lea ecx, [ebp - 0x121c]
call fcn.00404c50
jmp 0x40aa3a
cmp dword [ebp - 0x1218], 3
jne 0x40a9f4
push str.some_of_option_is_too_long
lea ecx, [ebp - 0x121c]
call fcn.00404c50
jmp 0x40aa3a
cmp dword [ebp - 0x1218], 4
jne 0x40aa0f
push str.FW_A_and_FW_B_are_the_same_model_name
lea ecx, [ebp - 0x121c]
call fcn.00404c50
jmp 0x40aa3a
cmp dword [ebp - 0x1218], 5
jne 0x40aa2a
push str.no_model_name_is_specified
lea ecx, [ebp - 0x121c]
call fcn.00404c50
jmp 0x40aa3a
push str.unspecified_error
lea ecx, [ebp - 0x121c]
call fcn.00404c50
push 0x10
push 0
lea ecx, [ebp - 0x121c]
push ecx
push str.Limited_crossdownload_setting_failed_n_n
lea edx, [ebp - 0x1248]
push edx
call fcn.0040c2c0
add esp, 0xc
mov dword [ebp - 0x12c4], eax
mov eax, dword [ebp - 0x12c4]
mov dword [ebp - 0x12c8], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x12c8]
call fcn.004051a0
push eax
call fcn.00427f58
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1248]
call fcn.004066f0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x121c]
call fcn.004066f0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1210]
call fcn.004066f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1214]
call fcn.004066f0
jmp 0x40b013
push str._rv:
push 4
lea ecx, [ebp - 0x1250]
push ecx
lea ecx, [ebp - 0x120c]
call fcn.0040c240
mov dword [ebp - 0x12cc], eax
mov edx, dword [ebp - 0x12cc]
mov dword [ebp - 0x12d0], edx
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x12d0]
call fcn.0040bf60
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x1249], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1250]
call fcn.004066f0
movzx eax, byte [ebp - 0x1249]
test eax, eax
je 0x40abc1
lea ecx, [ebp - 0x1220]
call fcn.004072b0
mov byte [ebp - 4], 0xe
push 4
lea ecx, [ebp - 0x1254]
push ecx
lea ecx, [ebp - 0x120c]
call fcn.0040c120
mov dword [ebp - 0x12d4], eax
mov edx, dword [ebp - 0x12d4]
mov dword [ebp - 0x12d8], edx
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x12d8]
push eax
lea ecx, [ebp - 0x1220]
call fcn.00407a20
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x1254]
call fcn.004066f0
lea ecx, [ebp - 0x11ec]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x1258], esp
lea edx, [ebp - 0x1220]
push edx
call fcn.004066d0
mov dword [ebp - 0x12dc], eax
mov ecx, dword [ebp - 0x1288]
call fcn.0040b8d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1220]
call fcn.004066f0
jmp 0x40b013
push str._nuc:
push 5
lea eax, [ebp - 0x1260]
push eax
lea ecx, [ebp - 0x120c]
call fcn.0040c240
mov dword [ebp - 0x12e0], eax
mov ecx, dword [ebp - 0x12e0]
mov dword [ebp - 0x12e4], ecx
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x12e4]
call fcn.0040bf60
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x1259], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1260]
call fcn.004066f0
movzx edx, byte [ebp - 0x1259]
test edx, edx
je 0x40ac63
push 5
lea eax, [ebp - 0x1264]
push eax
lea ecx, [ebp - 0x120c]
call fcn.0040c120
mov dword [ebp - 0x12e8], eax
mov ecx, dword [ebp - 0x12e8]
call fcn.004051a0
push eax
call fcn.0043fadf
add esp, 4
mov byte [ebp - 0x74], al
lea ecx, [ebp - 0x1264]
call fcn.004066f0
jmp 0x40b013
push str._toid:
push 6
lea ecx, [ebp - 0x126c]
push ecx
lea ecx, [ebp - 0x120c]
call fcn.0040c240
mov dword [ebp - 0x12ec], eax
mov edx, dword [ebp - 0x12ec]
mov dword [ebp - 0x12f0], edx
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x12f0]
call fcn.0040bf60
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x1265], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x126c]
call fcn.004066f0
movzx eax, byte [ebp - 0x1265]
test eax, eax
je 0x40ad05
push 6
lea ecx, [ebp - 0x1270]
push ecx
lea ecx, [ebp - 0x120c]
call fcn.0040c120
mov dword [ebp - 0x12f4], eax
mov ecx, dword [ebp - 0x12f4]
call fcn.004051a0
push eax
call fcn.0043fadf
add esp, 4
mov byte [ebp - 0x68], al
lea ecx, [ebp - 0x1270]
call fcn.004066f0
jmp 0x40b013
push str._arw
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40ad25
mov dword [ebp - 0x80], 1
jmp 0x40b013
push str._exd
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40ad48
mov dword [ebp - 0x90], 1
jmp 0x40b013
push str._svd
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40ad6b
mov dword [ebp - 0xdc], 1
jmp 0x40b013
push str._asd
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40ad8e
mov dword [ebp - 0x84], 1
jmp 0x40b013
push str._wsd
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40adae
mov byte [ebp - 0xe8], 1
jmp 0x40b013
push str._scb
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40adce
mov dword [ebp - 0x7c], 1
jmp 0x40b013
push 0x459280
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40adf7
cmp dword [ebp - 0x11fc], 0
jne 0x40adf2
mov dword [ebp - 0x78], 1
jmp 0x40b013
push str._crf:LG
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40ae14
mov byte [ebp - 0x73], 1
jmp 0x40b013
push str._crf:ASUS
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40ae31
mov byte [ebp - 0x73], 2
jmp 0x40b013
push str._stayClosed
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40ae5a
movzx edx, byte [ebp - 0x93]
cmp edx, 1
jne 0x40ae55
mov byte [ebp - 0x68], 2
jmp 0x40b013
push str._oea
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40ae7a
mov dword [ebp - 0x5c], 1
jmp 0x40b013
push str._adu
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40ae9a
mov dword [ebp - 0x6c], 1
jmp 0x40b013
push 0x4592b4
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
je 0x40aed6
push 0x4592b8
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
je 0x40aed6
push 0x4592bc
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40af37
movzx eax, byte [ebp - 0x93]
cmp eax, 1
jne 0x40af32
push 0
push 0
push str._Option_List__n____or__h_:_Help_n__f_:_Update_F_W_regardless_of_F_W_version_n__stayClosed_:_Do_not_open_tray_during_update_n_n_Error_Levels__n_0_:_Success__no_reboot_required._n_259_:_Failed_to_install_firmware._n_3010_:_Success__reboot_required.
call fcn.00427f58
mov dword [ebp - 0x1274], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120c]
call fcn.004066f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11ec]
call fcn.0040bd50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004066f0
mov eax, dword [ebp - 0x1274]
jmp 0x40b0c2
jmp 0x40b013
push str._nas
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40af57
mov dword [ebp - 0x44], 1
jmp 0x40b013
push str._silent
lea ecx, [ebp - 0x120c]
call fcn.0040bfb0
test eax, eax
jne 0x40af77
mov dword [ebp - 0x30], 1
jmp 0x40b013
push str._output
push 7
lea ecx, [ebp - 0x127c]
push ecx
lea ecx, [ebp - 0x120c]
call fcn.0040c240
mov dword [ebp - 0x12f8], eax
mov ecx, dword [ebp - 0x12f8]
call fcn.0040bfb0
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x1275], al
lea ecx, [ebp - 0x127c]
call fcn.004066f0
movzx edx, byte [ebp - 0x1275]
test edx, edx
je 0x40b013
mov dword [ebp - 0x2c], 1
push 8
lea eax, [ebp - 0x1280]
push eax
lea ecx, [ebp - 0x120c]
call fcn.0040c120
mov dword [ebp - 0x12fc], eax
mov ecx, dword [ebp - 0x12fc]
mov dword [ebp - 0x1300], ecx
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x1300]
push edx
lea ecx, [ebp - 0x28]
call fcn.00407a20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1280]
call fcn.004066f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120c]
call fcn.004066f0
jmp 0x40a433
cmp dword [ebp - 0xd8], 1
je 0x40b039
cmp dword [ebp - 0x88], 1
jne 0x40b04a
lea eax, [ebp - 0x11ec]
push eax
call fcn.00409ee0
add esp, 4
jmp 0x40b055
lea ecx, [ebp - 0x11ec]
call fcn.0041f86e
mov ecx, dword [ebp - 0x1288]
mov edx, dword [ebp - 0x100]
mov dword [ecx + 0xa4], edx
movzx eax, byte [ebp - 0x73]
test eax, eax
je 0x40b094
movzx ecx, word [ebp - 0x54]
mov edx, dword [ebp - 0x1288]
xor eax, eax
cmp dword [edx + 0xa4], ecx
sete al
push eax
lea ecx, [ebp - 0x11ec]
push ecx
call fcn.00409e60
add esp, 8
mov dword [ebp - 0x1284], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11ec]
call fcn.0040bd50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004066f0
mov eax, dword [ebp - 0x1284]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0043d4c7
mov esp, ebp
pop ebp
ret