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

Disassembly:
push 0xffffffffffffffff
push 0x5e4b28
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
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 0x54e338
cmp dword [esp + 0x80], 0
jne 0x54e338
mov ebx, dword [esp + 0x78]
test ebx, ebx
jle 0x54e33e
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 0x54e33c
mov ebx, dword [esp + 0x78]
test ebx, ebx
jne 0x54e362
test ecx, ecx
jle 0x54e364
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 0x54e471
cmp dword [esp + 0x88], 0
je 0x54e546
mov ecx, esi
call fcn.005407b0
test eax, eax
jne 0x54e41a
cmp dword [0x7407bc], eax
je 0x54e41a
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x54e3a0
mov eax, 0xff00
test edi, edi
je 0x54e3a7
mov edi, dword [edi + 4]
push eax
push edi
call fcn.0054a9a0
xor ebp, ebp
add esp, 8
cmp eax, ebp
je 0x54e471
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 sub.mfc90u.dll_CGdiObject::Attach
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.0054e2c0
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x14], edi
call fcn.00401a60
jmp 0x54e613
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 0x54e471
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new__
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.0054a700
test eax, eax
jne 0x54e478
push esi
call sub.mfc90u.dll_delete__
add esp, 4
xor eax, eax
jmp 0x54e615
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 0x54e50d
mov eax, dword [esp + 0x74]
test eax, eax
je 0x54e4a8
cmp dword [esp + 0x88], 0
jne 0x54e4a8
cmp dword [eax + esi*4], 0
je 0x54e506
cmp ebx, ebp
jge 0x54e506
test eax, eax
je 0x54e4b5
mov edi, dword [eax + esi*4]
jmp 0x54e4b7
mov edi, esi
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + ebx*4]
push edx
lea ecx, [esp + 0x40]
call fcn.0054bbb0
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.0054dd80
lea ecx, [esp + 0x3c]
mov dword [esp + 0x68], 0xffffffff
call fcn.0054bcc0
inc ebx
inc esi
cmp esi, dword [esp + 0x78]
jl 0x54e490
xor esi, esi
test ebp, ebp
jle 0x54e52f
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 0x54e520
mov eax, dword [esp + 0x70]
push eax
call sub.mfc90u.dll_delete__
add esp, 4
mov eax, 1
jmp 0x54e615
lea ecx, [esp + 0x1c]
call fcn.005df4ec
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 sub.mfc90u.dll_CImageList::Create_1
test eax, eax
jne 0x54e58f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x68], 0xffffffff
call sub.mfc90u.dll_CImageList::CImageList
xor eax, eax
jmp 0x54e615
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x54e5b9
sub esp, 8
mov eax, esp
mov dword [esp + 0x80], esp
push edi
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.0054a960
add esp, 0xc
test edi, edi
je 0x54e5c0
mov edi, dword [edi + 4]
push eax
mov eax, dword [esp + 0x24]
push edi
push eax
call sub.mfc90u.dll_AfxGetModuleState
mov ecx, dword [eax + 0x94]
mov ecx, dword [ecx]
call fcn.005184d0
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.0054e0e0
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x68], 0xffffffff
call sub.mfc90u.dll_CImageList::CImageList
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