Function at 0x462390
Capabilities:
Create directory
Print debug messages
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6926
mov eax, dword fs:[0]
push eax
mov eax, 0x416c
call fcn.004ba440
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
mov esi, edx
push SysReAllocString
push esi
mov dword [ebp - 0x4118], eax
mov dword [ebp - 0x4100], ebx
mov dword [ebp - 0x40e4], ecx
mov dword [ebp - 0x40e0], 0x462310
mov dword [ebp - 0x40dc], 0x462330
mov dword [ebp - 0x4124], 0x462350
mov dword [ebp - 0x4120], 0x462370
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4108], eax
cmp eax, 0xffffffff
jne 0x462484
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x462484
push 0x510bc0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, dword [ebp - 0x40e4]
push 5
push 0x510bec
mov ecx, ebx
call fcn.00404960
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x462456
sub eax, edx
sar eax, 1
push eax
mov eax, esi
mov ecx, ebx
call fcn.00403f00
push 2
mov eax, 0x510bf8
mov ecx, ebx
call fcn.00403f00
xor al, al
jmp 0x462f8f
lea edx, [ebp - 0x4110]
mov dword [ebp - 0x4110], 0x463f60
mov dword [ebp - 0x410c], 0x463f90
mov dword [ebp - 0x40d8], 0x464230
mov dword [ebp - 0x40d4], 0x464290
mov dword [ebp - 0x40d0], 0x4642a0
mov dword [ebp - 0x40cc], 0x464300
mov dword [ebp - 0x40c8], edx
mov dword [ebp - 0x40c0], edi
mov dword [ebp - 0x40c4], edi
call fcn.00464420
lea eax, [ebp - 0x40d8]
push eax
lea ecx, [ebp - 0x4178]
push ecx
lea edx, [ebp - 0x4124]
lea ecx, [ebp - 0x40e0]
mov dword [ebp - 0x4178], edi
mov dword [ebp - 0x4174], edi
mov dword [ebp - 0x4170], edi
mov dword [ebp - 0x416c], edi
mov dword [ebp - 0x4168], edi
mov dword [ebp - 0x4164], edi
mov dword [ebp - 0x4160], edi
mov dword [ebp - 0x415c], edi
mov dword [ebp - 0x4148], edi
mov dword [ebp - 0x4144], edi
mov dword [ebp - 0x4140], edi
mov dword [ebp - 0x413c], edi
mov dword [ebp - 0x4138], edi
mov dword [ebp - 0x4134], edi
mov dword [ebp - 0x4130], edi
call fcn.00466900
mov esi, eax
add esp, 8
cmp esi, edi
je 0x462572
lea edi, [ebp - 0x40e0]
lea eax, [ebp - 0x4178]
call fcn.00464890
xor edi, edi
mov dword [ebp - 0x40e8], esi
cmp esi, edi
je 0x4625ce
lea edi, [ebp - 0x40e0]
lea eax, [ebp - 0x4178]
call fcn.00464890
mov eax, dword [ebp - 0x4108]
cmp eax, 0xffffffff
je 0x4625b5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4625ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4625b5
mov dword [ebp - 0x4108], 0xffffffff
mov ecx, dword [ebp - 0x40e4]
push 0x14
push str.SzArEx_Open
call fcn.00404960
xor al, al
jmp 0x462f8f
xor esi, esi
mov dword [ebp - 0x4114], 0xffffffff
mov dword [ebp - 0x40fc], edi
mov dword [ebp - 0x411c], edi
mov dword [ebp - 0x40ec], esi
cmp dword [ebp - 0x415c], edi
jbe 0x462eba
mov edi, dword [ebx]
test edi, edi
je 0x462643
mov edx, esi
mov dword [ebp - 0x40f8], edx
fild dword [ebp - 0x40f8]
test edx, edx
jns 0x462616
fadd dword [0x510db8]
mov eax, dword [ebp - 0x415c]
fild dword [ebp - 0x415c]
test eax, eax
jns 0x46262c
fadd dword [0x510db8]
fdivp st(1)
fmul qword [0x510db0]
call fcn.004ba5c0
mov ecx, dword [ebx + 4]
push ecx
push eax
call edi
add esp, 8
mov ecx, dword [ebp - 0x4138]
mov eax, esi
shl eax, 5
add eax, dword [ebp - 0x4168]
lea edi, [ecx + esi*4 + 4]
mov dword [ebp - 0x40f8], eax
mov eax, dword [edi]
sub eax, dword [ecx + esi*4]
je 0x462cbb
lea esi, [eax + eax + 2]
test esi, esi
je 0x462cdc
push esi
call fcn.004b2b1c
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x462cdc
push esi
push 0
push ebx
call fcn.004b96b0
mov edx, dword [ebp - 0x4138]
mov eax, dword [ebp - 0x40ec]
mov eax, dword [edx + eax*4]
mov ecx, dword [edi]
mov edx, dword [ebp - 0x4134]
add esp, 0xc
sub ecx, eax
lea edx, [edx + eax*2]
je 0x4626c3
mov eax, ebx
sub edx, ebx
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
dec ecx
jne 0x4626b6
xor esi, esi
xor eax, eax
mov word [ebp - 0x2c], ax
mov edi, 7
mov eax, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
lea edx, [eax + 2]
jmp 0x4626e0
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4626e0
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00404960
mov dword [ebp - 4], esi
xor eax, eax
cmp dword [ebp - 0x1c], esi
jbe 0x46273e
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
lea esp, [esp]
mov edx, ecx
cmp esi, 8
jae 0x46271a
lea edx, [ebp - 0x2c]
cmp word [edx + eax*2], 0x2f
jne 0x462738
cmp esi, 8
jae 0x462729
lea ecx, [ebp - 0x2c]
mov edx, 0x5c
mov word [ecx + eax*2], dx
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, dword [ebp - 0x1c]
jb 0x462710
push ebx
call fcn.004b2f65
mov esi, dword [ebp - 0x4118]
add esp, 4
xor eax, eax
mov word [ebp - 0x48], ax
mov eax, esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x462762
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00404960
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x38]
lea eax, [ecx - 1]
cmp ecx, eax
jbe 0x462cfd
mov ecx, dword [ebp - 0x48]
mov ebx, 8
cmp dword [ebp - 0x34], ebx
jae 0x46279d
lea ecx, [ebp - 0x48]
cmp word [ecx + eax*2], 0x5c
je 0x4627b3
push 1
mov eax, 0x5062dc
lea ecx, [ebp - 0x48]
call fcn.00403f00
push 0
lea ecx, [ebp - 0x2c]
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x48]
call fcn.00403e00
lea edx, [ebp - 0x4124]
push edx
lea eax, [ebp - 0x40e0]
push eax
lea ecx, [ebp - 0x40f4]
push ecx
lea edx, [ebp - 0x4104]
push edx
lea eax, [ebp - 0x411c]
push eax
mov eax, dword [ebp - 0x40ec]
lea ecx, [ebp - 0x40fc]
push ecx
lea edx, [ebp - 0x4114]
push edx
push eax
lea ecx, [ebp - 0x40d8]
xor esi, esi
push ecx
lea eax, [ebp - 0x4178]
mov dword [ebp - 0x4104], esi
mov dword [ebp - 0x40f4], esi
call fcn.00466cf0
add esp, 0x24
mov dword [ebp - 0x40e8], eax
cmp eax, esi
jne 0x462d07
mov edx, dword [ebp - 0x40f8]
cmp byte [edx + 0x19], 0
je 0x46288a
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x462844
lea eax, [ebp - 0x48]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, 0xa1
je 0x462d5e
cmp eax, 0xce
je 0x462d5e
cmp eax, 3
je 0x462d5e
lea ecx, [ebp - 0x48]
call fcn.00404a50
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404a50
jmp 0x462c95
lea eax, [ebp - 0x48]
push eax
lea edi, [ebp - 0x40f0]
mov dword [ebp - 0x40f0], 0x5c
call fcn.00406990
cmp eax, 0xffffffff
je 0x4628e0
push eax
push 0
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00403cb0
mov eax, dword [ebp - 0x64]
mov esi, ebx
cmp dword [ebp - 0x50], esi
jae 0x4628c4
lea eax, [ebp - 0x64]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [ebp - 0x50], esi
jb 0x4628e0
mov edx, dword [ebp - 0x64]
push edx
call fcn.004b1676
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor edi, edi
jmp 0x4628f0
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4628fc
lea eax, [ebp - 0x48]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x40f0], esi
cmp esi, 0xffffffff
jne 0x462a75
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x462a75
mov eax, dword [ebp - 0x4100]
mov eax, dword [eax + 8]
test eax, eax
je 0x46295b
mov ecx, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x46294d
lea ecx, [ebp - 0x2c]
push ecx
call eax
add esp, 4
test eax, eax
jne 0x462a27
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 3
jl 0x4628f0
lea edx, [ebp - 0x80]
push 0x510ce4
push edx
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x40e8], 9
call fcn.0040add0
push eax
mov eax, 0x510bf8
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.004039a0
add esp, 0xc
mov esi, dword [ebp - 0x40e4]
mov edi, eax
mov byte [ebp - 4], 5
call fcn.00404350
cmp dword [ebp - 0x50], 8
jb 0x4629bf
mov eax, dword [ebp - 0x64]
push eax
call fcn.004b1676
add esp, 4
xor esi, esi
xor ecx, ecx
mov ebx, 7
mov byte [ebp - 4], 1
cmp dword [ebp - 0x6c], 8
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], cx
jb 0x4629e8
mov edx, dword [ebp - 0x80]
push edx
call fcn.004b1676
add esp, 4
mov ecx, dword [ebp - 0x40e4]
call fcn.004042e0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x1c]
push str.XYUpdate.exe
mov edi, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00407850
test eax, eax
jne 0x462e27
push 0x510d18
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x462c4f
cmp dword [ebp - 0x34], esi
jb 0x462a38
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b1676
add esp, 4
xor edi, edi
xor edx, edx
mov esi, 7
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], dx
jb 0x462a64
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b1676
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
jmp 0x462c95
mov edx, dword [ebp - 0x40fc]
mov ebx, dword [ebp - 0x40f4]
mov eax, dword [ebp - 0x4104]
lea ecx, [ebp - 0x40f0]
lea eax, [eax + edx]
push ecx
lea edi, [ebp - 0x40f4]
mov dword [ebp - 0x40f4], ebx
call fcn.00463dd0
add esp, 4
test eax, eax
jne 0x462b3d
cmp dword [ebp - 0x40f4], ebx
jne 0x462b3d
cmp esi, 0xffffffff
je 0x462acf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x462acf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x40f8]
cmp byte [ecx + 0x1d], 0
mov ebx, 8
je 0x462af6
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x462aeb
lea eax, [ebp - 0x48]
mov edx, dword [ecx + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x34], ebx
jb 0x462b07
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b1676
add esp, 4
xor edi, edi
xor ecx, ecx
mov esi, 7
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], ebx
jb 0x462b32
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b1676
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
jmp 0x462c8f
push str.can_not_write_output_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 0xffffffff
je 0x462b6a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x462b60
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x462b6a
mov dword [ebp - 0x40f0], 0xffffffff
lea ecx, [ebp - 0x9c]
push 0x510d5c
push ecx
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x40e8], 9
call fcn.0040add0
push eax
mov eax, 0x510bf8
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 6
call fcn.004039a0
add esp, 0xc
mov esi, dword [ebp - 0x40e4]
mov ebx, 7
mov edi, eax
mov byte [ebp - 4], bl
call fcn.00404350
mov edi, 8
cmp dword [ebp - 0xa4], edi
jb 0x462bd1
mov edx, dword [ebp - 0xb8]
push edx
call fcn.004b1676
add esp, 4
xor esi, esi
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], esi
mov word [ebp - 0xb8], ax
cmp dword [ebp - 0x88], edi
jb 0x462c03
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004b1676
add esp, 4
mov eax, dword [ebp - 0x1c]
xor edx, edx
push str.XYUpdate.exe
lea edi, [edx + 0xc]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], esi
mov word [ebp - 0x9c], dx
call fcn.00407850
test eax, eax
jne 0x462e74
mov eax, dword [ebp - 0x40f0]
cmp eax, 0xffffffff
je 0x462c4f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x462c4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x462c65
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b1676
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor ecx, ecx
mov word [ebp - 0x48], cx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x18], edi
jb 0x462c89
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b1676
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x40ec]
inc eax
mov dword [ebp - 0x40ec], eax
cmp eax, dword [ebp - 0x415c]
jae 0x462eba
mov ebx, dword [ebp - 0x4100]
mov esi, eax
jmp 0x4625f8
mov ecx, dword [ebp - 0x40e4]
push 0x19
push str.SzArEx_GetFileNameUtf16
mov dword [ebp - 0x40e8], 8
call fcn.00404960
jmp 0x462eba
mov ecx, dword [ebp - 0x40e4]
push 9
push str.SzAlloc
mov dword [ebp - 0x40e8], 2
call fcn.00404960
jmp 0x462eba
push str.invalid_string_position
call fcn.0046b1a1
mov ecx, dword [ebp - 0x40e4]
push 0x10
push str.SzArEx_Extract
call fcn.00404960
cmp dword [ebp - 0x34], ebx
jb 0x462d2a
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b1676
add esp, 4
xor esi, esi
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x18], ebx
jb 0x462d50
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b1676
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov word [ebp - 0x2c], cx
jmp 0x462eb7
push str.can_not_create_output_folder_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [ebp - 0x80]
push 0x510cd4
push edx
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x40e8], 9
call fcn.0040add0
push eax
mov eax, 0x510bf8
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.004039a0
add esp, 0xc
mov esi, dword [ebp - 0x40e4]
mov edi, eax
mov byte [ebp - 4], 3
call fcn.00404350
mov ebx, 8
cmp dword [ebp - 0x50], ebx
jb 0x462dc0
mov eax, dword [ebp - 0x64]
push eax
call fcn.004b1676
add esp, 4
xor esi, esi
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x6c], ebx
jb 0x462de4
mov edx, dword [ebp - 0x80]
push edx
call fcn.004b1676
add esp, 4
cmp dword [ebp - 0x34], ebx
jb 0x462df5
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b1676
add esp, 4
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], ebx
jb 0x462e19
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b1676
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov word [ebp - 0x2c], ax
jmp 0x462eb7
push 0x510d0c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x462e48
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b1676
add esp, 4
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x18], edi
jb 0x462e6c
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b1676
add esp, 4
xor ecx, ecx
mov word [ebp - 0x2c], cx
jmp 0x462eb4
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x462e8a
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b1676
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], edi
jb 0x462eae
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b1676
add esp, 4
xor edx, edx
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x40fc]
push eax
lea ecx, [ebp - 0x40e0]
push ecx
call dword [ebp - 0x40dc]
mov edx, dword [ebp - 0x4148]
push edx
lea eax, [ebp - 0x40e0]
push eax
call dword [ebp - 0x40dc]
mov ecx, dword [ebp - 0x4144]
push ecx
lea edx, [ebp - 0x40e0]
push edx
call dword [ebp - 0x40dc]
mov eax, dword [ebp - 0x4140]
push eax
lea ecx, [ebp - 0x40e0]
push ecx
call dword [ebp - 0x40dc]
mov edx, dword [ebp - 0x413c]
push edx
lea eax, [ebp - 0x40e0]
push eax
call dword [ebp - 0x40dc]
mov ecx, dword [ebp - 0x4138]
push ecx
lea edx, [ebp - 0x40e0]
push edx
call dword [ebp - 0x40dc]
mov eax, dword [ebp - 0x4134]
push eax
lea ecx, [ebp - 0x40e0]
push ecx
call dword [ebp - 0x40dc]
xor edi, edi
add esp, 0x38
lea eax, [ebp - 0x40e0]
lea esi, [ebp - 0x4178]
mov dword [ebp - 0x4134], edi
mov dword [ebp - 0x4130], edi
call fcn.004647d0
mov eax, dword [ebp - 0x4108]
cmp eax, 0xffffffff
je 0x462f84
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x462f84
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
cmp dword [ebp - 0x40e8], edi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret