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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497330
mov eax, dword fs:[0]
push eax
sub esp, 0xa5c
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 0x14], 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, ecx
xor eax, eax
mov edi, edx
mov dword [ebp - 0xa58], esi
mov dword [ebp - 0xa5c], edi
cmp esi, eax
je 0x404484
cmp edi, eax
je 0x404484
mov dword [ebp - 0xa44], 0xffffffff
mov dword [ebp - 0xa48], eax
mov dword [ebp - 0xa54], eax
lea ebx, [eax + 5]
lea esp, [esp]
push 0x10
push 0x4b1508
push esi
call fcn.004754fb
add esp, 0xc
mov dword [ebp - 0xa50], eax
test eax, eax
jne 0x403f79
lea eax, [ebp - 0xa60]
push eax
call fcn.0047a3a9
mov eax, dword [ebp - 0xa60]
add esp, 4
cmp eax, 0xd
jne 0x403f45
test byte [0x4c4f08], 1
jne 0x403ef2
or dword [0x4c4f08], 1
call fcn.004028c0
mov dword [0x4c4f04], eax
cmp dword [0x4c4f04], 0
je 0x403f0d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
dec ebx
test ebx, ebx
jg 0x403ea0
jmp 0x403f79
call fcn.00408340
mov esi, eax
call fcn.004083f0
test eax, eax
jne 0x403f34
push str.load_ObCtrl_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0xa44], 0xfffffff6
jmp 0x403f79
mov dword [ebp - 0xa48], 1
push str.Driver_mode_n
jmp 0x403f73
push eax
push esi
push str.open__s_error:_d_n
lea edx, [ebp - 0x728]
lea ecx, [eax - 0x3e8]
push 0x104
push edx
mov dword [ebp - 0xa44], ecx
call fcn.00474cf2
add esp, 0x14
lea eax, [ebp - 0x728]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test ebx, ebx
jne 0x403f8c
mov dword [ebp - 0xa44], 0xfffffff5
jmp 0x40444e
mov esi, dword [ebp - 0xa48]
test esi, esi
jne 0x403fa2
cmp dword [ebp - 0xa50], esi
je 0x40446d
push 0x103
lea ecx, [ebp - 0x11f]
push 0
push ecx
mov byte [ebp - 0x120], 0
call fcn.00472990
lea eax, [ebp - 0x120]
call fcn.00402800
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0xa40]
push eax
call fcn.00469520
lea ecx, [ebp - 0x838]
push ecx
call fcn.00470390
add esp, 0x18
mov dword [ebp - 0xa44], 0
test esi, esi
je 0x404210
mov esi, dword [edi + 0x1c]
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 0x230
mul edx
seto cl
mov dword [ebp - 4], 0
neg ecx
or ecx, eax
push ecx
call fcn.0047159e
inc esi
imul esi, esi, 0x230
add esp, 4
push esi
push 0
push eax
mov dword [ebp - 0xa54], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00472990
mov eax, dword [edi + 0x18]
mov esi, dword [eax]
mov ebx, dword [edi]
add esp, 0xc
mov dword [ebp - 0xa48], esi
mov dword [ebp - 0xa4c], ebx
mov ecx, dword [edi + 0x18]
mov edi, dword [edi]
mov dword [ebp - 0xa64], ecx
test ebx, ebx
je 0x404067
cmp ebx, edi
je 0x40406c
call fcn.00475d4f
cmp esi, dword [ebp - 0xa64]
je 0x40416f
test ebx, ebx
jne 0x40415a
call fcn.00475d4f
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x404091
call fcn.00475d4f
test ebx, ebx
jne 0x404161
call fcn.00475d4f
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x4040aa
call fcn.00475d4f
test ebx, ebx
jne 0x404168
call fcn.00475d4f
cmp esi, dword [ebx + 0x18]
jne 0x4040c1
call fcn.00475d4f
mov ebx, dword [ebp - 0xa44]
mov edi, dword [esi + 0x10]
imul ebx, ebx, 0x230
add ebx, dword [ebp - 0xa54]
push 0x230
push 0
push ebx
call fcn.00472990
mov edx, dword [esi + 0xc]
mov dword [ebx], edx
add esp, 0xc
mov ecx, edi
lea edx, [ebx + 4]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4040f0
push 0x230
push ebx
lea eax, [ebp - 0xa40]
push ebx
add esi, 0x14
lea edi, [ebx + 0x204]
mov ecx, 8
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00469600
push 0x230
lea ecx, [ebp - 0x838]
push ebx
push ecx
call fcn.00470d50
inc dword [ebp - 0xa44]
add esp, 0x1c
lea esi, [ebp - 0xa4c]
call fcn.00405920
mov esi, dword [ebp - 0xa48]
mov ebx, dword [ebp - 0xa4c]
mov edi, dword [ebp - 0xa5c]
jmp 0x404054
mov eax, dword [ebx]
jmp 0x404087
mov eax, dword [ebx]
jmp 0x4040a0
mov ebx, dword [ebx]
jmp 0x4040b7
mov esi, dword [ebp - 0xa44]
mov ebx, dword [ebp - 0xa54]
imul esi, esi, 0x230
lea edi, [esi + ebx]
lea edx, [edi + 0x204]
push edx
lea eax, [ebp - 0x838]
push eax
mov dword [edi], 0x4348454b
call fcn.00470e00
push 0x230
push edi
lea ecx, [ebp - 0xa40]
push edi
push ecx
call fcn.00469600
add esp, 0x18
call fcn.00408340
mov ecx, dword [ebp - 0xa58]
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 0x4043ff
mov dword [ebp - 0xa44], 0xfffffffd
push str.save_digest_failed_n
jmp 0x404448
mov eax, dword [edi + 0x18]
mov ebx, dword [eax]
mov esi, dword [edi]
mov dword [ebp - 0xa48], ebx
mov dword [ebp - 0xa4c], esi
mov ecx, dword [edi + 0x18]
mov edi, dword [edi]
mov dword [ebp - 0xa64], ecx
test esi, esi
je 0x404236
cmp esi, edi
je 0x40423b
call fcn.00475d4f
cmp ebx, dword [ebp - 0xa64]
je 0x404381
test esi, esi
jne 0x404357
call fcn.00475d4f
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x404260
call fcn.00475d4f
test esi, esi
jne 0x40435e
call fcn.00475d4f
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x404279
call fcn.00475d4f
test esi, esi
jne 0x404365
call fcn.00475d4f
cmp ebx, dword [esi + 0x18]
jne 0x404290
call fcn.00475d4f
mov esi, dword [ebx + 0x10]
push 0x230
lea edx, [ebp - 0x750]
push 0
push edx
call fcn.00472990
mov eax, dword [ebx + 0xc]
lea edx, [ebp - 0x74c]
add esp, 0xc
mov dword [ebp - 0x750], eax
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4042c0
lea esi, [ebx + 0x14]
mov ecx, 8
lea edi, [ebp - 0x54c]
rep movsd dword es:[edi], dword [esi]
push 0x230
lea ecx, [ebp - 0x750]
push ecx
mov edx, ecx
push edx
lea eax, [ebp - 0xa40]
push eax
call fcn.00469600
push 0x230
lea ecx, [ebp - 0x750]
push ecx
lea edx, [ebp - 0x838]
push edx
call fcn.00470d50
mov eax, dword [ebp - 0xa50]
push eax
push 1
lea ecx, [ebp - 0x750]
push 0x230
push ecx
call fcn.0047515f
add esp, 0x2c
cmp eax, 1
jne 0x40436c
inc dword [ebp - 0xa44]
lea esi, [ebp - 0xa4c]
call fcn.00405920
mov ebx, dword [ebp - 0xa48]
mov esi, dword [ebp - 0xa4c]
mov edi, dword [ebp - 0xa5c]
jmp 0x404223
mov eax, dword [esi]
jmp 0x404256
mov eax, dword [esi]
jmp 0x40426f
mov esi, dword [esi]
jmp 0x404286
push str.save_digest_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0xa44], 0xfffffffc
push 0x230
lea edx, [ebp - 0x750]
push 0
push edx
call fcn.00472990
lea eax, [ebp - 0x54c]
push eax
lea ecx, [ebp - 0x838]
push ecx
mov dword [ebp - 0x750], 0x4348454b
call fcn.00470e00
push 0x230
lea edx, [ebp - 0x750]
push edx
mov eax, edx
push eax
lea ecx, [ebp - 0xa40]
push ecx
call fcn.00469600
mov edx, dword [ebp - 0xa50]
push edx
push 1
lea eax, [ebp - 0x750]
push 0x230
push eax
call fcn.0047515f
add esp, 0x34
cmp eax, 1
je 0x4043ff
mov dword [ebp - 0xa44], 0xfffffffc
push str.save_digest_failed_n
jmp 0x404448
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [ebp - 0x51e]
push edx
mov word [ebp - 0x520], cx
call fcn.00472990
mov eax, dword [ebp - 0xa44]
mov ecx, dword [ebp - 0xa58]
push eax
push ecx
push str.save__s_count:_d_n
lea edx, [ebp - 0x520]
push 0x200
push edx
call fcn.00474cf2
add esp, 0x20
lea eax, [ebp - 0x520]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0xa50]
test eax, eax
je 0x40446d
push eax
call fcn.00477ab6
mov ecx, dword [ebp - 0xa50]
push ecx
call fcn.00474bde
add esp, 8
mov edx, dword [ebp - 0xa54]
push edx
call fcn.0047311d
mov eax, dword [ebp - 0xa44]
add esp, 4
jmp 0x404487
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 - 0x14]
xor ecx, ebp
call fcn.00472a79
mov esp, ebp
pop ebp
ret