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

Disassembly:
push 0xffffffffffffffff
push 0x570e38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [esp + 0x64]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x78]
mov ebx, ecx
lea esi, [eax + 0x14]
push 0
push edi
mov ecx, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], esi
call fcn.0049bed0
mov ebp, eax
push edi
mov ecx, esi
mov dword [esp + 0x34], ebp
call fcn.0049bf20
mov ecx, dword [ebp]
push 0
push ecx
mov ecx, ebx
mov dword [esp + 0x2c], eax
call fcn.004a0990
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx + 0x14]
test al, 0x10
jne 0x4a0308
shr eax, 8
add ebp, 0x18
and eax, 1
push ebp
mov dword [esp + 0x30], eax
call fcn.004f1d70
add ebp, eax
push ebp
call fcn.004f1d70
mov esi, dword [ebp + eax]
add ebp, eax
add esp, 8
call fcn.007fcdca
or al, 0x50
call fcn.00561013
test eax, eax
jne 0x4a0045
mov dword [esp + 0x10], eax
jmp 0x4a004c
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x1c]
xor eax, eax
cmp edx, ecx
sete al
push 1
mov dword [esp + 0x3c], eax
call dword [ebx + 0x2c]
push 5
mov dword [esp + 0x2c], eax
call dword [ebx + 0x2c]
push esi
call eax
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x4a0308
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x3c]
push edx
push eax
call fcn.007f5f92
mov cl, byte [ebx - 0x417e3b2]
cmc
xor eax, 0xff511400
xlatb
push eax
call fcn.00561013
lea edx, [esp + 0x3c]
mov ecx, eax
push edx
call fcn.0056630f
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.00563d7e
test eax, eax
jne 0x4a00c5
mov dword [esp + 0x18], reloc.MSVFW32.dll_DrawDibDraw
mov eax, dword [esi + 0x1c]
push eax
call edi
push eax
call fcn.00561013
test eax, eax
jne 0x4a00d9
xor edi, edi
jmp 0x4a00dc
mov edi, dword [eax + 0x1c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x70]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x50]
sub edx, ecx
push edx
push eax
push ecx
push 0
mov ecx, esi
call fcn.00563cac
push eax
mov eax, dword [esp + 0x40]
push edi
push eax
push ebx
call fcn.007ff838
adc byte [eax + 0x53], 0xe8
inc esp
adc dh, byte [0xff50de00]
push esp
and al, 0x60
mov edi, eax
test edi, edi
je 0x4a02fa
mov ecx, dword [edi + 0x1c]
push ecx
call fcn.007f7a20
mov word [ebp - 0x477bf040], es
add dword [eax], eax
add byte [ebx - 0x9e3dbac], cl
inc edx
adc al, 0x80
je 0x4a01d8
lea ecx, [esp + 0x4c]
call fcn.00489d30
mov dword [esp + 0x4c], 0x66eac4
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x68], 0
test eax, eax
je 0x4a0196
push eax
call fcn.007f28ad
or cl, byte [ebx + 0x74db85d8]
sbb dword [ebx - 0x73], edx
dec esp
and al, 0x50
call fcn.0048a030
push 2
push ebx
call fcn.007ff95a
mov bl, 0x8b
fadd dword [ebp - 0x74188a25]
inc esp
and al, 0x5c
mov eax, dword [esp + 0x5c]
mov ecx, dword [edi + 0x1c]
shr eax, 2
dec eax
mov dword [esp + 0x70], ecx
mov ebx, eax
js 0x4a01bf
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x70]
push edx
mov ecx, dword [eax + ebx*4]
push ecx
call fcn.007f753d
sbb dword [ebx + 0x79], ecx
ljmp 0x44c7
lea ecx, [esp + 0x4c]
mov dword [esp + 0x68], reloc.MSVFW32.dll_DrawDibDraw
mov dword [esp + 0x4c], 0x66e158
call fcn.00489f30
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x20]
push edx
push eax
mov dword [ebp], edi
call fcn.004a0320
mov ecx, dword [edi + 0x1c]
call fcn.007ffa85
std
push 0
push 0
push 0x806f
push ecx
call ebx
mov edx, dword [edi + 0x1c]
push 0
push 0
push 0x8076
push edx
call ebx
mov eax, dword [esp + 0x1c]
test dword [eax + 0x14], 0x100000
je 0x4a023e
mov ecx, dword [edi + 0x1c]
push ecx
call fcn.007fe09b
rcl dword [eax - 0x18], cl
in al, 0xd
or al, 0
mov edx, dword [eax + 0x1c]
push 0
push 0
push 0x8004
push edx
call ebx
mov eax, dword [esi + 0x1c]
push 0xfffffffffffffff0
push eax
call fcn.007ffb62
xchg ecx, eax
test eax, 0x10000000
je 0x4a025a
push 8
mov ecx, edi
call fcn.00563d57
mov eax, dword [esp + 0x2c]
mov ebp, 1
cmp eax, ebp
jne 0x4a0299
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x130b
push ecx
call ebx
mov edx, dword [edi + 0x1c]
push 0
push eax
push 0x130c
push edx
call ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push 0x7fffffff
push 0
push eax
call fcn.0049c7a0
mov ebx, dword [esp + 0x20]
mov ecx, esi
mov dword [ebx + reloc.MSVFW32.dll_DrawDibDraw], ebp
mov edx, dword [esi]
call dword [edx + 0x58]
mov eax, dword [esp + 0x38]
mov dword [ebx + reloc.MSVFW32.dll_DrawDibDraw], 0
cmp eax, ebp
jne 0x4a02c5
mov ecx, edi
call fcn.00563dc0
jmp 0x4a02f6
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4a02f6
push esi
call fcn.007f7a20
inc edi
test eax, eax
je 0x4a02f6
call fcn.007fcdca
lea edx, [eax - 0x18]
das
or eax, 0xc085000c
je 0x4a02eb
mov eax, dword [eax + 0x1c]
cmp eax, esi
je 0x4a02f6
push esi
call fcn.007ff0cb
jecxz 0x4a0282
mov ebx, dword [esp + 0x14]
pop esp
and al, 0x14
push ebx
call fcn.007f1446
leave
push ebx
call fcn.007ffca7
fmul dword [ebx + reloc.MSVFW32.dll_DrawDibDraw]
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 0xc