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

Disassembly:
push 0xffffffffffffffff
push 0x59b223
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [esp + 0x6c]
push edi
lea eax, [ecx + 0xbc]
mov edx, eax
mov edi, dword [eax]
mov esi, dword [edx]
mov dword [esp + 0x50], edi
mov dword [esp + 0x40], esi
mov ebx, dword [edx + 4]
mov dword [esp + 0x44], ebx
mov esi, dword [edx + 8]
mov dword [esp + 0x48], esi
mov edx, dword [edx + 0xc]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x54], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
call fcn.00571b9c
mov ecx, dword [ebp + 0x6c]
mov esi, eax
and esi, 0x80
xor edx, edx
test ecx, ecx
jle 0x4dc4c7
mov eax, dword [ebp + 0x68]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cmp ebx, dword [eax]
jne 0x4dc4a1
cmp esi, dword [eax + 8]
jne 0x4dc4a1
cmp edi, dword [eax + 4]
je 0x4dc4b3
mov eax, dword [esp + 0x14]
inc edx
add eax, 4
cmp edx, ecx
mov dword [esp + 0x14], eax
jl 0x4dc48d
jmp 0x4dc4c7
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x44]
add ecx, edx
mov edx, dword [esp + 0x74]
cmp edx, ecx
jge 0x4dc8a9
xor eax, eax
mov dword [esp + 0x18], vtable.CBitmap.0
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x10]
lea ecx, [esp + 0x20]
push edx
push ecx
xor ecx, ecx
cmp esi, eax
lea edx, [esp + 0x38]
mov dword [esp + 0x70], eax
setne cl
push edx
push ebx
inc ecx
push eax
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.004dc080
test eax, eax
jne 0x4dc52b
mov dword [esp + 0x18], vtable.CGdiObject.0
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], 1
call fcn.005792ee
xor eax, eax
jmp 0x4dc8a9
push 0xa0
call fcn.0056dbe7
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
test ebx, ebx
mov byte [esp + 0x68], 2
je 0x4dc560
push 0x4dc8f0
push 0x4dc8c0
push 4
lea ecx, [ebx + 0x10]
push 0x24
push ecx
call fcn.00559d4f
jmp 0x4dc562
xor ebx, ebx
mov edx, dword [esp + 0x44]
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], esi
mov dword [ebx], edx
mov dword [ebx + 4], edi
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x68], 0
lea edx, [ecx + eax]
cmp dword [esp + 0x74], edx
jge 0x4dc5db
mov edx, dword [esp + 0x74]
mov edi, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], edx
mov dword [esp + 0x44], eax
mov eax, ecx
mov ecx, dword [esp + 0x2c]
add eax, edi
mov dword [ebx + 0xc], 1
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x3c]
sub eax, edx
push edi
push eax
mov dword [esp + 0x58], ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
sub ecx, edi
mov edi, dword [esp + 0x50]
sub ecx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
lea edx, [ebx + 0x44]
mov dword [ebx + 0x44], eax
mov eax, dword [esp + 0x24]
mov dword [edx + 4], eax
mov ecx, dword [esp + 0x28]
mov dword [edx + 8], ecx
mov eax, dword [esp + 0x2c]
mov dword [edx + 0xc], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push ecx
lea eax, [ebx + 0x34]
push edx
push eax
lea ecx, [esp + 0x24]
push 1
push ecx
mov ecx, ebp
call fcn.004dba90
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
mov edx, esi
neg edx
sbb edx, edx
lea ecx, [esp + 0x34]
push eax
and edx, 3
push ecx
mov ecx, dword [esp + 0x7c]
push edi
add edx, 7
push 1
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
mov ecx, ebp
call fcn.004dc080
test eax, eax
je 0x4dc681
mov eax, dword [esp + 0x20]
lea edx, [ebx + 0x20]
mov dword [ebx + 0x20], eax
mov ecx, dword [esp + 0x24]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x28]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x10]
push edx
lea ecx, [ebx + 0x10]
push eax
push ecx
lea edx, [esp + 0x24]
push 0
push edx
mov ecx, ebp
call fcn.004dba90
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
mov eax, esi
neg eax
sbb eax, eax
lea edx, [esp + 0x34]
push ecx
and eax, 3
push edx
mov edx, dword [esp + 0x7c]
push edi
add eax, 8
push 1
lea ecx, [esp + 0x2c]
push eax
push ecx
push edx
mov ecx, ebp
call fcn.004dc080
test eax, eax
je 0x4dc6f0
mov ecx, dword [esp + 0x20]
lea eax, [ebx + 0x68]
mov dword [ebx + 0x68], ecx
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x10]
push eax
lea edx, [ebx + 0x58]
push ecx
push edx
lea eax, [esp + 0x24]
push 2
push eax
mov ecx, ebp
call fcn.004dba90
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
push edi
xor edi, edi
neg esi
mov edx, dword [esp + 0x80]
push edi
sbb esi, esi
lea ecx, [esp + 0x2c]
and esi, 3
add esi, 9
push esi
push ecx
push edx
mov ecx, ebp
call fcn.004dc080
test eax, eax
je 0x4dc767
mov ecx, dword [esp + 0x20]
lea eax, [ebx + 0x8c]
mov dword [ebx + 0x8c], ecx
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x10]
push eax
lea edx, [ebx + 0x7c]
push ecx
push edx
lea eax, [esp + 0x24]
push 3
push eax
mov ecx, ebp
call fcn.004dba90
cmp dword [ebx + 0xc], edi
jne 0x4dc88e
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp + 0x68]
mov esi, ecx
mov dword [esp + 0x74], esi
inc esi
cmp esi, edi
jne 0x4dc79c
cmp eax, edi
je 0x4dc791
push eax
call fcn.0056dc10
add esp, 4
mov dword [ebp + 0x68], edi
mov dword [ebp + 0x70], edi
mov dword [ebp + 0x6c], edi
jmp 0x4dc884
cmp eax, edi
jne 0x4dc7c5
lea ecx, [esi*4]
push ecx
call fcn.0056dbe7
add esp, 4
mov dword [ebp + 0x68], eax
push esi
push eax
call fcn.00476b00
mov dword [ebp + 0x70], esi
mov dword [ebp + 0x6c], esi
jmp 0x4dc884
mov edi, dword [ebp + 0x70]
cmp esi, edi
jg 0x4dc7e6
cmp esi, ecx
jle 0x4dc7de
mov edx, esi
lea eax, [eax + ecx*4]
sub edx, ecx
push edx
push eax
call fcn.00476b00
mov dword [ebp + 0x6c], esi
jmp 0x4dc884
mov eax, dword [ebp + 0x74]
test eax, eax
jne 0x4dc810
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4dc804
mov eax, 4
jmp 0x4dc810
cmp eax, 0x400
jle 0x4dc810
mov eax, 0x400
add eax, edi
cmp esi, eax
mov dword [esp + 0x70], eax
jl 0x4dc81e
mov dword [esp + 0x70], esi
mov ecx, dword [esp + 0x70]
lea edx, [ecx*4]
push edx
call fcn.0056dbe7
mov ecx, dword [ebp + 0x6c]
mov esi, dword [ebp + 0x68]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x78]
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x6c]
lea esi, [edx + 1]
mov edx, esi
mov dword [esp + 0x14], eax
sub edx, ecx
lea eax, [eax + ecx*4]
push edx
push eax
call fcn.00476b00
mov eax, dword [ebp + 0x68]
push eax
call fcn.0056dc10
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x74]
add esp, 4
mov dword [ebp + 0x68], ecx
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x70], edx
mov eax, dword [ebp + 0x68]
mov ecx, dword [esp + 0x74]
mov dword [eax + ecx*4], ebx
mov dword [esp + 0x18], vtable.CGdiObject.0
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], 3
call fcn.005792ee
mov eax, ebx
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 0xc