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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efc36
mov eax, dword fs:[0]
push eax
mov eax, 0x416c
call fcn.004c3290
mov eax, dword [0x54b1b4]
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], 0x46af00
mov dword [ebp - 0x40dc], 0x46af20
mov dword [ebp - 0x4124], 0x46af40
mov dword [ebp - 0x4120], 0x46af60
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4108], eax
cmp eax, 0xffffffff
jne 0x46b074
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x46b074
push 0x51bc70
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, dword [ebp - 0x40e4]
push 5
push 0x51bc9c
mov ecx, ebx
call fcn.00408440
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x46b046
sub eax, edx
sar eax, 1
push eax
mov eax, esi
mov ecx, ebx
call fcn.00407450
push 2
mov eax, 0x51bca8
mov ecx, ebx
call fcn.00407450
xor al, al
jmp 0x46bb7f
lea edx, [ebp - 0x4110]
mov dword [ebp - 0x4110], 0x46cb50
mov dword [ebp - 0x410c], 0x46cb80
mov dword [ebp - 0x40d8], 0x46ce20
mov dword [ebp - 0x40d4], 0x46ce80
mov dword [ebp - 0x40d0], 0x46ce90
mov dword [ebp - 0x40cc], 0x46cef0
mov dword [ebp - 0x40c8], edx
mov dword [ebp - 0x40c0], edi
mov dword [ebp - 0x40c4], edi
call fcn.0046d010
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.0046f4f0
mov esi, eax
add esp, 8
cmp esi, edi
je 0x46b162
lea edi, [ebp - 0x40e0]
lea eax, [ebp - 0x4178]
call fcn.0046d480
xor edi, edi
mov dword [ebp - 0x40e8], esi
cmp esi, edi
je 0x46b1be
lea edi, [ebp - 0x40e0]
lea eax, [ebp - 0x4178]
call fcn.0046d480
mov eax, dword [ebp - 0x4108]
cmp eax, 0xffffffff
je 0x46b1a5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46b19b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46b1a5
mov dword [ebp - 0x4108], 0xffffffff
mov ecx, dword [ebp - 0x40e4]
push 0x14
push str.SzArEx_Open
call fcn.00408440
xor al, al
jmp 0x46bb7f
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 0x46baaa
mov edi, dword [ebx]
test edi, edi
je 0x46b233
mov edx, esi
mov dword [ebp - 0x40f8], edx
fild dword [ebp - 0x40f8]
test edx, edx
jns 0x46b206
fadd dword [0x51be68]
mov eax, dword [ebp - 0x415c]
fild dword [ebp - 0x415c]
test eax, eax
jns 0x46b21c
fadd dword [0x51be68]
fdivp st(1)
fmul qword [0x51be60]
call fcn.004c3410
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 0x46b8ab
lea esi, [eax + eax + 2]
test esi, esi
je 0x46b8cc
push esi
call fcn.004bb5e0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x46b8cc
push esi
push 0
push ebx
call fcn.004c24e0
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 0x46b2b3
mov eax, ebx
sub edx, ebx
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
dec ecx
jne 0x46b2a6
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 0x46b2d0
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x46b2d0
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00408440
mov dword [ebp - 4], esi
xor eax, eax
cmp dword [ebp - 0x1c], esi
jbe 0x46b32e
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
lea esp, [esp]
mov edx, ecx
cmp esi, 8
jae 0x46b30a
lea edx, [ebp - 0x2c]
cmp word [edx + eax*2], 0x2f
jne 0x46b328
cmp esi, 8
jae 0x46b319
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 0x46b300
push ebx
call fcn.004bba29
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 0x46b352
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00408440
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x38]
lea eax, [ecx - 1]
cmp ecx, eax
jbe 0x46b8ed
mov ecx, dword [ebp - 0x48]
mov ebx, 8
cmp dword [ebp - 0x34], ebx
jae 0x46b38d
lea ecx, [ebp - 0x48]
cmp word [ecx + eax*2], 0x5c
je 0x46b3a3
push 1
mov eax, 0x510884
lea ecx, [ebp - 0x48]
call fcn.00407450
push 0
lea ecx, [ebp - 0x2c]
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x48]
call fcn.00407350
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.0046f8e0
add esp, 0x24
mov dword [ebp - 0x40e8], eax
cmp eax, esi
jne 0x46b8f7
mov edx, dword [ebp - 0x40f8]
cmp byte [edx + 0x19], 0
je 0x46b47a
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x46b434
lea eax, [ebp - 0x48]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, 0xa1
je 0x46b94e
cmp eax, 0xce
je 0x46b94e
cmp eax, 3
je 0x46b94e
lea ecx, [ebp - 0x48]
call fcn.004077e0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004077e0
jmp 0x46b885
lea eax, [ebp - 0x48]
push eax
lea edi, [ebp - 0x40f0]
mov dword [ebp - 0x40f0], 0x5c
call fcn.00404dd0
cmp eax, 0xffffffff
je 0x46b4d0
push eax
push 0
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x48]
call fcn.004070a0
mov eax, dword [ebp - 0x64]
mov esi, ebx
cmp dword [ebp - 0x50], esi
jae 0x46b4b4
lea eax, [ebp - 0x64]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [ebp - 0x50], esi
jb 0x46b4d0
mov edx, dword [ebp - 0x64]
push edx
call fcn.004ba3a4
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor edi, edi
jmp 0x46b4e0
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x46b4ec
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 0x46b665
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x46b665
mov eax, dword [ebp - 0x4100]
mov eax, dword [eax + 8]
test eax, eax
je 0x46b54b
mov ecx, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x46b53d
lea ecx, [ebp - 0x2c]
push ecx
call eax
add esp, 4
test eax, eax
jne 0x46b617
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 3
jl 0x46b4e0
lea edx, [ebp - 0x80]
push 0x51bd94
push edx
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x40e8], 9
call fcn.0040a830
push eax
mov eax, 0x51bca8
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.00406d60
add esp, 0xc
mov esi, dword [ebp - 0x40e4]
mov edi, eax
mov byte [ebp - 4], 5
call fcn.00407640
cmp dword [ebp - 0x50], 8
jb 0x46b5af
mov eax, dword [ebp - 0x64]
push eax
call fcn.004ba3a4
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 0x46b5d8
mov edx, dword [ebp - 0x80]
push edx
call fcn.004ba3a4
add esp, 4
mov ecx, dword [ebp - 0x40e4]
call fcn.004085d0
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.00405fc0
test eax, eax
jne 0x46ba17
push 0x51bdc8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x46b83f
cmp dword [ebp - 0x34], esi
jb 0x46b628
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004ba3a4
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 0x46b654
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ba3a4
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
jmp 0x46b885
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.0046c9c0
add esp, 4
test eax, eax
jne 0x46b72d
cmp dword [ebp - 0x40f4], ebx
jne 0x46b72d
cmp esi, 0xffffffff
je 0x46b6bf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46b6bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x40f8]
cmp byte [ecx + 0x1d], 0
mov ebx, 8
je 0x46b6e6
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x46b6db
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 0x46b6f7
mov eax, dword [ebp - 0x48]
push eax
call fcn.004ba3a4
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 0x46b722
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004ba3a4
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
jmp 0x46b87f
push str.can_not_write_output_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 0xffffffff
je 0x46b75a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46b750
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46b75a
mov dword [ebp - 0x40f0], 0xffffffff
lea ecx, [ebp - 0x9c]
push 0x51be0c
push ecx
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x40e8], 9
call fcn.0040a830
push eax
mov eax, 0x51bca8
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 6
call fcn.00406d60
add esp, 0xc
mov esi, dword [ebp - 0x40e4]
mov ebx, 7
mov edi, eax
mov byte [ebp - 4], bl
call fcn.00407640
mov edi, 8
cmp dword [ebp - 0xa4], edi
jb 0x46b7c1
mov edx, dword [ebp - 0xb8]
push edx
call fcn.004ba3a4
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 0x46b7f3
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004ba3a4
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.00405fc0
test eax, eax
jne 0x46ba64
mov eax, dword [ebp - 0x40f0]
cmp eax, 0xffffffff
je 0x46b83f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46b83f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x46b855
mov eax, dword [ebp - 0x48]
push eax
call fcn.004ba3a4
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 0x46b879
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004ba3a4
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 0x46baaa
mov ebx, dword [ebp - 0x4100]
mov esi, eax
jmp 0x46b1e8
mov ecx, dword [ebp - 0x40e4]
push 0x19
push str.SzArEx_GetFileNameUtf16
mov dword [ebp - 0x40e8], 8
call fcn.00408440
jmp 0x46baaa
mov ecx, dword [ebp - 0x40e4]
push 9
push str.SzAlloc
mov dword [ebp - 0x40e8], 2
call fcn.00408440
jmp 0x46baaa
push str.invalid_string_position
call fcn.00473d47
mov ecx, dword [ebp - 0x40e4]
push 0x10
push str.SzArEx_Extract
call fcn.00408440
cmp dword [ebp - 0x34], ebx
jb 0x46b91a
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004ba3a4
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 0x46b940
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ba3a4
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov word [ebp - 0x2c], cx
jmp 0x46baa7
push str.can_not_create_output_folder_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [ebp - 0x80]
push 0x51bd84
push edx
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x40e8], 9
call fcn.0040a830
push eax
mov eax, 0x51bca8
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00406d60
add esp, 0xc
mov esi, dword [ebp - 0x40e4]
mov edi, eax
mov byte [ebp - 4], 3
call fcn.00407640
mov ebx, 8
cmp dword [ebp - 0x50], ebx
jb 0x46b9b0
mov eax, dword [ebp - 0x64]
push eax
call fcn.004ba3a4
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 0x46b9d4
mov edx, dword [ebp - 0x80]
push edx
call fcn.004ba3a4
add esp, 4
cmp dword [ebp - 0x34], ebx
jb 0x46b9e5
mov eax, dword [ebp - 0x48]
push eax
call fcn.004ba3a4
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 0x46ba09
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004ba3a4
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov word [ebp - 0x2c], ax
jmp 0x46baa7
push 0x51bdbc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x46ba38
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004ba3a4
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 0x46ba5c
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ba3a4
add esp, 4
xor ecx, ecx
mov word [ebp - 0x2c], cx
jmp 0x46baa4
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x46ba7a
mov edx, dword [ebp - 0x48]
push edx
call fcn.004ba3a4
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 0x46ba9e
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004ba3a4
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.0046d3c0
mov eax, dword [ebp - 0x4108]
cmp eax, 0xffffffff
je 0x46bb74
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46bb74
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.004ba3af
mov esp, ebp
pop ebp
ret