Function at 0x40b210
Capabilities:
Inspect section memory permissions
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x436380
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x448fb0]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov ebx, ecx
xor ebp, ebp
push ebx
lea ecx, [esp + 0xe4]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call fcn.004073e0
mov dword [esp + 0x128], ebp
call fcn.0041583d
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40b28b
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, dword [ebx + 0xd4]
lea edi, [ebx + 0xd4]
mov byte [esp + 0x128], 1
cmp dword [ecx - 0xc], ebp
jne 0x40b2f9
add eax, 0xfffffff0
mov byte [esp + 0x128], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b2d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xe0]
mov dword [esp + 0x128], 0xffffffff
call fcn.00402da0
mov eax, 0x21
jmp 0x40c1ed
mov eax, dword [ebx + 0xd8]
lea esi, [ebx + 0xd8]
mov dword [esp + 0x6c], esi
cmp eax, ebp
je 0x40b318
push eax
call fcn.00422a7d
add esp, 4
mov dword [esi], ebp
mov eax, dword [edi]
push 0x43b45c
push eax
push esi
call fcn.004229b3
mov ecx, dword [esi]
add esp, 0xc
cmp ecx, ebp
je 0x40c1a9
cmp eax, ebp
jne 0x40c1a9
push ecx
push 1
lea ecx, [esp + 0x68]
push 2
push ecx
call fcn.00422e7b
add esp, 0x10
cmp eax, 1
je 0x40b37c
lea ecx, [esp + 0x1c]
call fcn.00402640
lea ecx, [esp + 0xe0]
mov dword [esp + 0x128], 0xffffffff
call fcn.00402da0
mov eax, 0x23
jmp 0x40c1ed
mov edx, 0xfeff
lea ecx, [esp + 0x2c]
cmp word [esp + 0x60], dx
jne 0x40b3f4
push str.__detected_as_Unicode.
call fcn.004046c0
push edi
lea eax, [esp + 0x44]
push str.INFO:_Input_file_for_restore_operation:__
push eax
mov byte [esp + 0x134], 2
call fcn.00403dc0
add esp, 8
mov ecx, esp
mov dword [esp + 0x58], esp
lea edx, [esp + 0x30]
push edx
push eax
push ecx
mov byte [esp + 0x138], 3
call fcn.00403c20
add esp, 0xc
mov ecx, ebx
call fcn.00403f90
lea ecx, [esp + 0x40]
call fcn.00402640
lea ecx, [esp + 0x2c]
mov byte [esp + 0x128], 1
call fcn.00402640
jmp 0x40b480
push str.__detected_as_ANSI.
call fcn.004046c0
push edi
lea eax, [esp + 0x44]
push str.INFO:_Input_file_for_restore_operation:__
push eax
mov byte [esp + 0x134], 4
call fcn.00403dc0
add esp, 8
mov ecx, esp
mov dword [esp + 0x58], esp
lea edx, [esp + 0x30]
push edx
push eax
push ecx
mov byte [esp + 0x138], 5
call fcn.00403c20
add esp, 0xc
mov ecx, ebx
call fcn.00403f90
lea ecx, [esp + 0x40]
call fcn.00402640
lea ecx, [esp + 0x2c]
mov byte [esp + 0x128], 1
call fcn.00402640
mov eax, dword [esi]
push eax
call fcn.00422a7d
mov edi, dword [edi]
push 0x439628
push edi
push esi
call fcn.004229b3
add esp, 0x10
cmp dword [esi], ebp
je 0x40c19e
cmp eax, ebp
jne 0x40c19e
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0xfa00
or eax, ecx
jge 0x40b4aa
push 0xfa00
lea ecx, [esp + 0x20]
call fcn.004026e0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx]
push eax
push 0xfa00
push edx
call fcn.00422b1a
add esp, 0xc
test eax, eax
je 0x40c094
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00421ff5
xor edi, edi
add esp, 8
cmp eax, edi
jl 0x40c194
cmp eax, dword [esi - 8]
jg 0x40c194
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [esp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp eax, edi
je 0x40b509
push eax
call esi
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x40b518
push eax
call esi
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x44]
cmp eax, edi
je 0x40b527
push eax
call esi
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x4c]
cmp eax, edi
je 0x40b536
push eax
call esi
mov dword [esp + 0x4c], edi
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x40b545
push eax
call esi
mov dword [esp + 0x34], edi
mov eax, dword [esp + 0x48]
cmp eax, edi
je 0x40b554
push eax
call esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
call fcn.0041583d
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x40b281
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x128], 6
call fcn.0041583d
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x40b281
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push str._r_n__t
lea ecx, [esp + 0x20]
mov byte [esp + 0x12c], 7
mov dword [esp + 0x28], edi
call fcn.00403aa0
push 0x43b3c4
lea ecx, [esp + 0x20]
call fcn.00403b10
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x40b640
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x128], 6
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b60f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x128], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b480
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b480
jge 0x40b647
or edi, 0xffffffff
jmp 0x40b664
push 0x43b3bc
push ebp
call fcn.0042184b
add esp, 8
cmp eax, edi
jne 0x40b65e
or edi, 0xffffffff
jmp 0x40b664
sub eax, ebp
sar eax, 1
mov edi, eax
push edi
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0x24]
call fcn.00402f40
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 8
call fcn.00403eb0
mov eax, dword [esp + 0xac]
add eax, 0xfffffff0
mov byte [esp + 0x128], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b6b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xc]
lea esi, [edi + 2]
test esi, esi
jl 0x40b6e8
cmp esi, eax
jg 0x40b6e8
lea ecx, [ebp + esi*2]
push 0x43b3b4
push ecx
call fcn.0042184b
add esp, 8
test eax, eax
je 0x40b6e8
sub eax, dword [esp + 0x1c]
sar eax, 1
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40b77c
push esi
push 0x43a9e4
lea ecx, [esp + 0x24]
call fcn.004027d0
mov ebp, eax
mov edx, ebp
sub edx, edi
push edx
push esi
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x28]
call fcn.00402e10
mov eax, dword [eax]
push eax
call fcn.00422b0f
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xd8]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b742
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
sub eax, ebp
dec eax
push eax
lea edx, [esp + 0xdc]
push edx
lea ecx, [esp + 0x24]
call fcn.00402ec0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 9
call fcn.00403eb0
mov eax, dword [esp + 0xd8]
jmp 0x40b7fd
mov ecx, ebp
sub ecx, edi
dec ecx
push ecx
push esi
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0x28]
call fcn.00402e10
mov eax, dword [eax]
push eax
call fcn.00422b0f
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x90]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b7c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
sub eax, ebp
sub eax, 2
push eax
lea edx, [esp + 0xd0]
push edx
lea ecx, [esp + 0x24]
call fcn.00402ec0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 0xa
call fcn.00403eb0
mov eax, dword [esp + 0xcc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x128], 7
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b821
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
call fcn.004038a0
mov ebp, dword [esp + 0x18]
cmp dword [ebp - 0xc], 0
jne 0x40b8a5
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x98]
push str.INFO:_Omitting_SD_of:__
push edx
call fcn.00403dc0
add esp, 8
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.__because_neither_owner__group__DACL_nor_SACL_were_backed_up.
push eax
push ecx
mov byte [esp + 0x138], 0xb
call fcn.00403ce0
add esp, 0xc
mov ecx, ebx
call fcn.00403f90
mov eax, dword [esp + 0x94]
add eax, 0xfffffff0
mov byte [esp + 0x128], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b89d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
jmp 0x40b5ee
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.00402730
add eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [esi], eax
call fcn.00404210
test eax, eax
je 0x40b93b
push str.__because_a_filter_keyword_matched.
lea ecx, [esp + 0x80]
call fcn.004046c0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xc0]
push str.INFO:_Omitting_SD_of:__
push edx
mov byte [esp + 0x134], 0xc
call fcn.00403dc0
add esp, 8
mov ecx, esp
mov dword [esp + 0x2c], esp
lea edx, [esp + 0x80]
push edx
push eax
push ecx
mov byte [esp + 0x138], 0xd
call fcn.00403c20
add esp, 0xc
mov ecx, ebx
call fcn.00403f90
lea ecx, [esp + 0xbc]
call fcn.00402640
lea ecx, [esp + 0x7c]
jmp 0x40c133
push 0x43b2e0
lea ecx, [esp + 0x74]
call fcn.004046c0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xa0]
push str.INFO:_Restoring_SD_of:__
push ecx
mov byte [esp + 0x134], 0xe
call fcn.00403dc0
add esp, 8
mov edx, esp
mov dword [esp + 0x2c], esp
lea ecx, [esp + 0x74]
push ecx
push eax
push edx
mov byte [esp + 0x138], 0xf
call fcn.00403c20
add esp, 0xc
mov ecx, ebx
call fcn.00403f90
lea ecx, [esp + 0x9c]
call fcn.00402640
lea ecx, [esp + 0x70]
call fcn.00402640
lea ecx, [esp + 0x20]
call fcn.004027a0
cmp dword [ebp - 0xc], 0
mov byte [esp + 0x128], 0x10
jl 0x40bbdb
push 0x43b2a4
push ebp
call fcn.0042184b
add esp, 8
test eax, eax
je 0x40ba9f
sub eax, ebp
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x40ba9f
lea esi, [edi + 2]
push esi
push 0x43b2a0
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0x20000000
call fcn.004027d0
lea ecx, [esp + 0x18]
cmp eax, 0xffffffff
je 0x40ba36
sub eax, edi
sub eax, 2
push eax
push esi
lea edx, [esp + 0xe4]
push edx
call fcn.00402e10
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x12c], 0x11
call fcn.00403eb0
lea ecx, [esp + 0xdc]
jmp 0x40ba5d
push esi
lea eax, [esp + 0xa8]
push eax
call fcn.00403bc0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x12c], 0x12
call fcn.00403eb0
lea ecx, [esp + 0xa4]
mov byte [esp + 0x128], 0x10
call fcn.00402640
mov esi, dword [esp + 0x20]
cmp dword [esi - 0xc], 0
jl 0x40ba94
push 0x43b29c
push esi
call fcn.0042184b
add esp, 8
test eax, eax
je 0x40ba94
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
mov eax, 0x80000000
jne 0x40ba98
mov eax, dword [esp + 0x24]
or eax, 4
mov dword [esp + 0x24], eax
cmp dword [ebp - 0xc], 0
jl 0x40bbdb
push 0x43b294
push ebp
call fcn.0042184b
add esp, 8
test eax, eax
je 0x40bb8f
sub eax, ebp
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x40bb8f
or dword [esp + 0x24], 8
lea esi, [edi + 2]
push esi
push 0x43b2a0
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0x10000000
call fcn.004027d0
cmp eax, 0xffffffff
je 0x40bb25
sub eax, edi
sub eax, 2
push eax
push esi
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x24]
call fcn.00402e10
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x12c], 0x13
call fcn.00403eb0
lea ecx, [esp + 0xc4]
jmp 0x40bb50
push esi
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0x20]
call fcn.00403bc0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x12c], 0x14
call fcn.00403eb0
lea ecx, [esp + 0x84]
mov byte [esp + 0x128], 0x10
call fcn.00402640
mov esi, dword [esp + 0x20]
cmp dword [esi - 0xc], 0
jl 0x40bb87
push 0x43b29c
push esi
call fcn.0042184b
add esp, 8
test eax, eax
je 0x40bb87
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
mov eax, 0x40000000
jne 0x40bb8b
mov eax, dword [esp + 0x28]
or dword [esp + 0x24], eax
cmp dword [ebp - 0xc], 0
jl 0x40bbdb
push 0x43b28c
push ebp
call fcn.0042184b
add esp, 8
test eax, eax
je 0x40bbb5
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
je 0x40bbb5
or dword [esp + 0x24], 1
cmp dword [ebp - 0xc], 0
jl 0x40bbdb
push 0x43b284
push ebp
call fcn.0042184b
add esp, 8
test eax, eax
je 0x40bbdb
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
je 0x40bbdb
or dword [esp + 0x24], 2
push 0
lea eax, [esp + 0x3c]
push eax
push 1
push ebp
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x40bcc1
cmp dword [ebx + 0x48], eax
je 0x40c157
push 0x43b280
lea ecx, [esp + 0x84]
call fcn.004046c0
mov byte [esp + 0x128], 0x15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x94]
push ecx
mov ecx, ebx
call fcn.004040b0
mov esi, eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x8c]
push str.ERROR:_Restoring_SD_of__
push eax
mov byte [esp + 0x134], 0x16
call fcn.00403dc0
lea ecx, [esp + 0x8c]
push ecx
push eax
lea edx, [esp + 0xc8]
push edx
mov byte [esp + 0x140], 0x17
call fcn.00403c20
add esp, 0x14
mov ecx, esp
mov dword [esp + 0x2c], esp
push esi
push eax
push ecx
mov byte [esp + 0x138], 0x18
call fcn.00403c20
add esp, 0xc
mov ecx, ebx
call fcn.00403f90
lea ecx, [esp + 0xb4]
call fcn.00402640
lea ecx, [esp + 0x88]
call fcn.00402640
lea ecx, [esp + 0x90]
call fcn.00402640
lea ecx, [esp + 0x80]
call fcn.00402640
jmp 0x40c12f
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x58]
push edx
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0x58]
push ecx
lea edx, [esp + 0x7c]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x70]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7a
je 0x40bdd5
cmp dword [ebx + 0x48], 0
je 0x40c188
push 0x43b280
lea ecx, [esp + 0x78]
call fcn.004046c0
mov byte [esp + 0x128], 0x19
call esi
push eax
lea ecx, [esp + 0xac]
push ecx
mov ecx, ebx
call fcn.004040b0
mov esi, eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xa4]
push str.ERROR:_Restoring_SD_of__
push eax
mov byte [esp + 0x134], 0x1a
call fcn.00403dc0
lea ecx, [esp + 0x80]
push ecx
push eax
lea edx, [esp + 0xac]
push edx
mov byte [esp + 0x140], 0x1b
call fcn.00403c20
add esp, 0x14
mov ecx, esp
mov dword [esp + 0x2c], esp
push esi
push eax
push ecx
mov byte [esp + 0x138], 0x1c
call fcn.00403c20
add esp, 0xc
mov ecx, ebx
call fcn.00403f90
lea ecx, [esp + 0x98]
call fcn.00402640
lea ecx, [esp + 0xa0]
call fcn.00402640
lea ecx, [esp + 0xa8]
call fcn.00402640
lea ecx, [esp + 0x74]
call fcn.00402640
jmp 0x40c12f
mov edx, dword [esp + 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edx
push 0x40
call esi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
push eax
push 0x40
call esi
mov ecx, dword [esp + 0x68]
push ecx
mov edi, eax
push 0x40
mov dword [esp + 0x4c], edi
call esi
mov edx, dword [esp + 0x58]
push edx
mov ebp, eax
push 0x40
mov dword [esp + 0x54], ebp
call esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x5c]
push eax
push 0x40
call esi
mov esi, eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x5c]
push ecx
push esi
lea edx, [esp + 0x60]
push edx
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x50]
push ebp
lea edx, [esp + 0x7c]
push edx
mov edx, dword [esp + 0x54]
push edi
lea eax, [esp + 0x70]
push eax
push ecx
push edx
mov dword [esp + 0x74], esi
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
jne 0x40bf24
cmp dword [ebx + 0x48], eax
je 0x40c157
push 0x43b280
lea ecx, [esp + 0x7c]
call fcn.004046c0
mov byte [esp + 0x128], 0x1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xc4]
push eax
mov ecx, ebx
call fcn.004040b0
mov esi, eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xbc]
push str.ERROR:_Restoring_SD_of__
push edx
mov byte [esp + 0x134], 0x1e
call fcn.00403dc0
lea ecx, [esp + 0x84]
push ecx
push eax
lea edx, [esp + 0xc4]
push edx
mov byte [esp + 0x140], 0x1f
call fcn.00403c20
add esp, 0x14
mov ecx, esp
mov dword [esp + 0x2c], esp
push esi
push eax
push ecx
mov byte [esp + 0x138], 0x20
call fcn.00403c20
add esp, 0xc
mov ecx, ebx
call fcn.00403f90
lea ecx, [esp + 0xb0]
call fcn.00402640
lea ecx, [esp + 0xb8]
call fcn.00402640
lea ecx, [esp + 0xc0]
call fcn.00402640
lea ecx, [esp + 0x78]
call fcn.00402640
jmp 0x40c12f
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, 1
jne 0x40bf4e
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00402810
call fcn.00402dd0
mov ecx, dword [esp + 0x30]
add esp, 4
jmp 0x40bf58
cmp ecx, 4
jne 0x40bf58
mov eax, 1
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x38]
push 0
push esi
push eax
push ebp
push edi
push edx
push ecx
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
call fcn.00402810
lea ecx, [esp + 0x104]
call fcn.0040aba0
mov ecx, dword [esp + 0xf8]
mov dword [esp + 0x30], eax
mov dword [ebx + 0x44], ecx
test eax, eax
je 0x40c12f
push str.__failed_with:
lea ecx, [esp + 0x44]
call fcn.004046c0
mov edx, dword [ebx + 0x44]
push edx
lea eax, [esp + 0x58]
push eax
mov ecx, ebx
mov byte [esp + 0x130], 0x21
call fcn.004040b0
mov esi, eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xd4]
push str.ERROR:_Writing_SD_to__
push edx
mov byte [esp + 0x134], 0x22
call fcn.00403dc0
lea ecx, [esp + 0x4c]
push ecx
push eax
lea edx, [esp + 0xdc]
push edx
mov byte [esp + 0x140], 0x23
call fcn.00403c20
add esp, 0x14
mov ecx, esp
mov dword [esp + 0x2c], esp
push esi
push eax
push ecx
mov byte [esp + 0x138], 0x24
call fcn.00403c20
add esp, 0xc
mov ecx, ebx
call fcn.00403f90
lea ecx, [esp + 0xc8]
call fcn.00402640
lea ecx, [esp + 0xd0]
call fcn.00402640
lea ecx, [esp + 0x54]
call fcn.00402640
lea ecx, [esp + 0x40]
call fcn.00402640
mov eax, dword [ebx + 0x44]
cmp eax, 5
je 0x40c126
cmp eax, 2
je 0x40c126
xor esi, esi
cmp dword [ebx + 0x48], esi
jne 0x40c128
lea ecx, [esp + 0x20]
call fcn.00402640
lea ecx, [esp + 0x18]
call fcn.00402640
lea ecx, [esp + 0x14]
call fcn.00402640
cmp dword [esp + 0x30], 0x2c
jne 0x40c094
mov dword [ebx + 0x44], esi
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x6c]
mov eax, dword [esi]
test eax, eax
je 0x40c0ad
push eax
call fcn.00422a7d
add esp, 4
mov dword [esi], 0
mov eax, dword [esp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x40c0c6
push eax
call esi
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40c0d1
push eax
call esi
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40c0dc
push eax
call esi
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40c0e7
push eax
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40c0f2
push eax
call esi
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40c0fd
push eax
call esi
lea ecx, [esp + 0x1c]
call fcn.00402640
lea ecx, [esp + 0xe0]
mov dword [esp + 0x128], 0xffffffff
call fcn.00402da0
mov eax, dword [esp + 0x30]
jmp 0x40c1ed
xor esi, esi
mov dword [ebx + 0x44], esi
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x20]
call fcn.00402640
lea ecx, [esp + 0x18]
call fcn.00402640
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 1
call fcn.00402640
jmp 0x40b480
mov dword [esp + 0x30], 0x1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x20]
mov dword [ebx + 0x44], eax
call fcn.00402640
lea ecx, [esp + 0x18]
call fcn.00402640
lea ecx, [esp + 0x14]
call fcn.00402640
jmp 0x40c094
mov dword [esp + 0x30], 0x1b
call esi
jmp 0x40c165
push 0x80070057
call fcn.00401090
lea ecx, [esp + 0x1c]
call fcn.00402640
jmp 0x40c1d1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x128], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c1d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xe0]
mov dword [esp + 0x128], 0xffffffff
call fcn.00402da0
mov eax, 0x22
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret