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

Disassembly:
push 0xffffffffffffffff
push 0x5b72a8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62ece4]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x70]
mov ebp, dword [sym.imp.GDI32.dll_GetObjectW]
test ecx, ecx
jne 0x4d6ba8
cmp dword [esp + 0x80], 0
jne 0x4d6ba8
mov ebx, dword [esp + 0x78]
test ebx, ebx
jle 0x4d6bae
mov ecx, dword [edi + 4]
lea eax, [esp + 0x24]
push eax
push 0x18
push ecx
call ebp
mov eax, dword [esp + 0x28]
cdq
idiv ebx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x80], edx
mov ecx, eax
mov dword [esp + 0x7c], ecx
jmp 0x4d6bac
mov ebx, dword [esp + 0x78]
test ebx, ebx
jne 0x4d6bd2
test ecx, ecx
jle 0x4d6bd4
mov eax, dword [edi + 4]
lea edx, [esp + 0x24]
push edx
push 0x18
push eax
call ebp
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x7c]
cdq
idiv ecx
mov dword [esp + 0x78], eax
mov ebx, eax
test ecx, ecx
je 0x4d6ce1
cmp dword [esp + 0x88], 0
je 0x4d6db6
mov ecx, esi
call fcn.00552340
test eax, eax
jne 0x4d6c8a
cmp dword [0x642894], eax
je 0x4d6c8a
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x4d6c10
mov eax, 0xff00
test edi, edi
je 0x4d6c17
mov edi, dword [edi + 4]
push eax
push edi
call fcn.004d2a40
xor ebp, ebp
add esp, 8
cmp eax, ebp
je 0x4d6ce1
mov edi, vtable.CBitmap.0
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edi
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x6c], ebp
call fcn.0048640f
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
push ebp
push ecx
mov ecx, dword [esp + 0x7c]
push edx
push eax
push ebx
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.004d6b30
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x14], edi
call fcn.00407390
jmp 0x4d6e80
mov ecx, dword [edi + 4]
lea eax, [esp + 0x24]
push eax
push 0x18
push ecx
call ebp
mov eax, dword [esp + 0x28]
cdq
idiv dword [esp + 0x7c]
mov ebp, eax
test edx, edx
jne 0x4d6ce1
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047b302
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x18]
add esp, 4
mov esi, eax
push esi
push ebp
push edi
mov dword [esp + 0x7c], esi
call fcn.004d27a0
test eax, eax
jne 0x4d6ce8
push esi
call fcn.0047b2f7
add esp, 4
xor eax, eax
jmp 0x4d6e82
xor eax, eax
cmp ebp, ebx
sete al
xor esi, esi
xor ebx, ebx
cmp dword [esp + 0x78], esi
mov dword [esp + 0x88], eax
jle 0x4d6d7d
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4d6d18
cmp dword [esp + 0x88], 0
jne 0x4d6d18
cmp dword [eax + esi*4], 0
je 0x4d6d76
cmp ebx, ebp
jge 0x4d6d76
test eax, eax
je 0x4d6d25
mov edi, dword [eax + esi*4]
jmp 0x4d6d27
mov edi, esi
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + ebx*4]
push edx
lea ecx, [esp + 0x40]
call fcn.004d3d90
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x7c], 1
call fcn.004d6090
lea ecx, [esp + 0x3c]
mov dword [esp + 0x68], 0xffffffff
call fcn.004d3e50
inc ebx
inc esi
cmp esi, dword [esp + 0x78]
jl 0x4d6d00
xor esi, esi
test ebp, ebp
jle 0x4d6d9f
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
lea esp, [esp]
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + esi*4]
push edx
call edi
inc esi
cmp esi, ebp
jl 0x4d6d90
mov eax, dword [esp + 0x70]
push eax
call fcn.0047b2f7
add esp, 4
mov eax, 1
jmp 0x4d6e82
lea ecx, [esp + 0x1c]
call fcn.004849df
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push 1
push 0
push 0x19
push ecx
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x7c], 2
call fcn.00484dff
test eax, eax
jne 0x4d6dff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x68], 0xffffffff
call fcn.00484eb4
xor eax, eax
jmp 0x4d6e82
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x4d6e29
sub esp, 8
mov eax, esp
mov dword [esp + 0x80], esp
push edi
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.004d2a00
add esp, 0xc
test edi, edi
je 0x4d6e30
mov edi, dword [edi + 4]
push eax
mov eax, dword [esp + 0x24]
push edi
push eax
call fcn.004840f7
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.004bd360
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x78]
push eax
push ecx
push ebx
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.004d6510
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x68], 0xffffffff
call fcn.00484eb4
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x1c