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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff38
mov esi, ecx
lea edi, [esp + 0x78]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [esp + 0x80]
cmp eax, dword [esp + 0x78]
je 0x492a1c
mov eax, dword [esp + 0x84]
cmp eax, dword [esp + 0x7c]
je 0x492a1c
lea eax, [esp + 0x78]
call fcn.004921d4
mov eax, dword [esp + 0x80]
sub eax, dword [esp + 0x78]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x84]
sub eax, dword [esp + 0x7c]
mov dword [esp + 0x50], eax
mov eax, dword [esp]
call fcn.0049218c
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x458]
cmp eax, dword [esp + 0x4c]
jne 0x492288
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x45c]
cmp eax, dword [esp + 0x50]
jne 0x492288
xor eax, eax
jmp 0x49228a
mov al, 1
mov byte [esp + 0x54], al
cmp byte [esp + 0x54], 0
je 0x4922da
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xb4], eax
xor eax, eax
mov dword [esp + 0xb8], eax
fild qword [esp + 0xb4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x458]
mov dword [esp + 0xbc], eax
xor eax, eax
mov dword [esp + 0xc0], eax
fild qword [esp + 0xbc]
fdivp st(1)
fstp qword [esp + 0x58]
wait
jmp 0x4922e8
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0x3ff00000
cmp byte [esp + 0x54], 0
je 0x492334
mov eax, dword [esp + 0x50]
mov dword [esp + 0xb4], eax
xor eax, eax
mov dword [esp + 0xb8], eax
fild qword [esp + 0xb4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x45c]
mov dword [esp + 0xbc], eax
xor eax, eax
mov dword [esp + 0xc0], eax
fild qword [esp + 0xbc]
fdivp st(1)
fstp qword [esp + 0x60]
wait
jmp 0x492342
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0x3ff00000
lea eax, [esp + 0x88]
xor ecx, ecx
mov edx, 0x2c
call fcn.00403730
mov eax, dword [esp + 0x4c]
mov dword [0x5ba180], eax
mov eax, dword [esp + 0x50]
neg eax
mov dword [0x5ba184], eax
mov esi, 0x5ba17c
lea edi, [esp + 0x88]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [esp + 8], eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
lea eax, [esp + 0x98]
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.gdi32.dll_CreateDIBSection
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
je 0x4923b6
cmp dword [esp + 0xc], 0
jne 0x4923d1
cmp dword [esp + 0x14], 0
je 0x4923c7
mov eax, dword [esp + 0x14]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [esp + 8]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.gdi32.dll_SelectObject
mov dword [esp + 0x10], eax
push 0xcc0020
mov eax, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push eax
push 0
push 0
mov eax, dword [esp + 0x28]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x458]
mov dword [esp + 0x38], eax
movzx eax, word [esp + 0x96]
imul dword [esp + 0x4c]
add eax, 0x1f
and eax, 0xffffffe0
shr eax, 3
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
movzx eax, word [eax + 0x2f]
mov edx, dword [esp + 0x18]
imul dword [edx + 0x458]
add eax, 0x1f
and eax, 0xffffffe0
shr eax, 3
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
mov ebx, dword [eax + 0x454]
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0x468]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x45c]
dec eax
imul esi, eax
mov eax, dword [esp + 0x18]
add esi, dword [eax + 0x450]
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
movzx eax, word [eax + 0x2f]
dec ax
je 0x492655
sub ax, 3
je 0x492655
sub ax, 4
je 0x492655
sub ax, 0x10
jne 0x4929c7
mov eax, dword [esp + 0x50]
test eax, eax
jle 0x4929c7
mov dword [esp + 0x68], eax
mov dword [esp + 0x48], 1
mov esi, dword [esp + 0x4c]
dec esi
test esi, esi
jl 0x4925fa
inc esi
xor edi, edi
cmp byte [esp + 0x54], 0
je 0x492513
mov dword [esp + 0xc4], edi
fild dword [esp + 0xc4]
fdiv qword [esp + 0x58]
call fcn.004034f8
jmp 0x492515
mov eax, edi
cmp byte [ebx + eax], 0
je 0x4925f2
cmp byte [ebx + eax], 0xff
jne 0x49253d
lea eax, [eax + eax*2]
mov edx, dword [esp + 0x3c]
lea eax, [edx + eax]
mov eax, dword [eax]
mov edx, dword [esp + 0x44]
mov dword [edx + edi*4], eax
jmp 0x4925f2
mov edx, dword [esp + 0x44]
lea edx, [edx + edi*4]
mov dword [esp + 0x6c], edx
lea edx, [eax + eax*2]
add edx, 2
mov ecx, dword [esp + 0x3c]
movzx edx, byte [ecx + edx]
movzx ecx, byte [ebx + eax]
imul edx, ecx
add edx, 0xff
movzx ecx, byte [ebx + eax]
not cl
movzx ecx, cl
mov ebp, dword [esp + 0x6c]
movzx ebp, byte [ebp + 2]
imul ecx, ebp
add edx, ecx
shr edx, 8
mov ecx, dword [esp + 0x6c]
mov byte [ecx + 2], dl
lea edx, [eax + eax*2]
inc edx
mov ecx, dword [esp + 0x3c]
movzx edx, byte [ecx + edx]
movzx ecx, byte [ebx + eax]
imul edx, ecx
add edx, 0xff
movzx ecx, byte [ebx + eax]
not cl
movzx ecx, cl
mov ebp, dword [esp + 0x6c]
movzx ebp, byte [ebp + 1]
imul ecx, ebp
add edx, ecx
shr edx, 8
mov ecx, dword [esp + 0x6c]
mov byte [ecx + 1], dl
lea edx, [eax + eax*2]
mov ecx, dword [esp + 0x3c]
movzx edx, byte [ecx + edx]
movzx ecx, byte [ebx + eax]
imul edx, ecx
add edx, 0xff
movzx eax, byte [ebx + eax]
not al
movzx eax, al
mov ecx, dword [esp + 0x6c]
movzx ecx, byte [ecx]
imul eax, ecx
add edx, eax
shr edx, 8
mov eax, dword [esp + 0x6c]
mov byte [eax], dl
inc edi
dec esi
jne 0x4924f3
mov eax, dword [esp + 0x30]
add dword [esp + 0x44], eax
cmp byte [esp + 0x54], 0
je 0x492618
fild dword [esp + 0x48]
fdiv qword [esp + 0x60]
call fcn.004034f8
jmp 0x49261c
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
imul edx, eax
mov ecx, dword [esp + 0x40]
sub ecx, edx
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 0x454]
mov edx, dword [esp + 0x38]
imul edx, eax
add esi, edx
mov ebx, esi
inc dword [esp + 0x48]
dec dword [esp + 0x68]
jne 0x4924e3
jmp 0x4929c7
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x461], 4
jne 0x4927cc
mov eax, dword [esp + 0x50]
test eax, eax
jle 0x4929c7
mov dword [esp + 0x68], eax
mov dword [esp + 0x48], 1
mov esi, dword [esp + 0x4c]
dec esi
test esi, esi
jl 0x492771
inc esi
xor edi, edi
mov eax, dword [esp + 0x44]
lea eax, [eax + edi*4]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x18]
add eax, 0x21
mov dword [esp + 0x74], eax
cmp byte [esp + 0x54], 0
je 0x4926c4
mov dword [esp + 0xc4], edi
fild dword [esp + 0xc4]
fdiv qword [esp + 0x58]
call fcn.004034f8
jmp 0x4926c6
mov eax, edi
mov edx, dword [esp + 0x3c]
movzx edx, byte [edx + eax]
movzx ecx, byte [ebx + eax]
imul edx, ecx
add edx, 0xff
movzx ecx, byte [ebx + eax]
mov ebp, 0xff
sub ebp, ecx
mov ecx, dword [esp + 0x70]
movzx ecx, byte [ecx + 2]
imul ebp, ecx
add edx, ebp
shr edx, 8
mov ecx, dword [esp + 0x70]
mov byte [ecx + 2], dl
mov edx, dword [esp + 0x3c]
movzx edx, byte [edx + eax]
movzx ecx, byte [ebx + eax]
imul edx, ecx
add edx, 0xff
movzx ecx, byte [ebx + eax]
mov ebp, 0xff
sub ebp, ecx
mov ecx, dword [esp + 0x70]
movzx ecx, byte [ecx + 1]
imul ebp, ecx
add edx, ebp
shr edx, 8
mov ecx, dword [esp + 0x70]
mov byte [ecx + 1], dl
mov edx, dword [esp + 0x3c]
movzx edx, byte [edx + eax]
movzx ecx, byte [ebx + eax]
imul edx, ecx
add edx, 0xff
movzx eax, byte [ebx + eax]
mov ecx, 0xff
sub ecx, eax
mov eax, dword [esp + 0x70]
movzx eax, byte [eax]
imul ecx, eax
add edx, ecx
shr edx, 8
mov eax, dword [esp + 0x70]
mov byte [eax], dl
inc edi
dec esi
jne 0x49268e
mov eax, dword [esp + 0x30]
add dword [esp + 0x44], eax
cmp byte [esp + 0x54], 0
je 0x49278f
fild dword [esp + 0x48]
fdiv qword [esp + 0x60]
call fcn.004034f8
jmp 0x492793
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
imul edx, eax
mov ecx, dword [esp + 0x40]
sub ecx, edx
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 0x454]
mov edx, dword [esp + 0x38]
imul edx, eax
add esi, edx
mov ebx, esi
inc dword [esp + 0x48]
dec dword [esp + 0x68]
jne 0x49267e
jmp 0x4929c7
mov eax, dword [esp]
mov eax, dword [eax + 0x130]
mov edx, dword [0x48d63c]
call fcn.0048e504
mov dword [esp + 0x1c], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x130]
mov edx, dword [0x48d5cc]
call fcn.0048e504
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x50]
test eax, eax
jle 0x4929c7
mov dword [esp + 0x68], eax
mov dword [esp + 0x48], 1
xor edi, edi
xor eax, eax
mov dword [esp + 0x28], eax
cmp byte [esp + 0x54], 0
je 0x49283c
mov dword [esp + 0xc4], edi
fild dword [esp + 0xc4]
fdiv qword [esp + 0x58]
call fcn.004034f8
jmp 0x49283e
mov eax, edi
mov edx, dword [esp + 0x3c]
lea eax, [edx + eax]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + 0x460]
dec al
je 0x492862
dec al
je 0x492888
sub al, 2
je 0x492888
jmp 0x4928b4
mov eax, edi
and eax, 0x80000007
jns 0x492870
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, 7
sub ecx, eax
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax]
shr eax, cl
and al, 1
mov byte [esp + 0x24], al
jmp 0x4928bf
mov eax, edi
and eax, 0x80000001
jns 0x492896
dec eax
or eax, 0xfffffffe
inc eax
mov edx, 1
sub edx, eax
mov ecx, edx
add ecx, ecx
add ecx, ecx
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax]
shr eax, cl
and al, 0xf
mov byte [esp + 0x24], al
jmp 0x4928bf
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax]
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x44]
lea esi, [eax + edi*4]
movzx eax, byte [esp + 0x24]
mov edx, dword [esp + 0x1c]
movzx ebx, byte [edx + eax + 0x15]
movzx edx, byte [esp + 0x24]
mov eax, dword [esp + 0x20]
call fcn.004919d8
shr eax, 0x10
movzx eax, al
movzx edx, bl
imul edx
add eax, 0xff
movzx edx, bl
mov ebp, 0xff
sub ebp, edx
mov edx, ebp
movzx ecx, byte [esi + 2]
imul edx, ecx
add eax, edx
shr eax, 8
mov byte [esi + 2], al
movzx edx, byte [esp + 0x24]
mov eax, dword [esp + 0x20]
call fcn.004919d8
shr eax, 8
movzx eax, al
movzx edx, bl
imul edx
add eax, 0xff
mov edx, ebp
movzx ecx, byte [esi + 1]
imul edx, ecx
add eax, edx
shr eax, 8
mov byte [esi + 1], al
movzx edx, byte [esp + 0x24]
mov eax, dword [esp + 0x20]
call fcn.004919d8
movzx eax, al
movzx edx, bl
imul edx
add eax, 0xff
movzx edx, byte [esi]
imul ebp, edx
add eax, ebp
shr eax, 8
mov byte [esi], al
inc edi
mov eax, dword [esp + 0x18]
movzx eax, word [eax + 0x2f]
add dword [esp + 0x28], eax
cmp dword [esp + 0x28], 8
jl 0x492849
cmp edi, dword [esp + 0x4c]
jl 0x492816
mov eax, dword [esp + 0x30]
add dword [esp + 0x44], eax
cmp byte [esp + 0x54], 0
je 0x4929a4
fild dword [esp + 0x48]
fdiv qword [esp + 0x60]
call fcn.004034f8
jmp 0x4929a8
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
imul edx, eax
mov eax, dword [esp + 0x40]
sub eax, edx
mov dword [esp + 0x3c], eax
inc dword [esp + 0x48]
dec dword [esp + 0x68]
jne 0x492814
push 0xcc0020
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x94]
push eax
mov eax, dword [esp + 0x94]
push eax
mov eax, dword [esp + 0x24]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [esp + 0x14]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [esp + 8]
push eax
call sub.gdi32.dll_DeleteDC
add esp, 0xc8
pop ebp
pop edi
pop esi
pop ebx
ret