Function at 0x402950
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xa00]
sub esp, 0xa00
push 0xffffffffffffffff
push 0x497398
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp + 0x9fc], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xa08]
mov edi, dword [ebp + 0xa0c]
xor ebx, ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
cmp esi, ebx
je 0x402d8c
cmp edi, ebx
je 0x402d8c
lea ecx, [ebp - 0x44]
call fcn.0040b370
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], 0xffffffff
mov ebx, 5
lea ecx, [ecx]
push 0x10
push 0x4b1508
push esi
call fcn.004754fb
add esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x402a97
lea eax, [ebp - 0x3c]
push eax
call fcn.0047a3a9
mov eax, dword [ebp - 0x3c]
add esp, 4
cmp eax, 0xd
jne 0x402a66
test byte [0x4c4f10], 1
jne 0x402a19
or dword [0x4c4f10], 1
call fcn.004028c0
mov dword [0x4c4f0c], eax
cmp dword [0x4c4f0c], 0
je 0x402a34
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
dec ebx
test ebx, ebx
jg 0x4029d0
jmp 0x402a97
call fcn.00408340
mov esi, eax
call fcn.004083f0
test eax, eax
jne 0x402a58
push str.load_ObCtrl_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x14], 0xfffffff6
jmp 0x402a97
mov dword [ebp - 0x28], 1
push str.Driver_mode_n
jmp 0x402a91
push eax
push esi
push str.open__s_error:_d_n
lea edx, [ebp + 0x6f0]
lea ecx, [eax - 0x3e8]
push 0x104
push edx
mov dword [ebp - 0x14], ecx
call fcn.00474cf2
add esp, 0x14
lea eax, [ebp + 0x6f0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test ebx, ebx
jne 0x402aa7
mov dword [ebp - 0x14], 0xfffffff5
jmp 0x402ca6
cmp dword [ebp - 0x28], 0
jne 0x402ab7
cmp dword [ebp - 0x20], 0
je 0x402cbf
push 0x103
lea ecx, [ebp + 0x8f9]
push 0
push ecx
mov byte [ebp + 0x8f8], 0
call fcn.00472990
lea eax, [ebp + 0x8f8]
call fcn.00402800
lea edx, [ebp + 0x8f8]
push edx
lea eax, [ebp]
push eax
call fcn.00469520
lea ecx, [ebp + 0x208]
push ecx
call fcn.00470390
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 9
mov esi, edx
shr esi, 0x1f
add esi, edx
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 0x230
mul edx
seto cl
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.0047159e
inc esi
imul esi, esi, 0x230
add esp, 0x1c
push esi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0
call fcn.00472990
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp eax, dword [edi + 0x10]
jbe 0x402b6a
call fcn.00475d4f
mov esi, dword [edi]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x24], eax
cmp dword [edi + 0xc], eax
jbe 0x402b85
call fcn.00475d4f
mov edi, dword [edi]
test esi, esi
je 0x402b8f
cmp esi, edi
je 0x402b94
call fcn.00475d4f
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x18], ecx
je 0x402c31
test esi, esi
jne 0x402c29
call fcn.00475d4f
mov edx, dword [ebp - 0x18]
cmp edx, dword [esi + 0x10]
jb 0x402bba
call fcn.00475d4f
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
imul eax, eax, 0x230
add ebx, eax
push 0x230
mov ecx, 0x8c
mov edi, ebx
push ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp]
push ebx
push ecx
call fcn.00469600
push 0x230
lea edx, [ebp + 0x208]
push ebx
push edx
call fcn.00470d50
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 0x14]
add esp, 0x1c
test eax, eax
jne 0x402c2d
call fcn.00475d4f
xor eax, eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x402c14
call fcn.00475d4f
add dword [ebp - 0x18], 0x230
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x2c]
jmp 0x402b75
mov esi, dword [esi]
jmp 0x402bad
mov eax, dword [eax]
jmp 0x402c07
mov esi, dword [ebp - 0x14]
imul esi, esi, 0x230
lea edi, [esi + ebx]
lea edx, [edi + 0x204]
push edx
lea eax, [ebp + 0x208]
push eax
mov dword [edi], 0x4348454b
call fcn.00470e00
push 0x230
push edi
lea ecx, [ebp]
push edi
push ecx
call fcn.00469600
add esp, 0x18
cmp dword [ebp - 0x28], 0
je 0x402d01
call fcn.00408340
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax]
mov edx, dword [edx]
add esi, 0x230
push esi
push ebx
push ecx
mov ecx, eax
call edx
test eax, eax
jne 0x402d28
mov dword [ebp - 0x14], 0xfffffffd
push str.save_digest_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x402cbf
push eax
call fcn.00477ab6
mov edx, dword [ebp - 0x20]
push edx
call fcn.00474bde
add esp, 8
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0047311d
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x44], 0
je 0x402cf9
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402cf9
mov ecx, dword [ebp - 0x40]
push ecx
call eax
mov eax, dword [ebp - 0x14]
jmp 0x402d8f
mov eax, dword [ebp - 0x20]
push eax
push 1
add esi, 0x230
push esi
push ebx
call fcn.0047515f
add esp, 0x10
cmp eax, 1
je 0x402d28
mov dword [ebp - 0x14], 0xfffffffc
jmp 0x402c9b
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [ebp + 0x2f2]
push edx
mov word [ebp + 0x2f0], cx
call fcn.00472990
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
push eax
push ecx
push edx
push str.save__s_count:_d__d_n
lea eax, [ebp + 0x2f0]
push 0x200
push eax
call fcn.00474cf2
add esp, 0x24
lea ecx, [ebp + 0x2f0]
push ecx
jmp 0x402ca0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x9fc]
xor ecx, ebp
call fcn.00472a79
add ebp, 0xa00
mov esp, ebp
pop ebp
ret 8