Function at 0x423e4d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4cc893
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5107c0]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov ebx, ecx
push str.CDeviceX::OpenBD
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBegin]
mov ecx, ebx
call fcn.0042229f
test eax, eax
jne 0x423ea7
xor al, al
jmp 0x424399
cmp dword [ebx + 0x70], 0x17
jne 0x423eb4
and dword [ebx + 0x1c8], 0xfffffffb
mov eax, dword [ebx + 0x1f0]
cmp eax, 0xffffffff
je 0x423ec6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebx + 0x6a]
push 0
push eax
call fcn.00420149
mov dword [ebx + 0x1f0], eax
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x423f25
push dword [ebx + 0x74]
push 0x53b123f7
push 0x89071f3f
push 0x76fceff9
call fcn.004017ae
add esp, 0xc
push eax
push 3
push dword [ebx + 0x60]
call fcn.0041a053
mov dword [ebx + 0x74], 0xa
add esp, 0x10
mov al, byte [ebx + 0x26]
mov byte [ebx + 0x78], al
mov al, byte [ebx + 0x30]
mov byte [ebx + 0x79], al
mov al, byte [ebx + 0x31]
mov byte [ebx + 0x7a], al
jmp 0x423ea0
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebx + 0x5c]
mov esi, eax
and dword [esp + 0x18], 0
push 0
push 0
call fcn.00442453
mov ebp, dword [eax + 0x30]
test ebp, ebp
je 0x423fa0
mov eax, dword [eax + 0x28]
mov ecx, ebx
push esi
mov edi, dword [eax + 8]
add edi, 0x7ff
shr edi, 0xb
push edi
push ebp
call fcn.004200f5
cmp eax, edi
jne 0x423fa0
lea eax, [ebx + 0x1d0]
push eax
lea eax, [ebx + 0x1cc]
push eax
mov eax, edi
shl eax, 0xb
push eax
push esi
call fcn.0042ca53
add esp, 0x10
test eax, eax
jle 0x423fa0
push esi
lea eax, [ebp - 1]
mov ecx, ebx
add eax, edi
push eax
push ebp
call fcn.00425836
test byte [ebx + 0x1c8], 4
je 0x424094
push 0
push 0x7ccd2ce7
push 0xa67b103c
push 0x5980e01c
call fcn.004017ae
mov ecx, dword [ebx + 0x5c]
add esp, 0xc
push eax
call fcn.00442453
mov ebp, eax
test ebp, ebp
je 0x424094
cmp byte [ebp + 0xc], 0
je 0x424094
mov ecx, dword [ebp + 0x30]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x424094
mov eax, dword [ebp + 0x28]
push esi
mov edi, dword [eax + 8]
add edi, 0x7ff
shr edi, 0xb
push edi
push ecx
mov ecx, ebx
call fcn.004200f5
cmp eax, edi
jne 0x424094
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
mov eax, edi
shl eax, 0xb
push eax
push esi
call fcn.0042c7b7
add esp, 0xc
test eax, eax
jle 0x424094
mov ecx, dword [esp + 0x1c]
neg eax
mov dword [esp + 0x18], eax
push esi
lea eax, [ecx - 1]
add eax, edi
push eax
push ecx
mov ecx, ebx
call fcn.00425836
mov edi, dword [ebp + 0x14]
mov ecx, ebx
push esi
push 1
push edi
call fcn.004200f5
cmp eax, 1
jne 0x424072
push dword [esp + 0x14]
push esi
call fcn.0042cd55
pop ecx
pop ecx
push esi
push edi
push edi
mov ecx, ebx
call fcn.00425836
push 0xfdc4681c
push 0x277254dd
push 0xd889a4cb
call fcn.004017ae
push eax
push 1
push dword [ebx + 0x60]
call fcn.0041a053
add esp, 0x18
cmp dword [ebx + 0x70], 0x17
je 0x424295
lea ecx, [esp + 0x38]
call fcn.00444ab3
mov ecx, dword [ebx + 0x1c8]
xor edx, edx
mov eax, ecx
and dword [esp + 0xc4], 0
shr eax, 9
inc edx
and al, 3
mov dword [esp + 0x60], ebx
mov byte [esp + 0x42], al
mov eax, dword [0x52181c]
mov ax, word [eax + 0x10]
mov word [esp + 0x44], ax
mov eax, ecx
shr eax, 3
and al, dl
mov byte [esp + 0x3c], dl
mov byte [esp + 0x3b], al
mov al, cl
and al, dl
mov byte [esp + 0x3d], dl
mov byte [esp + 0x3e], al
mov eax, ecx
shr ecx, 1
and cl, dl
shr eax, 2
and al, dl
mov byte [esp + 0x40], cl
lea ecx, [esp + 0x38]
mov byte [esp + 0x3f], al
call fcn.00447793
cmp dword [esp + 0x94], 0
je 0x424146
push dword [esp + 0x94]
push 0x3d6e7b71
push 0xe7d84785
push 0x1823b78b
call fcn.004017ae
add esp, 0xc
xor ebp, ebp
inc ebp
push eax
push ebp
push dword [ebx + 0x60]
call fcn.0041a053
add esp, 0x10
jmp 0x42416a
push 0x73d73d86
push 0xa9610170
push 0x569af124
call fcn.004017ae
push eax
xor ebp, ebp
inc ebp
push ebp
push dword [ebx + 0x60]
call fcn.0041a053
add esp, 0x18
cmp dword [esp + 0x98], 0
je 0x4241a1
push dword [esp + 0x98]
push 0x842fb426
push 0x5e9988d5
push 0xa1627965
call fcn.004017ae
add esp, 0xc
push eax
push ebp
push dword [ebx + 0x60]
call fcn.0041a053
add esp, 0x10
jmp 0x4241c2
push 0x557f0cd3
push 0x8fc93026
push 0x7032c1b8
call fcn.004017ae
push eax
push ebp
push dword [ebx + 0x60]
call fcn.0041a053
add esp, 0x18
cmp dword [esp + 0x9c], 0
je 0x4241f9
push dword [esp + 0x9c]
push 0x17b85f91
push 0xcd0e635a
push 0x32f592a0
call fcn.004017ae
add esp, 0xc
push eax
push ebp
push dword [ebx + 0x60]
call fcn.0041a053
add esp, 0x10
jmp 0x42421a
push 0xfa2970b7
push 0x209f4c7a
push 0xdf64bda2
call fcn.004017ae
push eax
push ebp
push dword [ebx + 0x60]
call fcn.0041a053
add esp, 0x18
cmp dword [esp + 0xa0], 0
je 0x42424f
push dword [esp + 0xa0]
push 0x8c466550
push 0x56f05998
push 0xa90ba8a4
call fcn.004017ae
add esp, 0xc
push eax
push ebp
push dword [ebx + 0x60]
call fcn.0041a053
add esp, 0x10
cmp dword [esp + 0xa4], 0
je 0x424284
push dword [esp + 0xa4]
push 0xd3fd1128
push 0x94b2dd2
push 0xf6b0dccc
call fcn.004017ae
add esp, 0xc
push eax
push ebp
push dword [ebx + 0x60]
call fcn.0041a053
add esp, 0x10
or dword [esp + 0xc4], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.00444da2
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x4242ca
mov ecx, dword [ebx + 0x5c]
push esi
call fcn.00443cad
mov edi, eax
test edi, edi
je 0x4242ca
mov ecx, dword [esi + 0x48]
push esi
add dword [esi + ecx*8 + 0x70], ebp
call fcn.004443ad
mov dword [esp], 0x800
mov ecx, ebx
push esi
push edi
push edi
call fcn.004254e9
push esi
call fcn.0040746c
mov edx, dword [ebx + 0x1f4]
pop ecx
test edx, edx
je 0x4242fb
mov esi, dword [edx + 8]
test esi, esi
je 0x4242fb
mov ecx, dword [edx]
mov eax, esi
shl eax, 0xb
push eax
push dword [edx + 0xc]
lea eax, [esi - 1]
add eax, ecx
push eax
push ecx
mov ecx, ebx
call fcn.004254e9
mov ecx, dword [ebx + 0x5c]
xor edx, edx
cmp dword [ecx + 8], edx
je 0x424391
mov esi, dword [ecx + 0xc]
lea edi, [esp + 0x24]
xor eax, eax
stosd dword es:[edi], eax
push 1
push edx
push edx
push dword [ebx + 0x1f0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ecx + 0x10]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x44], 4
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub edi, esi
mov dword [esp + 0x28], eax
inc edi
lea eax, [esp + 0x20]
shl edi, 0xb
mov dword [esp + 0x2c], edi
lea edi, [ebx + 0x230]
push eax
mov ecx, edi
call fcn.0041ca32
mov eax, dword [ebx + 0x5c]
mov ecx, ebx
push dword [esp + 0x2c]
push dword [eax + 8]
call fcn.0042769c
mov eax, dword [ebx + 0x5c]
mov esi, dword [eax + 0x14]
test esi, esi
je 0x424391
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x20]
sub edx, dword [eax + 0xc]
add edx, esi
mov dword [esp + 0x20], esi
push ecx
mov ecx, edi
mov dword [esp + 0x28], edx
call fcn.0041ca32
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
mov al, 1
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004b35e5
add esp, 0xb4
ret