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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb956
mov eax, dword fs:[0]
push eax
mov eax, 0x416c
call fcn.004beed0
mov eax, dword [0x5441b4]
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], 0x466c60
mov dword [ebp - 0x40dc], 0x466c80
mov dword [ebp - 0x4124], 0x466ca0
mov dword [ebp - 0x4120], 0x466cc0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4108], eax
cmp eax, 0xffffffff
jne 0x466dd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x466dd4
push 0x516018
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, dword [ebp - 0x40e4]
push 5
push 0x516044
mov ecx, ebx
call fcn.004073c0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x466da6
sub eax, edx
sar eax, 1
push eax
mov eax, esi
mov ecx, ebx
call fcn.004065e0
push 2
mov eax, 0x516050
mov ecx, ebx
call fcn.004065e0
xor al, al
jmp 0x4678df
lea edx, [ebp - 0x4110]
mov dword [ebp - 0x4110], 0x4688b0
mov dword [ebp - 0x410c], 0x4688e0
mov dword [ebp - 0x40d8], 0x468b80
mov dword [ebp - 0x40d4], 0x468be0
mov dword [ebp - 0x40d0], 0x468bf0
mov dword [ebp - 0x40cc], 0x468c50
mov dword [ebp - 0x40c8], edx
mov dword [ebp - 0x40c0], edi
mov dword [ebp - 0x40c4], edi
call fcn.00468d70
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.0046b250
mov esi, eax
add esp, 8
cmp esi, edi
je 0x466ec2
lea edi, [ebp - 0x40e0]
lea eax, [ebp - 0x4178]
call fcn.004691e0
xor edi, edi
mov dword [ebp - 0x40e8], esi
cmp esi, edi
je 0x466f1e
lea edi, [ebp - 0x40e0]
lea eax, [ebp - 0x4178]
call fcn.004691e0
mov eax, dword [ebp - 0x4108]
cmp eax, 0xffffffff
je 0x466f05
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x466efb
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x466f05
mov dword [ebp - 0x4108], 0xffffffff
mov ecx, dword [ebp - 0x40e4]
push 0x14
push str.SzArEx_Open
call fcn.004073c0
xor al, al
jmp 0x4678df
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 0x46780a
mov edi, dword [ebx]
test edi, edi
je 0x466f93
mov edx, esi
mov dword [ebp - 0x40f8], edx
fild dword [ebp - 0x40f8]
test edx, edx
jns 0x466f66
fadd dword [0x516210]
mov eax, dword [ebp - 0x415c]
fild dword [ebp - 0x415c]
test eax, eax
jns 0x466f7c
fadd dword [0x516210]
fdivp st(1)
fmul qword [0x516208]
call fcn.004bf050
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 0x46760b
lea esi, [eax + eax + 2]
test esi, esi
je 0x46762c
push esi
call fcn.004b7340
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x46762c
push esi
push 0
push ebx
call fcn.004be120
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 0x467013
mov eax, ebx
sub edx, ebx
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
dec ecx
jne 0x467006
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 0x467030
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x467030
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004073c0
mov dword [ebp - 4], esi
xor eax, eax
cmp dword [ebp - 0x1c], esi
jbe 0x46708e
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
lea esp, [esp]
mov edx, ecx
cmp esi, 8
jae 0x46706a
lea edx, [ebp - 0x2c]
cmp word [edx + eax*2], 0x2f
jne 0x467088
cmp esi, 8
jae 0x467079
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 0x467060
push ebx
call fcn.004b7789
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 0x4670b2
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.004073c0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x38]
lea eax, [ecx - 1]
cmp ecx, eax
jbe 0x46764d
mov ecx, dword [ebp - 0x48]
mov ebx, 8
cmp dword [ebp - 0x34], ebx
jae 0x4670ed
lea ecx, [ebp - 0x48]
cmp word [ecx + eax*2], 0x5c
je 0x467103
push 1
mov eax, 0x50b670
lea ecx, [ebp - 0x48]
call fcn.004065e0
push 0
lea ecx, [ebp - 0x2c]
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x48]
call fcn.004064e0
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.0046b640
add esp, 0x24
mov dword [ebp - 0x40e8], eax
cmp eax, esi
jne 0x467657
mov edx, dword [ebp - 0x40f8]
cmp byte [edx + 0x19], 0
je 0x4671da
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x467194
lea eax, [ebp - 0x48]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, 0xa1
je 0x4676ae
cmp eax, 0xce
je 0x4676ae
cmp eax, 3
je 0x4676ae
lea ecx, [ebp - 0x48]
call fcn.00406760
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00406760
jmp 0x4675e5
lea eax, [ebp - 0x48]
push eax
lea edi, [ebp - 0x40f0]
mov dword [ebp - 0x40f0], 0x5c
call fcn.004041a0
cmp eax, 0xffffffff
je 0x467230
push eax
push 0
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00406370
mov eax, dword [ebp - 0x64]
mov esi, ebx
cmp dword [ebp - 0x50], esi
jae 0x467214
lea eax, [ebp - 0x64]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [ebp - 0x50], esi
jb 0x467230
mov edx, dword [ebp - 0x64]
push edx
call fcn.004b6106
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor edi, edi
jmp 0x467240
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x46724c
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 0x4673c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4673c5
mov eax, dword [ebp - 0x4100]
mov eax, dword [eax + 8]
test eax, eax
je 0x4672ab
mov ecx, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x46729d
lea ecx, [ebp - 0x2c]
push ecx
call eax
add esp, 4
test eax, eax
jne 0x467377
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 3
jl 0x467240
lea edx, [ebp - 0x80]
push 0x51613c
push edx
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x40e8], 9
call fcn.004095e0
push eax
mov eax, 0x516050
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.004044b0
add esp, 0xc
mov esi, dword [ebp - 0x40e4]
mov edi, eax
mov byte [ebp - 4], 5
call fcn.00406400
cmp dword [ebp - 0x50], 8
jb 0x46730f
mov eax, dword [ebp - 0x64]
push eax
call fcn.004b6106
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 0x467338
mov edx, dword [ebp - 0x80]
push edx
call fcn.004b6106
add esp, 4
mov ecx, dword [ebp - 0x40e4]
call fcn.00407550
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.00405550
test eax, eax
jne 0x467777
push 0x516170
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x46759f
cmp dword [ebp - 0x34], esi
jb 0x467388
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b6106
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 0x4673b4
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b6106
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
jmp 0x4675e5
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.00468720
add esp, 4
test eax, eax
jne 0x46748d
cmp dword [ebp - 0x40f4], ebx
jne 0x46748d
cmp esi, 0xffffffff
je 0x46741f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46741f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x40f8]
cmp byte [ecx + 0x1d], 0
mov ebx, 8
je 0x467446
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x46743b
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 0x467457
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b6106
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 0x467482
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b6106
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
jmp 0x4675df
push str.can_not_write_output_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 0xffffffff
je 0x4674ba
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4674b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4674ba
mov dword [ebp - 0x40f0], 0xffffffff
lea ecx, [ebp - 0x9c]
push 0x5161b4
push ecx
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x40e8], 9
call fcn.004095e0
push eax
mov eax, 0x516050
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 6
call fcn.004044b0
add esp, 0xc
mov esi, dword [ebp - 0x40e4]
mov ebx, 7
mov edi, eax
mov byte [ebp - 4], bl
call fcn.00406400
mov edi, 8
cmp dword [ebp - 0xa4], edi
jb 0x467521
mov edx, dword [ebp - 0xb8]
push edx
call fcn.004b6106
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 0x467553
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004b6106
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.00405550
test eax, eax
jne 0x4677c4
mov eax, dword [ebp - 0x40f0]
cmp eax, 0xffffffff
je 0x46759f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46759f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x4675b5
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b6106
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 0x4675d9
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b6106
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 0x46780a
mov ebx, dword [ebp - 0x4100]
mov esi, eax
jmp 0x466f48
mov ecx, dword [ebp - 0x40e4]
push 0x19
push str.SzArEx_GetFileNameUtf16
mov dword [ebp - 0x40e8], 8
call fcn.004073c0
jmp 0x46780a
mov ecx, dword [ebp - 0x40e4]
push 9
push str.SzAlloc
mov dword [ebp - 0x40e8], 2
call fcn.004073c0
jmp 0x46780a
push str.invalid_string_position
call fcn.0046faa7
mov ecx, dword [ebp - 0x40e4]
push 0x10
push str.SzArEx_Extract
call fcn.004073c0
cmp dword [ebp - 0x34], ebx
jb 0x46767a
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b6106
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 0x4676a0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b6106
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov word [ebp - 0x2c], cx
jmp 0x467807
push str.can_not_create_output_folder_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [ebp - 0x80]
push 0x51612c
push edx
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x40e8], 9
call fcn.004095e0
push eax
mov eax, 0x516050
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.004044b0
add esp, 0xc
mov esi, dword [ebp - 0x40e4]
mov edi, eax
mov byte [ebp - 4], 3
call fcn.00406400
mov ebx, 8
cmp dword [ebp - 0x50], ebx
jb 0x467710
mov eax, dword [ebp - 0x64]
push eax
call fcn.004b6106
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 0x467734
mov edx, dword [ebp - 0x80]
push edx
call fcn.004b6106
add esp, 4
cmp dword [ebp - 0x34], ebx
jb 0x467745
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b6106
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 0x467769
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b6106
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov word [ebp - 0x2c], ax
jmp 0x467807
push 0x516164
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x467798
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b6106
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 0x4677bc
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b6106
add esp, 4
xor ecx, ecx
mov word [ebp - 0x2c], cx
jmp 0x467804
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x4677da
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b6106
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 0x4677fe
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b6106
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.00469120
mov eax, dword [ebp - 0x4108]
cmp eax, 0xffffffff
je 0x4678d4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4678d4
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.004b6111
mov esp, ebp
pop ebp
ret