Function at 0x423cb0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4837f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x610
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov al, byte [esi + 0xc]
mov dword [ebp - 4], edi
test al, al
jne 0x423cfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
lea eax, [ebp - 0x14]
push 0x497518
push eax
mov dword [ebp - 0x14], edi
call dword [esi + 0x2c]
cmp eax, edi
je 0x42409f
push edi
push edi
push 3
push edi
mov edi, dword [ebp + 8]
push 1
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x423d81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [ebp - 0x104]
push ebx
push edi
push str.CreateFile___s___failed_ErrCode___d
push ecx
call fcn.0047a8f8
add esp, 0x10
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x14]
push 0
push eax
call dword [esi + 0x40]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x60]
push eax
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x18]
push eax
push ecx
push ebx
mov dword [ebp - 0x60], 0x30
mov dword [ebp - 0x54], 2
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x38], 0x10
mov dword [ebp - 0x18], eax
call dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x7a
je 0x423e0d
push edi
lea edx, [ebp - 0x104]
push str.CryptCATAdminCalcHashFromFileHandle_failed_ErrCode___d
push edx
call fcn.0047a8f8
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x14]
push 0
push ecx
call dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x18]
push edx
call fcn.0047af48
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp - 0x1c], edi
jne 0x423e71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x104]
push edi
push str.malloc_failed_ErrCode___d
push eax
call fcn.0047a8f8
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x14]
push 0
push edx
call dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp - 0x18]
push edi
push eax
push ebx
call dword [esi + 0x30]
test eax, eax
jne 0x423eda
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x104]
push str.CryptCATAdminCalcHashFromFileHandle_failed_ErrCode___d
push ecx
mov dword [ebp + 8], eax
call fcn.0047a8f8
add esp, 0xc
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call fcn.0047ae3e
mov eax, dword [ebp - 0x14]
add esp, 4
push 0
push eax
call dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x84]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x48], ecx
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0x84]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x1c]
push 0x104
lea ecx, [ebp - 0x208]
push eax
push ecx
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x84], 0x24
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.USER32.dll_CharLowerA]
lea eax, [ebp - 0x410]
push 0x104
push eax
lea ecx, [ebp - 0x208]
push 0xffffffffffffffff
xor ebx, ebx
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x410]
push eax
mov dword [ebp - 0x78], edx
mov edx, dword [ebp - 0x14]
push ebx
push ecx
push edi
push edx
mov dword [ebp - 0x20], ebx
call dword [esi + 0x34]
mov edi, eax
mov dword [esi], ebx
test edi, edi
je 0x424048
lea eax, [ebp - 0x61c]
push 0
push eax
push edi
inc ebx
mov dword [ebp - 0x61c], 0x20c
call dword [esi + 0x38]
test eax, eax
je 0x42400e
push 0
push 0
lea ecx, [ebp - 0x208]
push 0x104
push ecx
lea edx, [ebp - 0x618]
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x618]
push ecx
push 0x497518
push 0
mov dword [ebp - 0x7c], eax
call dword [esi + 0x1c]
test eax, eax
jne 0x42400e
mov edx, dword [ebp - 0x14]
push eax
push edi
push edx
call dword [esi + 0x3c]
mov eax, dword [ebp - 0x14]
push 0
push eax
call dword [esi + 0x40]
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0047ae3e
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], edi
push edx
mov edx, dword [ebp - 0x14]
push 0
push eax
push ecx
push edx
call dword [esi + 0x34]
cmp ebx, 0x14
mov edi, eax
jle 0x423f79
mov dword [esi], ebx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x410]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
push 0x104
push edx
mov dword [ebp - 0x28], ecx
push 0xffffffffffffffff
push eax
push ecx
push ecx
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x30], 0x10
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x410]
push edx
push 0x497518
push 0
mov dword [ebp - 0x2c], ecx
call dword [esi + 0x1c]
mov edi, eax
jmp 0x4240a2
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4240b2
push eax
call fcn.0047ae3e
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4240bf
push 0
push eax
call dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8