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

Disassembly:
push 0xffffffffffffffff
push 0x4d26b0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fa36c]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [esp + 0xac]
mov esi, ecx
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x90]
xor ebp, ebp
push ecx
mov dword [esp + 0x8c], ebp
call fcn.0042b0f0
add esp, 4
test al, al
jne 0x46dffb
lea edx, [esp + 0x90]
push edx
push esi
lea edi, [esp + 0x3c]
call fcn.0041a790
add esp, 8
push 0xffffffffffffffff
push ebp
push eax
lea eax, [esp + 0x9c]
mov byte [esp + 0x94], 1
call fcn.004017c0
mov ebx, 8
cmp dword [esp + 0x4c], ebx
jb 0x46e000
mov eax, dword [esp + 0x38]
push eax
call fcn.004a93cc
add esp, 4
jmp 0x46e000
mov ebx, 8
mov dword [esp + 0x34], 0x4d809c
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
cmp byte [esp + 0xb4], 0
mov byte [esp + 0x88], 2
je 0x46e0af
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x94]
push edx
call fcn.004a86c0
add esp, 8
test al, al
jne 0x46e074
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x46e054
push eax
call fcn.004a970e
add esp, 4
cmp dword [esp + 0xa8], ebx
jb 0x46e06d
mov eax, dword [esp + 0x94]
push eax
call fcn.004a93cc
add esp, 4
xor al, al
jmp 0x46e3c6
cmp dword [esp + 0x38], ebp
jne 0x46e1bc
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x46e08f
push eax
call fcn.004a970e
add esp, 4
cmp dword [esp + 0xa8], ebx
jb 0x46e06d
mov ecx, dword [esp + 0x94]
push ecx
call fcn.004a93cc
add esp, 4
xor al, al
jmp 0x46e3c6
mov byte [esp + 0x88], 3
cmp dword [esp + 0xa8], ebx
mov eax, dword [esp + 0x94]
jae 0x46e0ce
lea eax, [esp + 0x94]
push ebp
push 0x80
push 3
push ebp
push 1
push Ordinal_4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
jne 0x46e114
cmp dword [esp + 0xa8], ebx
jb 0x46e06d
mov edx, dword [esp + 0x94]
push edx
call fcn.004a93cc
add esp, 4
xor al, al
jmp 0x46e3c6
lea edi, [esp + 0x24]
lea eax, [esp + 0x1c]
call fcn.00440400
test al, al
jne 0x46e150
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xa8], ebx
jb 0x46e06d
mov eax, dword [esp + 0x94]
push eax
call fcn.004a93cc
add esp, 4
xor al, al
jmp 0x46e3c6
mov edi, dword [esp + 0x24]
mov ecx, edi
or ecx, dword [esp + 0x28]
jne 0x46e17f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x34]
call fcn.00401c60
lea esi, [esp + 0x90]
call fcn.0046b6e0
xor al, al
jmp 0x46e3c6
lea esi, [esp + 0x34]
call fcn.00401c90
mov eax, dword [esp + 0x3c]
push edi
lea esi, [esp + 0x24]
lea ecx, [esp + 0x20]
call fcn.004403c0
test al, al
lea esi, [esp + 0x1c]
jne 0x46e1a9
call fcn.00440350
jmp 0x46e163
cmp edi, dword [esp + 0x20]
jne 0x46e1a2
mov byte [esp + 0x88], 2
call fcn.00440350
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x24]
push edx
push eax
lea esi, [esp + 0x28]
lea edx, [esp + 0x38]
call fcn.0049b6f0
add esp, 8
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x46e163
push 0x2c
lea ecx, [esp + 0x58]
push ebp
push ecx
call fcn.004aef60
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x64], ebp
push 0
mov ebp, esi
imul ebp, edi
push 0
mov edx, edi
neg edx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x68], edx
push 0
lea edx, [esp + 0x64]
push edx
lea eax, [ebp*4]
push 0
mov dword [esp + 0x6c], 0x28
mov dword [esp + 0x70], esi
mov word [esp + 0x78], 1
mov word [esp + 0x7a], 0x20
mov dword [esp + 0x80], eax
xor bl, bl
mov dword [esp + 0x30], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x46e26f
mov eax, dword [esp + 0x1c]
push eax
call fcn.004ab1bd
add esp, 4
jmp 0x46e163
xor ecx, ecx
test ebp, ebp
jle 0x46e351
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add esi, 3
mov dl, byte [esi]
mov byte [eax + ecx*4 + 3], dl
mov edi, dword [esp + 0x18]
cmp byte [edi + ecx*4 + 3], 0xff
jae 0x46e2e8
movzx eax, byte [esi]
movzx edx, byte [esi - 1]
imul edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [edi + ecx*4], dl
movzx eax, byte [esi]
movzx edx, byte [esi - 2]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x18]
shr edx, 7
mov byte [eax + ecx*4 + 1], dl
movzx eax, byte [esi]
movzx edx, byte [esi - 3]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x18]
shr edx, 7
mov byte [eax + ecx*4 + 2], dl
mov bl, 1
jmp 0x46e306
mov dl, byte [esi - 1]
mov byte [edi + ecx*4], dl
movzx eax, byte [esi - 2]
mov edx, dword [esp + 0x18]
mov byte [edx + ecx*4 + 1], al
movzx eax, byte [esi - 3]
mov edx, dword [esp + 0x18]
mov byte [edx + ecx*4 + 2], al
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xb0]
cmp dword [eax + ecx*4], edx
jne 0x46e33b
mov byte [eax + ecx*4], 0
mov eax, dword [esp + 0x18]
mov byte [eax + ecx*4 + 1], 0
mov edx, dword [esp + 0x18]
mov byte [edx + ecx*4 + 2], 0
mov eax, dword [esp + 0x18]
mov byte [eax + ecx*4 + 3], 0
mov eax, dword [esp + 0x18]
mov bl, 1
add ecx, 1
add esi, 4
cmp ecx, ebp
jl 0x46e284
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
push 0x10
call fcn.004a9a85
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x46e36f
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
mov byte [eax + 0xc], 0
jmp 0x46e371
xor eax, eax
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x24]
mov dword [ecx], eax
mov dword [eax], edx
mov eax, dword [ecx]
mov dword [eax + 4], esi
mov edx, dword [ecx]
mov dword [edx + 8], edi
mov eax, dword [ecx]
mov ecx, dword [esp + 0x1c]
push ecx
mov byte [eax + 0xc], bl
call fcn.004ab1bd
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, ebp
je 0x46e3aa
push eax
call fcn.004a970e
add esp, 4
cmp dword [esp + 0xa8], 8
jb 0x46e3c4
mov edx, dword [esp + 0x94]
push edx
call fcn.004a93cc
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 0x28