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

Disassembly:
push 0xffffffffffffffff
push 0x7b9cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8c8ca0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x70]
mov esi, dword [0x7da310]
test ecx, ecx
jne 0x6762e8
cmp dword [esp + 0x80], 0
jne 0x6762e8
mov ebx, dword [esp + 0x78]
test ebx, ebx
jle 0x6762ee
mov ecx, dword [edi + 4]
lea eax, [esp + 0x24]
push eax
push 0x18
push ecx
call esi
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 0x6762ec
mov ebx, dword [esp + 0x78]
test ebx, ebx
jne 0x676312
test ecx, ecx
jle 0x676314
mov eax, dword [edi + 4]
lea edx, [esp + 0x24]
push edx
push 0x18
push eax
call esi
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 0x676421
cmp dword [esp + 0x88], 0
je 0x676506
mov ecx, ebp
call fcn.007179c0
test eax, eax
jne 0x6763ca
cmp dword [0x901428], eax
je 0x6763ca
mov eax, dword [ebp + 0x24]
cmp eax, 0xffffffff
jne 0x676350
mov eax, 0xff00
test edi, edi
je 0x676357
mov edi, dword [edi + 4]
push eax
push edi
call fcn.00671eb0
xor esi, esi
add esp, 8
cmp eax, esi
je 0x676421
mov edi, vtable.CBitmap.0
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x6c], esi
call fcn.00546c86
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
push esi
push ecx
mov ecx, dword [esp + 0x7c]
push edx
push eax
push ebx
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, ebp
call fcn.00676270
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x14], edi
call fcn.0040502d
jmp 0x6765d0
mov ecx, dword [edi + 4]
lea eax, [esp + 0x24]
push eax
push 0x18
push ecx
call esi
mov eax, dword [esp + 0x28]
cdq
idiv dword [esp + 0x7c]
mov ebp, eax
test edx, edx
jne 0x676421
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053b596
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.00671c10
test eax, eax
jne 0x676428
push esi
call fcn.0053b58b
add esp, 4
xor eax, eax
jmp 0x6765d2
xor eax, eax
cmp ebp, ebx
sete al
xor ebx, ebx
xor esi, esi
cmp dword [esp + 0x78], ebx
mov dword [esp + 0x88], eax
jle 0x6764cd
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x676464
cmp dword [esp + 0x88], 0
jne 0x676464
mov eax, dword [ecx + ebx*4]
test eax, eax
je 0x6764c2
cmp eax, 0xdeadbeaf
je 0x6764c2
cmp esi, ebp
jge 0x6764c2
test ecx, ecx
je 0x676471
mov edi, dword [ecx + ebx*4]
jmp 0x676473
mov edi, ebx
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + esi*4]
push edx
lea ecx, [esp + 0x40]
call fcn.00673220
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.00675520
lea ecx, [esp + 0x3c]
mov dword [esp + 0x68], 0xffffffff
call fcn.006732e0
inc esi
inc ebx
cmp ebx, dword [esp + 0x78]
jl 0x676444
xor esi, esi
test ebp, ebp
jle 0x6764ef
mov edi, dword [0x7da314]
lea esp, [esp]
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + esi*4]
push edx
call edi
inc esi
cmp esi, ebp
jl 0x6764e0
mov eax, dword [esp + 0x70]
push eax
call fcn.0053b58b
add esp, 4
mov eax, 1
jmp 0x6765d2
lea ecx, [esp + 0x1c]
call fcn.00548e33
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.0054924d
test eax, eax
jne 0x67654f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x68], 0xffffffff
call fcn.00549302
xor eax, eax
jmp 0x6765d2
mov eax, dword [ebp + 0x24]
cmp eax, 0xffffffff
jne 0x676579
sub esp, 8
mov eax, esp
mov dword [esp + 0x80], esp
push edi
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00671e70
add esp, 0xc
test edi, edi
je 0x676580
mov edi, dword [edi + 4]
push eax
mov eax, dword [esp + 0x24]
push edi
push eax
call fcn.0053d72d
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.0040fd6a
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, ebp
call fcn.006759a0
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x68], 0xffffffff
call fcn.00549302
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