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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
movzx ecx, word [eax + 0xc]
push esi
lea esi, [eax + 0x50]
cmp word [esi], 0x3e
push edi
mov edi, dword [ebx]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], esi
jne 0x41d33e
push eax
push 0x7800
push edi
call fcn.00429c0a
test eax, eax
je 0x41d33e
mov esi, eax
mov dword [ebp - 0xc], esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41d300
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xc]
test byte [eax + 0x274], 3
jne 0x41d33e
mov eax, esi
push 0x2e
add eax, 2
push eax
call dword [sym.imp.PPLIB32W.DLL__VFSFindLastEntry_4]
push eax
call fcn.00468940
pop ecx
pop ecx
test eax, eax
je 0x41d33e
sub eax, esi
sar eax, 1
mov dword [ebp - 4], eax
cmp dword [edi + 0x184c], 0
je 0x41d395
mov eax, dword [ebx + 0xc]
test byte [eax + 0x274], 3
jne 0x41d395
lea eax, [edi + 0xee4]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41d35c
sub eax, edx
sar eax, 1
cmp word [esi + eax*2], 0x5c
jne 0x41d372
inc eax
sub dword [ebp - 4], eax
lea ecx, [esi + eax*2]
mov dword [ebp - 0xc], ecx
jns 0x41d3ef
mov eax, ecx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41d382
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
jmp 0x41d3ef
cmp dword [edi + 0x1d20], 4
jne 0x41d3ef
mov eax, edi
cmp word [eax + 0x1870], 0
je 0x41d3ef
add edi, 0xa34
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41d3b5
mov esi, dword [ebp - 0xc]
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
mov dword [ebp + 8], eax
mov ecx, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x41d3ef
mov eax, dword [ebp - 0xc]
lea ecx, [edx + eax]
cmp word [ecx], 0x5c
jne 0x41d3ef
or eax, 0xffffffff
sub eax, dword [ebp + 8]
add ecx, 2
add dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx]
mov dword [ebp - 8], eax
movzx eax, byte [ecx + 1]
mov dword [ebp + 8], eax
mov al, byte [ecx - 1]
cmp al, 4
je 0x41d54c
cmp al, 5
je 0x41d4b5
mov eax, dword [ebx + 0xc]
test byte [eax + 0x274], 0x23
jne 0x41d4b5
mov eax, dword [ebp - 0xc]
cmp word [eax], 0
je 0x41d4b5
mov edx, dword [ebp - 4]
lea eax, [eax + edx*2]
cmp word [eax], 0x2e
jne 0x41d4b5
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x41d43e
sub eax, esi
sar eax, 1
mov esi, 0xff
mov edi, eax
cmp dword [ebp - 8], esi
jne 0x41d465
mov eax, dword [ebx + 0x78]
sub eax, dword [ebx + 0x5c]
cdq
idiv dword [ebx + 0x60]
mov dword [ebp - 8], eax
cmp dword [ebp + 8], esi
jne 0x41d4ee
mov eax, dword [ebp - 4]
lea esi, [edi + eax]
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x60]
imul eax, dword [ebp - 8]
push eax
push esi
push dword [ebp - 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.00421801
cmp esi, dword [ebp - 0x14]
jle 0x41d4b2
mov eax, dword [ebp - 8]
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
mov dword [ebp + 8], edi
jle 0x41d4ac
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
sub dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
cmp byte [ecx - 1], 0x3e
je 0x41d54c
mov eax, dword [ebx + 0xc]
lea ecx, [eax + 0x258]
cmp word [ecx], 0
je 0x41d54c
test byte [eax + 0x274], 3
jne 0x41d54c
mov esi, ecx
push 0x2e
push esi
mov dword [ebp - 0xc], esi
call fcn.00468940
pop ecx
pop ecx
test eax, eax
je 0x41d536
sub eax, esi
jmp 0x41d547
cmp edi, dword [ebp + 8]
jle 0x41d4b5
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
add ecx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jle 0x41d529
mov esi, dword [ebp - 4]
lea eax, [edi + esi]
cmp eax, ecx
jle 0x41d529
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp esi, eax
jge 0x41d51f
mov eax, ecx
sub eax, esi
sub ecx, eax
mov dword [ebp + 8], eax
mov dword [ebp - 8], ecx
jmp 0x41d54c
mov eax, dword [ebp + 8]
sub eax, edi
add dword [ebp - 8], eax
mov dword [ebp + 8], edi
jmp 0x41d54c
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41d53b
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea esi, [eax + ecx*2]
xor edi, edi
mov dword [ebp - 0x14], esi
cmp word [esi], di
jne 0x41d58a
cmp dword [ebp - 8], edi
je 0x41d58a
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x41d569
sub eax, edx
sar eax, 1
add dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0xff
je 0x41d587
add dword [ebp - 8], eax
mov dword [ebp + 8], edi
cmp dword [0x487164], edi
je 0x41d599
mov ecx, ebx
call fcn.0041bd64
cmp dword [ebx + 0x1c], 0
jne 0x41d61a
cmp dword [ebp + 8], 0
je 0x41d61a
mov eax, dword [ebx + 0x4c]
cmp eax, dword [ebx + 0x44]
je 0x41d61a
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 8]
cmp edi, 0xffffffff
je 0x41d61a
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41d5bd
mov esi, dword [ebx + 0x5c]
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, dword [ebx + 0x60]
cmp edx, dword [ebp + 8]
mov ecx, eax
cmovg edx, dword [ebp + 8]
imul ecx, dword [ebp - 8]
imul eax, edx
add ecx, esi
add eax, ecx
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x7c]
sub dword [ebx + 0x30], eax
lea esi, [ebx + 0x24]
push edi
mov dword [esi], ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x41d60d
push edi
push esi
push eax
call fcn.0045711f
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebx + 0x7c]
add dword [ebx + 0x30], eax
push dword [ebp - 4]
mov esi, dword [ebp - 0xc]
push dword [ebp - 8]
push esi
push ebx
call fcn.0041cc36
mov eax, dword [ebp - 0x10]
xor edi, edi
cmp dword [eax + 0x1848], edi
je 0x41d64d
push esi
call dword [sym.imp.PPLIB32W.DLL__VFSFindLastEntry_4]
cmp eax, esi
je 0x41d64d
mov ecx, eax
sub ecx, esi
sar ecx, 1
sub dword [ebp - 4], ecx
mov esi, eax
push dword [ebp - 8]
push dword [ebp - 4]
push esi
push ebx
call fcn.0041ba93
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 4]
lea esi, [ebx + 0x50]
push esi
call fcn.00421788
mov ecx, dword [ebx + 0x60]
mov eax, ecx
imul eax, dword [ebp - 8]
add dword [ebx + 0x5c], eax
mov eax, dword [ebx + 0x5c]
cmp dword [ebp + 8], edi
je 0x41d69f
cmp dword [ebp + 8], 0xff
jne 0x41d69a
mov edx, dword [esi]
cmp edx, dword [ebp + 0x10]
jge 0x41d69f
sub eax, edx
cdq
idiv ecx
mov dword [ebp + 8], eax
jmp 0x41d74c
cmp eax, dword [ebp + 0x10]
jl 0x41d6b0
cmp dword [0x487164], edi
je 0x41d7ac
jmp 0x41d7a0
mov ecx, dword [esi]
cmp ecx, eax
jge 0x41d723
cmp dword [ebx + 0x80], edi
je 0x41d6c3
mov dword [ebx + 0x5c], ecx
jmp 0x41d723
cmp dword [ebx + 0x1c], edi
je 0x41d723
lea edi, [ebx + 0x34]
mov dword [edi], ecx
mov dword [ebx + 0x3c], eax
cmp dword [0x487164], 1
jne 0x41d712
mov eax, dword [ebx + 0x4c]
cmp eax, dword [ebx + 0x44]
je 0x41d712
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x41d712
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x41d707
push dword [ebp + 0xc]
push edi
push eax
call fcn.0045711f
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x41d723
mov eax, dword [ebx + 8]
test eax, eax
je 0x41d723
push dword [ebx + 0x18]
push edi
push eax
call fcn.0045711f
mov eax, dword [ebx + 0x5c]
cmp dword [esi], eax
je 0x41d73e
push dword [ebx + 0x38]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 4]
push eax
call fcn.00421758
mov eax, dword [ebx + 0x5c]
mov dword [esi], eax
mov ecx, dword [ebx + 0x60]
imul ecx, dword [ebp + 8]
add ecx, eax
mov dword [ebx + 0x5c], ecx
xor edi, edi
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x41d773
mov ecx, dword [ebp - 0x10]
test byte [ecx + 0x4a5c], 2
je 0x41d769
push eax
call fcn.0041a4be
push eax
push dword [ebx + 8]
push dword [ebx + 4]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x41d779
push dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
push dword [ebp - 0x14]
push ebx
call fcn.0041ba93
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 4]
push esi
call fcn.00421788
push dword [ebx + 0x4c]
push dword [ebx + 8]
push dword [ebx + 4]
call dword [ebx + 0x14]
pop edi
pop esi
pop ebx
leave
ret 0xc